Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

statfs(2)

mntent(4)

proc(4)



DF(1M-SysV)         RISC/os Reference Manual          DF(1M-SysV)



NAME
     df - report number of free disk blocks and inodes

SYNOPSIS
     df [ -b ] [ -f ] [ -i ] [ -u ] [ -k ] [ -q ] [ -t types |
     name ... ]

DESCRIPTION
     df reports disk space usage statistics for the named
     filesystems or for all mounted filesystems if none are
     named.  name may be any filename that corresponds to the
     desired filesystem:  the disk device, the root of the
     filesystem, or any directory or file in that filesystem.

     The information supplied is the name of the filesystem, the
     type (ffs, nfs, etc.), the number of kbytes available in the
     partition, the number of kbytes in use, the number of kbytes
     free in the filesystem, the percentage of the available
     space that is free, and the name of the root of the filesys-
     tem.  In addition, if the -i option is given, the number of
     inodes available, used, free, and the percentage of free
     inodes are also listed.

     NOTE: This version of df prints in a Sun/BSD-like format
     since the system uses filesystems from these systems.

OPTIONS
     -b                  Print statistics in 512-byte units.  The
                         default is to use 1kbyte (1024-byte)
                         units.

     -f                  Scan the free list instead of trusting
                         the values given back by the statfs(2)
                         system call.

     -i                  Print statistics about inodes in addi-
                         tion to file space.

     -t types            Print information about filesystems only
                         if they match the named types.  The
                         types argument consists of a comma-
                         separated list of filesystem type names,
                         such as nfs and ffs.  In addition, the
                         special type local matches any non-NFS
                         filesystem.  Multiple -t options may be
                         given.

     -u                  Verify that the host associated with an
                         NFS filesystem is up before attempting
                         to obtain statistics.  This option is
                         not yet implemented, and will not be if
                         NFS is changed to not hang for down



                         Printed 1/15/91                   Page 1





DF(1M-SysV)         RISC/os Reference Manual          DF(1M-SysV)



                         hosts.

     -k                  Not used.  Recognized for compatability
                         with other systems.

     -q                  Not used.  Recognized for compatability
                         with other systems.

FILES
     /etc/fstab
     /etc/mtab

SEE ALSO
     statfs(2), mntent(4), proc(4).

ERRORS
     Inode counts for NFS entries are always 0 because the NFS
     protocol does not supply this information.

     An empty filesystem is reported as being partially (usually
     10%) full.  This is due to the fact that the free space
     reported by the operating system is the amount of space that
     can be used by a non-superuser, whereas the available space
     reported is the total amount of space on the partition.  The
     above properties will exhibit themselves by allowing free
     space to go negative, usage percentage to go over 100% and
     blocks used to be greater than total blocks.




























 Page 2                  Printed 1/15/91



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026