Re: [BUG] Device node major comes out wrong on HFS+ under linux

From: Thomas Meyer
Date: Tue Oct 18 2011 - 02:25:24 EST


Am Samstag, den 15.10.2011, 20:04 +0200 schrieb DagB:
> Hi.
>
> Executive summary:
>
> /dev/null:
> osx: crw-rw-rw- 1 root wheel 1, 3 Oct 13 04:12 null
> linux: crw-rw-rw- 1 root root 16, 3 Oct 13 02:12 /dev/null
>
> /dev/console:
> osx: crw------- 1 root wheel 5, 1 Oct 13 04:12 console
> linux: crw------- 1 root root 80, 1 Oct 13 02:12 /dev/console
>
> /dev/sda4:
> osx: brw-r----- 1 root wheel 8, 4 Oct 13 04:12 sda4
> linux: brw-r----- 1 root root 128, 4 Oct 13 02:12 /dev/sda4

>
> Anyone care to squash this bug, please?
>

This is not a bug. Linux uses a 12/20 split for major and minor device
ids and the xnu kernel uses a 8/24 split:

8, 4
00001000 000000000000000000000100
= 128, 4
000010000000 00000000000000000100

with kind regards
thomas

Attachment: signature.asc
Description: This is a digitally signed message part