diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2010-10-16 18:12:26 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2010-10-16 18:12:26 +0000 |
commit | 342b227d47ff0a73a9f6620547bf4daae24212cf (patch) | |
tree | a45b0a7a986c759c8b802cdea244426c01d386ed | |
parent | 078c61f5dc76562d453b17716800dbd2a7cd1cd2 (diff) |
update struct statfs; from Vladimir Kirillov
-rw-r--r-- | lib/libc/sys/getfsstat.2 | 50 |
1 files changed, 30 insertions, 20 deletions
diff --git a/lib/libc/sys/getfsstat.2 b/lib/libc/sys/getfsstat.2 index c35e66f31d6..bf5949642ec 100644 --- a/lib/libc/sys/getfsstat.2 +++ b/lib/libc/sys/getfsstat.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getfsstat.2,v 1.17 2009/06/05 23:31:34 millert Exp $ +.\" $OpenBSD: getfsstat.2,v 1.18 2010/10/16 18:12:25 jmc Exp $ .\" $NetBSD: getfsstat.2,v 1.6 1995/06/29 11:40:44 cgd Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)getfsstat.2 8.1 (Berkeley) 6/9/93 .\" -.Dd $Mdocdate: June 5 2009 $ +.Dd $Mdocdate: October 16 2010 $ .Dt GETFSSTAT 2 .Os .Sh NAME @@ -55,24 +55,34 @@ typedef struct { int32_t val[2]; } fsid_t; #define MNAMELEN 90 /* length of buffer for returned name */ struct statfs { - u_int32_t f_flags; /* copy of mount flags */ - int32_t f_bsize; /* fundamental file system block size */ - u_int32_t f_iosize; /* optimal transfer block size */ - u_int32_t f_blocks; /* total data blocks in file system */ - u_int32_t f_bfree; /* free blocks in fs */ - int32_t f_bavail; /* free blocks avail to non-superuser */ - u_int32_t f_files; /* total file nodes in file system */ - u_int32_t f_ffree; /* free file nodes in fs */ - fsid_t f_fsid; /* file system id */ - uid_t f_owner; /* user that mounted the file system */ - u_int32_t f_syncwrites; /* count of sync writes since mount */ - u_int32_t f_asyncwrites; /* count of async writes since mount */ - u_int32_t f_ctime; /* last mount [-u] time */ - u_int32_t f_spare[3]; /* 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 */ - union mount_info mount_info; /* per-filesystem mount options */ + u_int32_t f_flags; /* copy of mount flags */ + u_int32_t f_bsize; /* file system block size */ + u_int32_t f_iosize; /* optimal transfer block size */ + + /* unit is f_bsize */ + u_int64_t f_blocks; /* total data blocks in file system */ + u_int64_t f_bfree; /* free blocks in fs */ + int64_t f_bavail; /* free blocks avail to non-superuser */ + + u_int64_t f_files; /* total file nodes in file system */ + u_int64_t f_ffree; /* free file nodes in fs */ + int64_t f_favail; /* free file nodes avail to non-root */ + + u_int64_t f_syncwrites; /* count of sync writes since mount */ + u_int64_t f_syncreads; /* count of sync reads since mount */ + u_int64_t f_asyncwrites; /* count of async writes since mount */ + u_int64_t f_asyncreads; /* count of async reads since mount */ + + fsid_t f_fsid; /* file system id */ + u_int32_t f_namemax; /* maximum filename length */ + uid_t f_owner; /* user that mounted the file system */ + u_int32_t f_ctime; /* last mount [-u] time */ + u_int32_t f_spare[3]; /* 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 */ + union mount_info mount_info; /* per-filesystem mount options */ }; .Ed .Pp |