From 3cdaa6adb113a088fdfb87aa6d7747557eccc58d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 11 Aug 2010 14:07:28 -0700 Subject: 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. --- sysdeps/unix/sysv/linux/kernel-features.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sysdeps/unix/sysv/linux/kernel-features.h') diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h index b3f2456150..838b310fcc 100644 --- a/sysdeps/unix/sysv/linux/kernel-features.h +++ b/sysdeps/unix/sysv/linux/kernel-features.h @@ -530,3 +530,8 @@ #if __LINUX_KERNEL_VERSION >= 0x020621 # define __ASSUME_RECVMMSG 1 #endif + +/* statfs fills in f_flags since 2.6.36. */ +#if __LINUX_KERNEL_VERSION >= 0x020624 +# define __ASSUME_STATFS_F_FLAGS 1 +#endif -- cgit 1.4.1