On Jun 24, 2008, at 8:16 AM, [EMAIL PROTECTED] wrote:
OS X. And yes, 9's ls reports size zero (as opposed to
OSX's ls "size" of "14, 12"). I'll spend a little time on
These "sizes" are the major and minor device numbers.
it this morning and see what i get. OS X's stat(1) can
get the info, so the hardest part might just be
figuring out which "project" Apple put the source for
stat in.
Anthony
$ stat /dev/disk0
46138868 46908804 brw-r----- 1 root operator 234881024 0 "Jun 21
19:55:38 2008" "Jun 21 19:55:38 2008" "Jun 21 19:55:38 2008" "Jun 21
19:55:38 2008" 2048 0 0 /dev/disk0
$ stat -l /dev/disk0
brw-r----- 1 root operator 14,0 Jun 21 19:55:38 2008 /dev/disk0
$ stat -f '%z' /dev/disk0
0
So oh well.
Using Apple's diskutil seems to work:
$ diskutil info /dev/disk0
#...
Total Size: 232.9 Gi (250059350016 B) (488397168 512-
byte blocks)
Free Space: 0.0 B (0 B) (0 512-byte blocks)
# ...