Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ statfs(5) — DG/UX 5.4R3.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

statfs(2)



statfs(5)                      DG/UX 5.4R3.00                      statfs(5)


NAME
       statfs - data returned by the statfs system call

DESCRIPTION
       The system call statfs takes a parameter that is a pointer to the
       structure defined by this include file.  This structure returns file
       system device statistics.

          struct  statfs
          {
            short          ffstyp;
            long           fbsize;
            long           ffrsize;
            long           fblocks;
            long           fbfree;
            long           fbavail;
            long           ffiles;
            long           fffree;
            char           ffname [6];
            char           ffpack [6];
            long           ffavail;
            long           fsblocks;
            long           fsbfree;
            long           fsbavail;
            long           fsfiles;
            long           fsffree;
            long           fsfavail;
          };


       The fields of this structure are defined as follows:

       ffstyp   The type of the file system.

       fbsize   The file system block size, in bytes.

       ffrsize  The file system fragment size, in bytes.

       fblocks  The maximum number of blocks that may exist in the control-
                 point directory containing the pathname passed to statfs,
                 taking into account the block limits of all CPDs on the
                 path.  If the pathname is a CPD, its own block limit is
                 also taken into account.  If the pathname is the root of a
                 file system, this field is the maximum that applies to
                 superusers, so it is the same as fsblocks.  If the
                 pathname is not a file system root, the maximum applies to
                 both superusers and non-superusers.

       fbfree   The number of free blocks in the control-point directory
                 containing the pathname passed to statfs, taking into
                 account the block limits of all CPDs on the path.   If the
                 pathname is a CPD, its own block limit is also taken into
                 account.  If the pathname is the root of a file system,
                 this field is the number of blocks that can still be



Licensed material--property of copyright holder(s)                         1




statfs(5)                      DG/UX 5.4R3.00                      statfs(5)


                 allocated by superusers, so it is the same as fsbfree.  If
                 the pathname is not a file system root, the free count
                 applies to both superusers and non-superusers.

       fbavail  This field is the same as fbfree unless the pathname is
                 the root of a file system.  In that case it gives the
                 number of blocks that can still be allocated by non-
                 superusers.

       ffiles   The total number of files that may exist in the control-
                 point directory containing the pathname passed to statfs,
                 i.e.  the number allocated plus the number that still may
                 be created, taking into account the file limits of all CPDs
                 on the path.  If the pathname is a CPD, its own file limit
                 is also taken into account.  If the pathname is the root of
                 a file system, this field is the maximum that applies to
                 superusers, so it is the same as fsfiles.  If the pathname
                 is not a file system root, the maximum applies to both
                 superusers and non-superusers.

       fffree   The number of files that still may be created in the
                 control-point directory containing the pathname passed to
                 statfs, taking into account the files limits of all CPDs on
                 the path.   If the pathname is a CPD, its own file limit is
                 also taken into account.  If the pathname is the root of a
                 file system, this field is the number of files that can
                 still be created by superusers, so it is the same as
                 fsffree.  If the pathname is not a file system root, the
                 file count applies to both superusers and non-superusers.

       ffname   The file system name.  This field will be null unless a
                 label has been added to the file system with labelit.

       ffpack   The file system pack name.  This field will be null unless
                 a label has been added to the file system with labelit.

       ffavail  This field is the same as fffree.

       fsblocks The file system size, in blocks.

       fsbfree  The total number of free blocks on the file system.

       fsbavail The number of free blocks on the file system available to
                 non-superusers.

       fsfiles  The total number of files that may exist on the file
                 system, i.e.  the number allocated plus the number that
                 still may be created.

       fsffree  The number of files that still may be created on the file
                 system.

       fsfavail The number of files that still may be created on the file
                 system by non-superusers.



Licensed material--property of copyright holder(s)                         2




statfs(5)                      DG/UX 5.4R3.00                      statfs(5)


FILES
       /usr/include/sys/statfs.h

SEE ALSO
       statfs(2).




















































Licensed material--property of copyright holder(s)                         3


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