Update to reflect the current mount.h.

This commit is contained in:
Mike Pritchard 1997-01-29 05:43:46 +00:00
parent 9d5e1d812d
commit 62ae6ac04d

View File

@ -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.