[2/4] xfs_db: report the inode dax flag
diff mbox series

Message ID 159736124924.3063459.16692986145242990855.stgit@magnolia
State New
Headers show
Series
  • xfsprogs: various small enhancements
Related show

Commit Message

Darrick J. Wong Aug. 13, 2020, 11:27 p.m. UTC
From: Darrick J. Wong <darrick.wong@oracle.com>

Report the inode DAX flag when we're printing an inode, just like we do
for other v3 inode flags.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
 db/inode.c |    3 +++
 1 file changed, 3 insertions(+)

Comments

Christoph Hellwig Aug. 17, 2020, 6:53 a.m. UTC | #1
On Thu, Aug 13, 2020 at 04:27:29PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
> 
> Report the inode DAX flag when we're printing an inode, just like we do
> for other v3 inode flags.
> 
> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>
Carlos Maiolino Aug. 17, 2020, 11:26 a.m. UTC | #2
On Thu, Aug 13, 2020 at 04:27:29PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
> 
> Report the inode DAX flag when we're printing an inode, just like we do
> for other v3 inode flags.
> 
> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
> ---
>  db/inode.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> 
> diff --git a/db/inode.c b/db/inode.c
> index 3ae5d18f9887..f13150c96aa9 100644
> --- a/db/inode.c
> +++ b/db/inode.c
> @@ -172,6 +172,9 @@ const field_t	inode_v3_flds[] = {
>  	{ "cowextsz", FLDT_UINT1,
>  	  OI(COFF(flags2) + bitsz(uint64_t) - XFS_DIFLAG2_COWEXTSIZE_BIT-1), C1,
>  	  0, TYP_NONE },
> +	{ "dax", FLDT_UINT1,
> +	  OI(COFF(flags2) + bitsz(uint64_t) - XFS_DIFLAG2_DAX_BIT - 1), C1,
> +	  0, TYP_NONE },
>  	{ NULL }

Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>

>  };
>  
>

Patch
diff mbox series

diff --git a/db/inode.c b/db/inode.c
index 3ae5d18f9887..f13150c96aa9 100644
--- a/db/inode.c
+++ b/db/inode.c
@@ -172,6 +172,9 @@  const field_t	inode_v3_flds[] = {
 	{ "cowextsz", FLDT_UINT1,
 	  OI(COFF(flags2) + bitsz(uint64_t) - XFS_DIFLAG2_COWEXTSIZE_BIT-1), C1,
 	  0, TYP_NONE },
+	{ "dax", FLDT_UINT1,
+	  OI(COFF(flags2) + bitsz(uint64_t) - XFS_DIFLAG2_DAX_BIT - 1), C1,
+	  0, TYP_NONE },
 	{ NULL }
 };