From: Pietro Gagliardi <pietro10@mac.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] p9p venti w/ raw partitions
Date: Tue, 24 Jun 2008 08:57:37 -0400 [thread overview]
Message-ID: <6FF2119B-BF99-4DA8-A5D7-C60E0DDE4898@mac.com> (raw)
In-Reply-To: <1354dfae0c6b06d78f3a4d64908ff8f6@9srv.net>
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)
# ...
next prev parent reply other threads:[~2008-06-24 12:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-24 2:34 a
2008-06-24 11:47 ` Russ Cox
2008-06-24 12:16 ` a
2008-06-24 12:57 ` Pietro Gagliardi [this message]
2008-06-25 1:14 ` a
2008-06-25 10:45 ` Russ Cox
2008-06-24 12:38 erik quanstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6FF2119B-BF99-4DA8-A5D7-C60E0DDE4898@mac.com \
--to=pietro10@mac.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).