From: Darrick J. Wong Date: Tue, 25 Oct 2016 22:14:32 +0000 (-0700) Subject: xfs_db: deal with the CoW extent size hint X-Git-Tag: v4.9.0-rc1~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f5407accc50032ea484f45a67ada703c37d8f64;p=thirdparty%2Fxfsprogs-dev.git xfs_db: deal with the CoW extent size hint Display the CoW extent hint size when dumping inodes. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- diff --git a/db/inode.c b/db/inode.c index 702cdf8e3..cac19fcfb 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 } };