diff options
author | Ulrich Drepper <drepper@redhat.com> | 2010-08-11 14:07:28 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-08-11 14:07:28 -0700 |
commit | 3cdaa6adb113a088fdfb87aa6d7747557eccc58d (patch) | |
tree | 0664c1988c460e77b5e4caf6606c07ec5822d7b2 /sysdeps/unix/sysv/linux/bits/statfs.h | |
parent | 754f7da38b0904b4b989d3500cc8dd5be625cf6a (diff) | |
download | glibc-3cdaa6adb113a088fdfb87aa6d7747557eccc58d.tar.gz glibc-3cdaa6adb113a088fdfb87aa6d7747557eccc58d.tar.xz glibc-3cdaa6adb113a088fdfb87aa6d7747557eccc58d.zip |
f_flags in Linux statfs implementation.
The 2.6.36 kernel provides an additional field in the statfs results. Use this value in the statvfs emulation to avoid filling in f_flag the hard way.
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits/statfs.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/statfs.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/statfs.h b/sysdeps/unix/sysv/linux/bits/statfs.h index 0e27865e8d..7bd90d0350 100644 --- a/sysdeps/unix/sysv/linux/bits/statfs.h +++ b/sysdeps/unix/sysv/linux/bits/statfs.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 2000, 2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 1997,1998,2000,2002,2003,2010 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -42,7 +42,8 @@ struct statfs __fsid_t f_fsid; __SWORD_TYPE f_namelen; __SWORD_TYPE f_frsize; - __SWORD_TYPE f_spare[5]; + __SWORD_TYPE f_flags; + __SWORD_TYPE f_spare[4]; }; #ifdef __USE_LARGEFILE64 @@ -58,10 +59,12 @@ struct statfs64 __fsid_t f_fsid; __SWORD_TYPE f_namelen; __SWORD_TYPE f_frsize; - __SWORD_TYPE f_spare[5]; + __SWORD_TYPE f_flags; + __SWORD_TYPE f_spare[4]; }; #endif /* Tell code we have these members. */ #define _STATFS_F_NAMELEN #define _STATFS_F_FRSIZE +#define _STATFS_F_FLAGS |