And we can't do that right now through xfs_db, so disable metadump
and restore for CRC enabled filesystems until the issues have been
sorted out.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
return 0;
}
+ if (xfs_sb_version_hascrc(&mp->m_sb) && dont_obfuscate == 0) {
+ print_warning("Can't obfuscate CRC enabled filesystems yet.");
+ return 0;
+ }
+
metablock = (xfs_metablock_t *)calloc(BBSIZE + 1, BBSIZE);
if (metablock == NULL) {
print_warning("memory allocation failure");
if (sb.sb_magicnum != XFS_SB_MAGIC)
fatal("bad magic number for primary superblock\n");
+ if (xfs_sb_version_hascrc(&sb))
+ fatal("Can't restore CRC enabled filesystems yet.\n");
+
((xfs_dsb_t*)block_buffer)->sb_inprogress = 1;
if (is_target_file) {