]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: Print filesystem statfs flags in 'statfs' command
authorCarlos Maiolino <cmaiolino@redhat.com>
Fri, 4 Aug 2017 21:33:45 +0000 (16:33 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 4 Aug 2017 21:33:45 +0000 (16:33 -0500)
Sometimes printing the flags from the statfs structure is useful, so,
make statfs command print them.

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Bill O'Donnell <billodo@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/stat.c

index 783eb2e37af152e5bb6d959f0ec516475e16baf3..060ff8330c2ab518b85131cf437919a9c565c542 100644 (file)
--- a/io/stat.c
+++ b/io/stat.c
@@ -199,6 +199,7 @@ statfs_f(
                printf(_("statfs.f_bavail = %lld\n"), (long long) st.f_bavail);
                printf(_("statfs.f_files = %lld\n"), (long long) st.f_files);
                printf(_("statfs.f_ffree = %lld\n"), (long long) st.f_ffree);
+               printf(_("statfs.f_fflags = 0x%llx\n"), (long long) st.f_flags);
        }
        if (file->flags & IO_FOREIGN)
                return 0;