[PATCH] printstatfs missing f_flags

enh enh at google.com
Tue Mar 17 23:00:31 UTC 2015


Show f_flags field in printstatfs

printstatfs64 was right, but printstatfs was missing f_flags.
Noticed on aarch64.

Signed-off-by: Elliott Hughes <enh at google.com>

diff --git a/statfs.c b/statfs.c
index 6f5e4d3..f1e9fc3 100644
--- a/statfs.c
+++ b/statfs.c
@@ -46,6 +46,9 @@ printstatfs(struct tcb *tcp, const long addr)
 #ifdef _STATFS_F_FRSIZE
 	tprintf(", f_frsize=%lu", (unsigned long)statbuf.f_frsize);
 #endif
+#ifdef _STATFS_F_FLAGS
+	tprintf(", f_flags=%lu", (unsigned long)statbuf.f_flags);
+#endif
 	tprints("}");
 }




More information about the Strace-devel mailing list