xfs
[Top] [All Lists]

[PATCH 113/145] xfs_db: deal with the CoW extent size hint

To: david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx
Subject: [PATCH 113/145] xfs_db: deal with the CoW extent size hint
From: "Darrick J. Wong" <darrick.wong@xxxxxxxxxx>
Date: Thu, 16 Jun 2016 18:42:38 -0700
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <146612704434.16048.12932915166928562654.stgit@xxxxxxxxxxxxxxxx>
References: <146612704434.16048.12932915166928562654.stgit@xxxxxxxxxxxxxxxx>
User-agent: StGit/0.17.1-dirty
Display the CoW extent hint size when dumping inodes.

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


diff --git a/db/inode.c b/db/inode.c
index 702cdf8..cac19fc 100644
--- a/db/inode.c
+++ b/db/inode.c
@@ -172,12 +172,16 @@ const field_t     inode_v3_flds[] = {
        { "change_count", FLDT_UINT64D, OI(COFF(changecount)), C1, 0, TYP_NONE 
},
        { "lsn", FLDT_UINT64X, OI(COFF(lsn)), C1, 0, TYP_NONE },
        { "flags2", FLDT_UINT64X, OI(COFF(flags2)), C1, 0, TYP_NONE },
+       { "cowextsize", FLDT_EXTLEN, OI(COFF(cowextsize)), C1, 0, TYP_NONE },
        { "crtime", FLDT_TIMESTAMP, OI(COFF(crtime)), C1, 0, TYP_NONE },
        { "inumber", FLDT_INO, OI(COFF(ino)), C1, 0, TYP_NONE },
        { "uuid", FLDT_UUID, OI(COFF(uuid)), C1, 0, TYP_NONE },
        { "reflink", FLDT_UINT1,
          OI(COFF(flags2) + bitsz(__uint64_t) - XFS_DIFLAG2_REFLINK_BIT-1), C1,
          0, TYP_NONE },
+       { "cowextsz", FLDT_UINT1,
+         OI(COFF(flags2) + bitsz(__uint64_t) - XFS_DIFLAG2_COWEXTSIZE_BIT-1), 
C1,
+         0, TYP_NONE },
        { NULL }
 };
 

<Prev in Thread] Current Thread [Next in Thread>