FreeBSD Bugzilla – Attachment 30982 Details for
Bug 51845
[PATCH] catch up getfsstat.2 and statfs.2 with reality
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mount.h.diff
mount.h.diff (text/plain), 5.92 KB, created by
Lukas Ertl
on 2003-05-06 14:20:13 UTC
(
hide
)
Description:
mount.h.diff
Filename:
MIME Type:
Creator:
Lukas Ertl
Created:
2003-05-06 14:20:13 UTC
Size:
5.92 KB
patch
obsolete
>Index: sys/sys/mount.h >=================================================================== >RCS file: /u/cvs/cvs/src/sys/sys/mount.h,v >retrieving revision 1.147 >diff -u -r1.147 mount.h >--- sys/sys/mount.h 26 Mar 2003 22:15:58 -0000 1.147 >+++ sys/sys/mount.h 6 May 2003 13:12:50 -0000 >@@ -67,8 +67,6 @@ > #define MFSNAMELEN 16 /* length of fs type name, including null */ > #define MNAMELEN (88 - 2 * sizeof(long)) /* size of on/from name bufs */ > >-/* XXX getfsstat.2 is out of date with write and read counter changes here. */ >-/* XXX statfs.2 is out of date with read counter changes here. */ > struct statfs { > long f_spare2; /* placeholder */ > long f_bsize; /* fundamental filesystem block size */ >Index: lib/libc/sys/getfsstat.2 >=================================================================== >RCS file: /u/cvs/cvs/src/lib/libc/sys/getfsstat.2,v >retrieving revision 1.14 >diff -u -r1.14 getfsstat.2 >--- lib/libc/sys/getfsstat.2 19 Dec 2002 09:40:24 -0000 1.14 >+++ lib/libc/sys/getfsstat.2 6 May 2003 13:12:50 -0000 >@@ -65,25 +65,31 @@ > */ > > #define MFSNAMELEN 16 /* length of fs type name, including null */ >-#define MNAMELEN 90 /* length of buffer for returned name */ >+#define MNAMELEN (88 - 2 * sizeof(long)) /* size of on/from name bufs */ > > struct statfs { >- 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 file system */ >- int f_type; /* type of file system (see below) */ >- int f_flags; /* copy of mount flags */ >- long f_spare[2]; /* spare for later */ >- char f_fstypename[MFSNAMELEN];/* fs type name */ >- char f_mntonname[MNAMELEN];/* directory on which mounted */ >- char f_mntfromname[MNAMELEN];/* mounted file system */ >+ 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 file system */ >+ int f_type; /* type of file system (see below) */ >+ int f_flags; /* copy of mount exported flags */ >+ long f_syncwrites; /* count of sync writes since mount */ >+ long f_asyncwrites; /* count of async writes since mount */ >+ char f_fstypename[MFSNAMELEN];/* fs type name */ >+ char f_mntonname[MNAMELEN];/* directory on which mounted */ >+ long f_syncreads; /* count of sync reads since mount */ >+ long f_asyncreads; /* count of async reads since mount */ >+ short f_spares1; /* unused spare */ >+ char f_mntfromname[MNAMELEN];/* mounted filesystem */ >+ short f_spares2; /* unused spare */ >+ long f_spare[2]; /* unused spare */ > }; > .Ed > .Pp >Index: lib/libc/sys/statfs.2 >=================================================================== >RCS file: /u/cvs/cvs/src/lib/libc/sys/statfs.2,v >retrieving revision 1.21 >diff -u -r1.21 statfs.2 >--- lib/libc/sys/statfs.2 19 Dec 2002 09:40:25 -0000 1.21 >+++ lib/libc/sys/statfs.2 6 May 2003 13:12:50 -0000 >@@ -70,27 +70,31 @@ > */ > > #define MFSNAMELEN 16 /* length of fs type name, including null */ >-#define MNAMELEN 90 /* length of buffer for returned name */ >+#define MNAMELEN (88 - 2 * sizeof(long)) /* size of on/from name bufs */ > > struct statfs { >-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 file system */ >-int f_type; /* type of file system */ >-int f_flags; /* copy of mount flags */ >-long f_syncwrites; /* count of sync writes since mount */ >-long f_asyncwrites; /* count of async writes since mount */ >-char f_fstypename[MFSNAMELEN];/* fs type name */ >-char f_mntonname[MNAMELEN]; /* mount point */ >-long f_syncreads; /* count of sync reads since mount */ >-long f_asyncreads; /* count of async reads since mount */ >-char f_mntfromname[MNAMELEN]; /* mounted file system */ >+ 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 file system */ >+ int f_type; /* type of file system (see below) */ >+ int f_flags; /* copy of mount exported flags */ >+ long f_syncwrites; /* count of sync writes since mount */ >+ long f_asyncwrites; /* count of async writes since mount */ >+ char f_fstypename[MFSNAMELEN];/* fs type name */ >+ char f_mntonname[MNAMELEN];/* directory on which mounted */ >+ long f_syncreads; /* count of sync reads since mount */ >+ long f_asyncreads; /* count of async reads since mount */ >+ short f_spares1; /* unused spare */ >+ char f_mntfromname[MNAMELEN];/* mounted filesystem */ >+ short f_spares2; /* unused spare */ >+ long f_spare[2]; /* unused spare */ > }; > .Ed > The flags that may be returned include:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51845
: 30982