[PATCH] Add support for statfs64.f_flags

Dmitry V. Levin ldv at altlinux.org
Wed Jan 18 19:48:09 UTC 2012


On Tue, Jan 17, 2012 at 11:56:53PM +0100, Andreas Schwab wrote:
> * file.c (printstatfs64): Print f_flags if available.
> ---
>  file.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/file.c b/file.c
> index 4e62c2c..473e6fd 100644
> --- a/file.c
> +++ b/file.c
> @@ -1788,6 +1788,9 @@ printstatfs64(struct tcb *tcp, long addr)
>  #ifdef _STATFS_F_FRSIZE
>  	tprintf(", f_frsize=%llu", (unsigned long long)statbuf.f_frsize);
>  #endif
> +#ifdef _STATFS_F_FLAGS
> +	tprintf(", f_flags=%llu", (unsigned long long)statbuf.f_flags);
> +#endif
>  	tprints("}");
>  }

OK for me.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20120118/2d740a98/attachment.bin>


More information about the Strace-devel mailing list