statvfs clearance

Albert Hopkins marduk at letterboxes.org
Sat Apr 4 13:19:07 CEST 2009


On Sat, 2009-04-04 at 03:56 -0700, Sreejith K wrote:
> Python's statvfs module contains the following indexes to use with
> os.statvfs() that contains the specified information
> 
> statvfs.F_BSIZE
>     Preferred file system block size.
> 
> statvfs.F_FRSIZE
>     Fundamental file system block size.
> 
> statvfs.F_BLOCKS
>     Total number of blocks in the filesystem.
> 
> statvfs.F_BFREE
>     Total number of free blocks.
> 
> statvfs.F_BAVAIL
>     Free blocks available to non-super user.
> 
> statvfs.F_FILES
>     Total number of file nodes.
> 
> statvfs.F_FFREE
>     Total number of free file nodes.
> 
> statvfs.F_FAVAIL
>     Free nodes available to non-super user.
> 
> statvfs.F_FLAG
>     Flags. System dependent: see statvfs man page.
> 
> statvfs.F_NAMEMAX
>     Maximum file name length.
> 
> Can anyone tell me (or give me some links to know) what are these
> values ? The first three I know, I need to know about the rest....

The values would obviously depend on your particular system, which we
don't have.  So how could we, for example, know how many free blocks you
have on your filesystem?





More information about the Python-list mailing list