From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Message-id: <6FF2119B-BF99-4DA8-A5D7-C60E0DDE4898@mac.com> From: Pietro Gagliardi To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: <1354dfae0c6b06d78f3a4d64908ff8f6@9srv.net> Date: Tue, 24 Jun 2008 08:57:37 -0400 References: <1354dfae0c6b06d78f3a4d64908ff8f6@9srv.net> Subject: Re: [9fans] p9p venti w/ raw partitions Topicbox-Message-UUID: c5c7d2c8-ead3-11e9-9d60-3106f5b1d025 On Jun 24, 2008, at 8:16 AM, a@9srv.net 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) # ...