]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs_db: metadump metadir rt bitmap and summary files
authorChristoph Hellwig <hch@lst.de>
Sat, 3 Aug 2024 08:28:42 +0000 (10:28 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 6 Aug 2024 12:53:50 +0000 (05:53 -0700)
Don't skip dumping the data fork for regular files that are marked as
metadata inodes.  This catches rtbitmap and summary inodes on rtgroup
enabled file systems where their inode numbers aren't recorded in the
superblock.

Signed-off-by: Christoph Hellwig <hch@lst.de>
db/metadump.c

index 3ae872e80dbf55f7c9b81857557a5a11133cdb56..04b437e617df0e8ed5a3612a1a636d2f6a19bc7e 100644 (file)
@@ -2072,7 +2072,11 @@ process_bmbt_reclist(
        xfs_agblock_t           agbno;
        int                     rval = 1;
 
-       if (btype == TYP_DATA)
+       /*
+        * Ignore regular file data except for metadata inodes, where it is by
+        * definition metadata.
+        */
+       if (btype == TYP_DATA && !is_metadata_ino(dip))
                return 1;
 
        convert_extent(&rp[numrecs - 1], &o, &s, &c, &f);