9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Df command in Plan9?
@ 2000-10-22 11:04 forsyth
  2000-10-22 12:49 ` Boyd Roberts
                   ` (2 more replies)
  0 siblings, 3 replies; 29+ messages in thread
From: forsyth @ 2000-10-22 11:04 UTC (permalink / raw)
  To: 9fans

>>BTW, the stuff I HAVE basically silently been informed won't be going into
>>the Linus Linux tree is my stuff to support booting to /.sbi/init so that
>>the dirnames the user sees can be internationalized or otherwise
>>localized. 2 execve's in init/main.c.

i didn't understand this bit.




^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [9fans] Df command in Plan9?
@ 2000-10-22 17:06 forsyth
  2000-10-23  2:23 ` Rick Hohensee
  0 siblings, 1 reply; 29+ messages in thread
From: forsyth @ 2000-10-22 17:06 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 380 bytes --]

thank you.  i suppose the .renamin technique was adopted to allow
patching binaries.  to draw things back to plan 9,
i thought the following rule was interesting:

``for a binary to expect a file at a specific full pathname is bad practice.''

curiously, that is regarded as standard practice and
perhaps even essential for both Plan 9 and Inferno.
o tempora, o mores!


[-- Attachment #2: Type: message/rfc822, Size: 2095 bytes --]

From: Rick Hohensee <humbubba@smarty.smart.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Df command in Plan9?
Date: Sun, 22 Oct 100 12:05:44 -0400 (EDT)
Message-ID: <200010221605.MAA11584@smarty.smart.net>

>
> >>BTW, the stuff I HAVE basically silently been informed won't be going into
> >>the Linus Linux tree is my stuff to support booting to /.sbi/init so that
> >>the dirnames the user sees can be internationalized or otherwise
> >>localized. 2 execve's in init/main.c.
>
> i didn't understand this bit.
>
>

   Linkname: seedoc of the Dotted Standard Filename Hierarchy
        URL: ftp://linux01.gwdg.de/pub/cLIeNUX/descriptive/DSFH.html
       size: 251 lines

Rick Hohensee

^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [9fans] Df command in Plan9?
@ 2000-10-20 21:51 presotto
  0 siblings, 0 replies; 29+ messages in thread
From: presotto @ 2000-10-20 21:51 UTC (permalink / raw)
  To: 9fans

what about

	disk/kfscmd check

It takes a while since it's more like fsck but you get
your answer:

checking file system: main
check free list
lo = 8155; hi = 412499
   11417 files
  412499 blocks in the file system
   87267 used blocks
  325232 free blocks
   15658 maximum qid path



^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [9fans] Df command in Plan9?
@ 2000-10-20 20:31 Russ Cox
  2000-10-20 21:44 ` Alexander Viro
  0 siblings, 1 reply; 29+ messages in thread
From: Russ Cox @ 2000-10-20 20:31 UTC (permalink / raw)
  To: 9fans

Look in the archives -- I and someone else (tad?)
have posted df scripts/programs for kfs.  Mine is
at www.eecs.harvard.edu/~rsc/plan9.html.

mount /srv/kfs /n/kfs
du /n/kfs | tail

will get you the number you're looking for.
du '#SsdC0' will produce a number but likely
not the one you want.  Du just sums the sizes
of all the files it sees.

Please don't tell me that du /dev/sda1 would
do something other than report the disk size
under Linux.

Russ



^ permalink raw reply	[flat|nested] 29+ messages in thread
* [9fans] Df command in Plan9?
@ 2000-10-20 20:22 Mark C. Otto
  0 siblings, 0 replies; 29+ messages in thread
From: Mark C. Otto @ 2000-10-20 20:22 UTC (permalink / raw)
  To: 9fans

Having a 500mb disk drive, I was looking to check how much disk space I had
left.  I haven't been able to find an equivalent of the unix df command to find
the space used and available,

df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4546016   1650964   2664120  38% /
/dev/sda2                23333      6149     15980  28% /boot
/dev/sda1              2036224   1819008    217216  89% /mnt/win
/dev/sdb1              8947440   2234552   6712888  25% /mnt/win2
parula:/data           8124357   7013836   1029278  87% /mnt/parula/data
parula:/space          1372362   1155507    161961  88% /mnt/parula/space
/dev/fd0                  1423      1252       171  88% /mnt/floppy

Du on a device does not even get at the space used,

du #sdC0

For a terminal, I would have expected something in disk/kfscmd.  For the
fileserver, am I missing something in fs(8)?

Thanks,
Mark



^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2000-10-26  5:44 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-22 11:04 [9fans] Df command in Plan9? forsyth
2000-10-22 12:49 ` Boyd Roberts
2000-10-22 13:16 ` Alexander Viro
2000-10-22 16:07   ` Rick Hohensee
2000-10-22 16:31     ` Alexander Viro
2000-10-23  2:07       ` Rick Hohensee
2000-10-22 16:05 ` Rick Hohensee
  -- strict thread matches above, loose matches on Subject: below --
2000-10-22 17:06 forsyth
2000-10-23  2:23 ` Rick Hohensee
2000-10-20 21:51 presotto
2000-10-20 20:31 Russ Cox
2000-10-20 21:44 ` Alexander Viro
2000-10-20 21:51   ` Boyd Roberts
2000-10-21  0:37   ` Rick Hohensee
2000-10-21 10:13     ` Alexander Viro
2000-10-22  0:13       ` Rick Hohensee
2000-10-22  0:25         ` Boyd Roberts
2000-10-22 15:41           ` Rick Hohensee
2000-10-23  9:02           ` Douglas A. Gwyn
2000-10-23 10:30             ` Alexander Viro
2000-10-24 11:37             ` Boyd Roberts
2000-10-25  8:30               ` Douglas A. Gwyn
2000-10-26  4:54                 ` Alexander Viro
2000-10-26  5:44                   ` Boyd Roberts
2000-10-22 11:34         ` Alexander Viro
2000-10-22 15:59           ` Rick Hohensee
2000-10-22 16:43             ` Alexander Viro
2000-10-23  5:06             ` Boyd Roberts
2000-10-20 20:22 Mark C. Otto

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).