| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 18/20] xfs: add rmap btree block detection to log recovery |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Wed, 3 Jun 2015 16:04:55 +1000 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1433311497-10245-1-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1433311497-10245-1-git-send-email-david@xxxxxxxxxxxxx> |
From: Dave Chinner <dchinner@xxxxxxxxxx>
So such blocks can be correctly identified and have their operations
structutes attached to validate recovery has not resulted in a
correct block.
Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
---
fs/xfs/xfs_log_recover.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index 5dad26c..239b19c 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -1848,6 +1848,7 @@ xlog_recover_get_buf_lsn(
case XFS_ABTC_CRC_MAGIC:
case XFS_ABTB_MAGIC:
case XFS_ABTC_MAGIC:
+ case XFS_RMAP_CRC_MAGIC:
case XFS_IBT_CRC_MAGIC:
case XFS_IBT_MAGIC: {
struct xfs_btree_block *btb = blk;
@@ -2001,6 +2002,9 @@ xlog_recover_validate_buf_type(
case XFS_BMAP_MAGIC:
bp->b_ops = &xfs_bmbt_buf_ops;
break;
+ case XFS_RMAP_CRC_MAGIC:
+ bp->b_ops = &xfs_rmapbt_buf_ops;
+ break;
default:
xfs_warn(mp, "Bad btree block magic!");
ASSERT(0);
--
2.0.0
|
| Previous by Date: | [PATCH 10/20] xfs: define the on-disk rmap btree format, Dave Chinner |
|---|---|
| Next by Date: | [PATCH 19/20] xfs: disable XFS_IOC_SWAPEXT when rmap btree is enabled, Dave Chinner |
| Previous by Thread: | [PATCH 10/20] xfs: define the on-disk rmap btree format, Dave Chinner |
| Next by Thread: | [PATCH 19/20] xfs: disable XFS_IOC_SWAPEXT when rmap btree is enabled, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |