aboutsummaryrefslogtreecommitdiffstats
path: root/mdrestore
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2013-11-13 06:40:55 +0000
committerRich Johnston <rjohnston@sgi.com>2013-11-14 08:58:26 -0600
commit8ab75c4d9176d8831fd137cf0e7916032d8216da (patch)
treec6318a4316ac540d271a043d4ff11948be10c4ee /mdrestore
parent839dac7f06d54600b3092a7ad9cb903315a27f97 (diff)
downloadxfsprogs-dev-8ab75c4d9176d8831fd137cf0e7916032d8216da.tar.gz
db: enable metadump on CRC filesystems
Now that we can calculate CRCs through xfs_db, we can add support for recalculating CRCs on obfuscated metadump images. This simply requires us to call the write verifier manually before writing the buffer to the metadump image. We don't need to do anything special to mdrestore, as the metadata blocks it reads from the image file will already have all the correct CRCs in them. Hence it can be mostly oblivious to the fact that the filesystem it is restoring contains CRCs. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Rich Johnston <rjohnston@sgi.com>
Diffstat (limited to 'mdrestore')
-rw-r--r--mdrestore/xfs_mdrestore.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mdrestore/xfs_mdrestore.c b/mdrestore/xfs_mdrestore.c
index fe61766e64..e57bdb2100 100644
--- a/mdrestore/xfs_mdrestore.c
+++ b/mdrestore/xfs_mdrestore.c
@@ -109,9 +109,6 @@ perform_restore(
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) {