]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_io: stat: treat statfs.f_flags as optional
authorJeff Mahoney <jeffm@suse.com>
Mon, 20 Nov 2017 19:54:02 +0000 (13:54 -0600)
committerEric Sandeen <sandeen@redhat.com>
Mon, 20 Nov 2017 19:54:02 +0000 (13:54 -0600)
commitce9adab0071e6844e097b695bd800cca135dd440
treea88d3c20f36340269f4905a615a5ec98d3eb12a8
parent8bb344f4bf2ef5d90bc02221d8411db603c11416
xfs_io: stat: treat statfs.f_flags as optional

Kernels prior to 2.6.36 didn't contain statfs.f_flags.  Distros with
initial releases with kernels prior to this may not have updated
headers with this member.  Only attempt to print it if we have the
header with the member defined.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
[sandeen: define HAVE_STATFS_FLAGS in io/Makefile]
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
configure.ac
include/builddefs.in
io/Makefile
io/stat.c
m4/package_libcdev.m4