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>
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);