diff options
author | mpp <mpp@FreeBSD.org> | 1997-01-29 05:43:46 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1997-01-29 05:43:46 +0000 |
commit | 17f7e2c9e24cbd57dcfd3c6f71f618b70690e6ec (patch) | |
tree | c93e3bb05d6286ef72700847a2d7f7f14c1f2b41 /lib/libc/sys/getfsstat.2 | |
parent | d0c49608ac9d59e316c08d450be987ac064fb001 (diff) | |
download | FreeBSD-src-17f7e2c9e24cbd57dcfd3c6f71f618b70690e6ec.zip FreeBSD-src-17f7e2c9e24cbd57dcfd3c6f71f618b70690e6ec.tar.gz |
Update to reflect the current mount.h.
Diffstat (limited to 'lib/libc/sys/getfsstat.2')
-rw-r--r-- | lib/libc/sys/getfsstat.2 | 60 |
1 files changed, 42 insertions, 18 deletions
diff --git a/lib/libc/sys/getfsstat.2 b/lib/libc/sys/getfsstat.2 index 7679f9e..9b8dad8 100644 --- a/lib/libc/sys/getfsstat.2 +++ b/lib/libc/sys/getfsstat.2 @@ -51,31 +51,55 @@ is a pointer to .Xr statfs structures defined as follows: .Bd -literal -typedef quad fsid_t; +typedef struct fsid { long val[2]; } fsid_t; /* file system id type */ -#define MNAMELEN 32 /* length of buffer for returned name */ +/* + * file system statistics + */ + +#define MNAMELEN 90 /* length of buffer for returned name */ struct statfs { - short f_type; /* type of filesystem (see below) */ - short f_flags; /* copy of mount flags */ - long f_bsize; /* fundamental filesystem block size */ - long f_iosize; /* optimal transfer block size */ - long f_blocks; /* total data blocks in filesystem */ - long f_bfree; /* free blocks in fs */ - long f_bavail; /* free blocks avail to non-superuser */ - long f_files; /* total file nodes in filesystem */ - long f_ffree; /* free file nodes in fs */ - fsid_t f_fsid; /* filesystem id */ - long f_spare[6]; /* spare for later */ - char f_mntonname[MNAMELEN]; /* directory on which mounted */ - char f_mntfromname[MNAMELEN]; /* mounted filesystem */ + long f_spare2; /* placeholder */ + long f_bsize; /* fundamental file system block size */ + long f_iosize; /* optimal transfer block size */ + long f_blocks; /* total data blocks in file system */ + long f_bfree; /* free blocks in fs */ + long f_bavail; /* free blocks avail to non-superuser */ + long f_files; /* total file nodes in file system */ + long f_ffree; /* free file nodes in fs */ + fsid_t f_fsid; /* file system id */ + uid_t f_owner; /* user that mounted the filesystem */ + int f_type; /* type of filesystem (see below) */ + int f_flags; /* copy of mount flags */ + long f_spare[6]; /* spare for later */ + char f_mntonname[MNAMELEN];/* directory on which mounted */ + char f_mntfromname[MNAMELEN];/* mounted filesystem */ }; + /* * File system types. */ -#define MOUNT_UFS 1 -#define MOUNT_NFS 2 -#define MOUNT_PC 3 +#define MOUNT_NONE 0 +#define MOUNT_UFS 1 /* Fast Filesystem */ +#define MOUNT_NFS 2 /* Sun-compatible Network Filesystem */ +#define MOUNT_MFS 3 /* Memory-based Filesystem */ +#define MOUNT_MSDOS 4 /* MS/DOS Filesystem */ +#define MOUNT_LFS 5 /* Log-based Filesystem */ +#define MOUNT_LOFS 6 /* Loopback Filesystem */ +#define MOUNT_FDESC 7 /* File Descriptor Filesystem */ +#define MOUNT_PORTAL 8 /* Portal Filesystem */ +#define MOUNT_NULL 9 /* Minimal Filesystem Layer */ +#define MOUNT_UMAP 10 /* User/Group Identifier Remapping Filesystem */ +#define MOUNT_KERNFS 11 /* Kernel Information Filesystem */ +#define MOUNT_PROCFS 12 /* /proc Filesystem */ +#define MOUNT_AFS 13 /* Andrew Filesystem */ +#define MOUNT_CD9660 14 /* ISO9660 (aka CDROM) Filesystem */ +#define MOUNT_UNION 15 /* Union (translucent) Filesystem */ +#define MOUNT_DEVFS 16 /* existing device Filesystem */ +#define MOUNT_EXT2FS 17 /* Linux EXT2FS */ +#define MOUNT_TFS 18 /* Netcon Novell filesystem */ +#define MOUNT_MAXTYPE 18 .Ed .Pp Fields that are undefined for a particular filesystem are set to -1. |