From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 2D97229E07 for ; Mon, 27 May 2013 02:15:24 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay3.corp.sgi.com (Postfix) with ESMTP id BFD3DAC007 for ; Mon, 27 May 2013 00:15:20 -0700 (PDT) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by cuda.sgi.com with ESMTP id WpHGKG5snx7d20GO for ; Mon, 27 May 2013 00:15:19 -0700 (PDT) Received: from disappointment ([192.168.1.1]) by dastard with esmtp (Exim 4.76) (envelope-from ) id 1Ugrdy-0008LG-NN for xfs@oss.sgi.com; Mon, 27 May 2013 17:14:58 +1000 Received: from dave by disappointment with local (Exim 4.80) (envelope-from ) id 1Ugrdy-0006U5-JP for xfs@oss.sgi.com; Mon, 27 May 2013 17:14:58 +1000 From: Dave Chinner Subject: [PATCH 4/4] xfs_metadump: requires some object CRC recalculation Date: Mon, 27 May 2013 17:14:56 +1000 Message-Id: <1369638896-24872-5-git-send-email-david@fromorbit.com> In-Reply-To: <1369638896-24872-1-git-send-email-david@fromorbit.com> References: <1369312565-6266-1-git-send-email-david@fromorbit.com> <1369638896-24872-1-git-send-email-david@fromorbit.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com From: Dave Chinner 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 --- db/metadump.c | 5 +++++ mdrestore/xfs_mdrestore.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/db/metadump.c b/db/metadump.c index bc1c7fa..1c8020b 100644 --- a/db/metadump.c +++ b/db/metadump.c @@ -2050,6 +2050,11 @@ metadump_f( 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"); diff --git a/mdrestore/xfs_mdrestore.c b/mdrestore/xfs_mdrestore.c index e57bdb2..fe61766 100644 --- a/mdrestore/xfs_mdrestore.c +++ b/mdrestore/xfs_mdrestore.c @@ -109,6 +109,9 @@ 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) { -- 1.7.10.4 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs