View | Details | Raw Unified | Return to bug 51845
Collapse All | Expand All

(-)sys/sys/mount.h (-2 lines)
Lines 67-74 Link Here
67
#define	MFSNAMELEN	16	/* length of fs type name, including null */
67
#define	MFSNAMELEN	16	/* length of fs type name, including null */
68
#define	MNAMELEN	(88 - 2 * sizeof(long))	/* size of on/from name bufs */
68
#define	MNAMELEN	(88 - 2 * sizeof(long))	/* size of on/from name bufs */
69
69
70
/* XXX getfsstat.2 is out of date with write and read counter changes here. */
71
/* XXX statfs.2 is out of date with read counter changes here. */
72
struct statfs {
70
struct statfs {
73
	long	f_spare2;		/* placeholder */
71
	long	f_spare2;		/* placeholder */
74
	long	f_bsize;		/* fundamental filesystem block size */
72
	long	f_bsize;		/* fundamental filesystem block size */
(-)lib/libc/sys/getfsstat.2 (-17 / +23 lines)
Lines 65-89 Link Here
65
 */
65
 */
66
66
67
#define MFSNAMELEN 16	/* length of fs type name, including null */
67
#define MFSNAMELEN 16	/* length of fs type name, including null */
68
#define MNAMELEN   90	/* length of buffer for returned name */
68
#define MNAMELEN   (88 - 2 * sizeof(long)) /* size of on/from name bufs */
69
69
70
struct statfs {
70
struct statfs {
71
    long    f_spare2;		/* placeholder */
71
	long	f_spare2;		/* placeholder */
72
    long    f_bsize;		/* fundamental file system block size */
72
	long	f_bsize;		/* fundamental file system block size */
73
    long    f_iosize;		/* optimal transfer block size */
73
	long	f_iosize;		/* optimal transfer block size */
74
    long    f_blocks;		/* total data blocks in file system */
74
	long	f_blocks;		/* total data blocks in file system */
75
    long    f_bfree;		/* free blocks in fs */
75
	long	f_bfree;		/* free blocks in fs */
76
    long    f_bavail;		/* free blocks avail to non-superuser */
76
	long	f_bavail;		/* free blocks avail to non-superuser */
77
    long    f_files;		/* total file nodes in file system */
77
	long	f_files;		/* total file nodes in file system */
78
    long    f_ffree;		/* free file nodes in fs */
78
	long	f_ffree;		/* free file nodes in fs */
79
    fsid_t  f_fsid;		/* file system id */
79
	fsid_t	f_fsid;         /* file system id */
80
    uid_t   f_owner;		/* user that mounted the file system */
80
	uid_t	f_owner;        /* user that mounted the file system */
81
    int     f_type;		/* type of file system (see below) */
81
	int		f_type;         /* type of file system (see below) */
82
    int     f_flags;		/* copy of mount flags */
82
	int		f_flags;		/* copy of mount exported flags */
83
    long    f_spare[2];		/* spare for later */
83
	long	f_syncwrites;	/* count of sync writes since mount */
84
    char    f_fstypename[MFSNAMELEN];/* fs type name */
84
	long	f_asyncwrites;	/* count of async writes since mount */
85
    char    f_mntonname[MNAMELEN];/* directory on which mounted */
85
	char	f_fstypename[MFSNAMELEN];/* fs type name */
86
    char    f_mntfromname[MNAMELEN];/* mounted file system */
86
	char	f_mntonname[MNAMELEN];/* directory on which mounted */
87
	long	f_syncreads;	/* count of sync reads since mount */
88
	long	f_asyncreads;	/* count of async reads since mount */
89
	short	f_spares1;		/* unused spare */
90
	char	f_mntfromname[MNAMELEN];/* mounted filesystem */
91
	short	f_spares2;		/* unused spare */
92
	long	f_spare[2];		/* unused spare */
87
};
93
};
88
.Ed
94
.Ed
89
.Pp
95
.Pp
(-)lib/libc/sys/statfs.2 (-19 / +23 lines)
Lines 70-96 Link Here
70
 */
70
 */
71
71
72
#define MFSNAMELEN 16	/* length of fs type name, including null */
72
#define MFSNAMELEN 16	/* length of fs type name, including null */
73
#define MNAMELEN   90	/* length of buffer for returned name */
73
#define MNAMELEN   (88 - 2 * sizeof(long)) /* size of on/from name bufs */
74
74
75
struct statfs {
75
struct statfs {
76
long	f_bsize;	  /* fundamental file system block size */
76
	long	f_spare2;		/* placeholder */
77
long	f_iosize;	  /* optimal transfer block size */
77
	long	f_bsize;		/* fundamental file system block size */
78
long	f_blocks;	  /* total data blocks in file system */
78
	long	f_iosize;		/* optimal transfer block size */
79
long	f_bfree;	  /* free blocks in fs */
79
	long	f_blocks;		/* total data blocks in file system */
80
long	f_bavail;	  /* free blocks avail to non-superuser */
80
	long	f_bfree;		/* free blocks in fs */
81
long	f_files;	  /* total file nodes in file system */
81
	long	f_bavail;		/* free blocks avail to non-superuser */
82
long	f_ffree;	  /* free file nodes in fs */
82
	long	f_files;		/* total file nodes in file system */
83
fsid_t	f_fsid;		  /* file system id */
83
	long	f_ffree;		/* free file nodes in fs */
84
uid_t	f_owner;	  /* user that mounted the file system */
84
	fsid_t	f_fsid;         /* file system id */
85
int	f_type;		  /* type of file system */
85
	uid_t	f_owner;        /* user that mounted the file system */
86
int	f_flags;	  /* copy of mount flags */
86
	int		f_type;         /* type of file system (see below) */
87
long    f_syncwrites;	  /* count of sync writes since mount */
87
	int		f_flags;		/* copy of mount exported flags */
88
long    f_asyncwrites;	  /* count of async writes since mount */
88
	long	f_syncwrites;	/* count of sync writes since mount */
89
char	f_fstypename[MFSNAMELEN];/* fs type name */
89
	long	f_asyncwrites;	/* count of async writes since mount */
90
char	f_mntonname[MNAMELEN];	 /* mount point */
90
	char	f_fstypename[MFSNAMELEN];/* fs type name */
91
long    f_syncreads;		 /* count of sync reads since mount */
91
	char	f_mntonname[MNAMELEN];/* directory on which mounted */
92
long    f_asyncreads;		 /* count of async reads since mount */
92
	long	f_syncreads;	/* count of sync reads since mount */
93
char	f_mntfromname[MNAMELEN]; /* mounted file system */
93
	long	f_asyncreads;	/* count of async reads since mount */
94
	short	f_spares1;		/* unused spare */
95
	char	f_mntfromname[MNAMELEN];/* mounted filesystem */
96
	short	f_spares2;		/* unused spare */
97
	long	f_spare[2];		/* unused spare */
94
};
98
};
95
.Ed
99
.Ed
96
The flags that may be returned include:
100
The flags that may be returned include:

Return to bug 51845