linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xfs_io: Print filesystem statfs flags in 'statfs' command
@ 2017-07-03  8:28 Carlos Maiolino
  2017-07-13 12:41 ` Carlos Maiolino
  2017-07-13 15:46 ` Bill O'Donnell
  0 siblings, 2 replies; 3+ messages in thread
From: Carlos Maiolino @ 2017-07-03  8:28 UTC (permalink / raw)
  To: linux-xfs

Sometimes printing the flags from the statfs structure is useful, so,
make statfs command print them.

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
---
 io/stat.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/io/stat.c b/io/stat.c
index 783eb2e..060ff83 100644
--- 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;
-- 
2.9.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] xfs_io: Print filesystem statfs flags in 'statfs' command
  2017-07-03  8:28 [PATCH] xfs_io: Print filesystem statfs flags in 'statfs' command Carlos Maiolino
@ 2017-07-13 12:41 ` Carlos Maiolino
  2017-07-13 15:46 ` Bill O'Donnell
  1 sibling, 0 replies; 3+ messages in thread
From: Carlos Maiolino @ 2017-07-13 12:41 UTC (permalink / raw)
  To: linux-xfs

Ping?

On Mon, Jul 03, 2017 at 10:28:30AM +0200, Carlos Maiolino wrote:
> Sometimes printing the flags from the statfs structure is useful, so,
> make statfs command print them.
> 
> Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
> ---
>  io/stat.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/io/stat.c b/io/stat.c
> index 783eb2e..060ff83 100644
> --- 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;
> -- 
> 2.9.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Carlos

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] xfs_io: Print filesystem statfs flags in 'statfs' command
  2017-07-03  8:28 [PATCH] xfs_io: Print filesystem statfs flags in 'statfs' command Carlos Maiolino
  2017-07-13 12:41 ` Carlos Maiolino
@ 2017-07-13 15:46 ` Bill O'Donnell
  1 sibling, 0 replies; 3+ messages in thread
From: Bill O'Donnell @ 2017-07-13 15:46 UTC (permalink / raw)
  To: Carlos Maiolino; +Cc: linux-xfs

On Mon, Jul 03, 2017 at 10:28:30AM +0200, Carlos Maiolino wrote:
> Sometimes printing the flags from the statfs structure is useful, so,
> make statfs command print them.
> 
> Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>

looks good.
Reviewed-by: Bill O'Donnell <billodo@redhat.com>

> ---
>  io/stat.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/io/stat.c b/io/stat.c
> index 783eb2e..060ff83 100644
> --- 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;
> -- 
> 2.9.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-13 15:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-03  8:28 [PATCH] xfs_io: Print filesystem statfs flags in 'statfs' command Carlos Maiolino
2017-07-13 12:41 ` Carlos Maiolino
2017-07-13 15:46 ` Bill O'Donnell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).