df -v?

df -v?

Post by Ken » Fri, 01 Nov 2002 05:09:13



On a Solaris 7 box, someone was saying something about df giving wrong
info.  I always do 'df -k' to get info.  She has always used 'df -kv'
out of instinct, but has no clue what the -v is.  Anyone know?  It's
not in the man page, but df -kv gives double the amount, as if the -v
showed a blocksize of 512 bytes or something.

Thanks.

-Ken

 
 
 

df -v?

Post by Dragan Cvetkovi » Fri, 01 Nov 2002 05:23:55



> On a Solaris 7 box, someone was saying something about df giving wrong
> info.  I always do 'df -k' to get info.  She has always used 'df -kv'
> out of instinct, but has no clue what the -v is.  Anyone know?  It's
> not in the man page, but df -kv gives double the amount, as if the -v
> showed a blocksize of 512 bytes or something.

Well, GNU df info page says:

`-v'
     Ignored; for compatibility with System V versions of `df'.

whereas AIX 4.2 man page for df says:

-v      Displays all information for the specified file system.

HTH, Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer

 
 
 

df -v?

Post by Michael Tos » Fri, 01 Nov 2002 05:40:11



> On a Solaris 7 box, someone was saying something about df giving wrong
> info.  I always do 'df -k' to get info.  She has always used 'df -kv'
> out of instinct, but has no clue what the -v is.  Anyone know?  It's
> not in the man page, but df -kv gives double the amount, as if the -v
> showed a blocksize of 512 bytes or something.

> Thanks.

This is one of these jokes that can only happen in Solaris.

-v is not documented but somehow (and of course wrongly) implemented.

In fact it swaps columns without adjusting the title line.
On local file systems, it reports kilobytes like -k, but on nfs file
systems it reports 512 byte blocks.

--
Michael Tosch / Master IS/IT Support
Ericsson Eurolab Deutschland GmbH
Tel: +49 2407 575 313

 
 
 

df -v?

Post by Rich Tee » Fri, 01 Nov 2002 05:57:13



> On a Solaris 7 box, someone was saying something about df giving wrong
> info.  I always do 'df -k' to get info.  She has always used 'df -kv'
> out of instinct, but has no clue what the -v is.  Anyone know?  It's
> not in the man page, but df -kv gives double the amount, as if the -v
> showed a blocksize of 512 bytes or something.

Here's what the Solaris 9 man page says about the -v flag:

    -v    Like -k, except that sizes are displayed in  multiples
           of the smallest block size supported by each specified
           file system.

           The output consists of one  line  of  information  for
           each   file  system.  This  one  line  of  information
           includes the following:

                   o  the file system's mount point

                   o  the file system's name

                   o  the total number of blocks allocated to the
                      file system

                   o  the number of blocks allocated to  existing
                      files

                   o  the number  of  blocks  available  for  the
                      creation of new files by unprivileged users

                   o  the percentage of blocks in use by files

Personally, I use df -k (or df -h).

HTH,

--
Rich Teer

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net

 
 
 

df -v?

Post by Ken » Fri, 01 Nov 2002 06:19:28



>> On a Solaris 7 box, someone was saying something about df giving wrong
>> info.  I always do 'df -k' to get info.  She has always used 'df -kv'
>> out of instinct, but has no clue what the -v is.  Anyone know?  It's
>> not in the man page, but df -kv gives double the amount, as if the -v
>> showed a blocksize of 512 bytes or something.

> This is one of these jokes that can only happen in Solaris.
> -v is not documented but somehow (and of course wrongly) implemented.

Hah. :)

Quote:> In fact it swaps columns without adjusting the title line.
> On local file systems, it reports kilobytes like -k, but on nfs file
> systems it reports 512 byte blocks.

Yup, all of what you said, too.  It is on an NFS mount.

Thanks for all the replies.

-Ken

 
 
 

df -v?

Post by Tony Walto » Fri, 01 Nov 2002 19:03:30




> > On a Solaris 7 box, someone was saying something about df giving wrong
> > info.  I always do 'df -k' to get info.  She has always used 'df -kv'
> > out of instinct, but has no clue what the -v is.  Anyone know?  It's
> > not in the man page, but df -kv gives double the amount, as if the -v
> > showed a blocksize of 512 bytes or something.

> > Thanks.

> This is one of these jokes that can only happen in Solaris.

> -v is not documented

Yes 'tis (from Solaris 9, anyway :-)  )

 /usr/bin/df
     The following option is supported for /usr/bin/df only:

     -v    Like -k, except that sizes are displayed in  multiples
           of the smallest block size supported by each specified
           file system.

           The output consists of one  line  of  information  for
           each   file  system.  This  one  line  of  information
           includes the following:

                   o  the file system's mount point

                   o  the file system's name

                   o  the total number of blocks allocated to the
                      file system

                   o  the number of blocks allocated to  existing
                      files

                   o  the number  of  blocks  available  for  the
                      creation of new files by unprivileged users

                   o  the percentage of blocks in use by files

Quote:> but somehow (and of course wrongly) implemented.

Err... how?

Quote:

> In fact it swaps columns without adjusting the title line.

Not quite.

Regards

--
Tony

 
 
 

df -v?

Post by Richard L. Hamilt » Fri, 01 Nov 2002 21:58:32





[...]

>> In fact it swaps columns without adjusting the title line.

> Not quite.

$ uname -a
SunOS mindwarp 5.8 Generic_108528-16 sun4u sparc SUNW,Sun-Blade-100
$ df -v /
Mount Dir  Filesystem        blocks     used     free  %used  
/          /dev/md/dsk/d0  10326052  6076613  4146179    60%
$ df -k /
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d0       10326052 6076613 4146179    60%    /
$ df -kv /
Filesystem            kbytes    used   avail capacity  Mounted on
/          /dev/md/dsk/d0  10326052  6076613  4146179    60%

Just don't use -k and -v together - they don't make sense together
anyway.

--

 
 
 

df -v?

Post by Tony Walto » Fri, 01 Nov 2002 22:12:33






> [...]

> >> In fact it swaps columns without adjusting the title line.

> > Not quite.

> $ uname -a
> SunOS mindwarp 5.8 Generic_108528-16 sun4u sparc SUNW,Sun-Blade-100
> $ df -v /
> Mount Dir  Filesystem        blocks     used     free  %used
> /          /dev/md/dsk/d0  10326052  6076613  4146179    60%
> $ df -k /
> Filesystem            kbytes    used   avail capacity  Mounted on
> /dev/md/dsk/d0       10326052 6076613 4146179    60%    /
> $ df -kv /
> Filesystem            kbytes    used   avail capacity  Mounted on
> /          /dev/md/dsk/d0  10326052  6076613  4146179    60%

> Just don't use -k and -v together - they don't make sense together
> anyway.

Ah, sorry - I read the posting as saying that -v *on its own* "swapped
columns without adjusting the title line".

No, -kv doesn't make too much sense - I wonder if df should refuse to
accept both flags on the command line...

--
Tony

 
 
 

1. df -v versus df -vf

Why would a df -v report usage greater than df -vf would?

# df -v
Mount Dir  Filesystem              blocks      used      free   %used
/          /dev/root               470978    466828      4150   100%

# df -vf
Mount Dir  Filesystem              blocks      used      free   %used
/          /dev/root               470978    408284     62694    87%

--


2. ALI 15X3 DMA Freeze

3. Difference between df -k and df -b

4. Yikes! OS5 lockups

5. df difference from du

6. mpstat output?

7. Strange "df -k" output for /tmpfs

8. 2.5.5-dj2 compile failure for aha152x

9. df incorrectly reports 100% usage after power down

10. df -oi formatting stumper.

11. 'df' numbers discrepancy?

12. wierd df message

13. wrong free disk space if I use df-command