| To: | david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 31/76] xfs: add rmap btree block detection to log recovery |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Sat, 19 Dec 2015 00:59:45 -0800 |
| Cc: | xfs@xxxxxxxxxxx, Dave Chinner <dchinner@xxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20151219085622.12713.88678.stgit@xxxxxxxxxxxxxxxx> |
| References: | <20151219085622.12713.88678.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
>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 c3abf50..c8f056e 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -1847,6 +1847,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;
@@ -2015,6 +2016,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);
|
| Previous by Date: | [PATCH 30/76] xfs: add rmap btree geometry feature flag, Darrick J. Wong |
|---|---|
| Next by Date: | [PATCH 32/76] xfs: enable the rmap btree functionality, Darrick J. Wong |
| Previous by Thread: | [PATCH 30/76] xfs: add rmap btree geometry feature flag, Darrick J. Wong |
| Next by Thread: | [PATCH 32/76] xfs: enable the rmap btree functionality, Darrick J. Wong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |