| To: | david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 14/14] xfs: add reflink btree block detection to log recovery |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Thu, 25 Jun 2015 16:40:45 -0700 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20150625233909.4992.68314.stgit@xxxxxxxxxxxxxxxx> |
| References: | <20150625233909.4992.68314.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
Teach log recovery how to deal with reflink btree blocks.
Signed-off-by: Darrick J. Wong <darrick.wong@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 3bbea4f..2175d06 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -1849,6 +1849,7 @@ xlog_recover_get_buf_lsn(
case XFS_ABTB_MAGIC:
case XFS_ABTC_MAGIC:
case XFS_RMAP_CRC_MAGIC:
+ case XFS_RLBT_CRC_MAGIC:
case XFS_IBT_CRC_MAGIC:
case XFS_IBT_MAGIC: {
struct xfs_btree_block *btb = blk;
@@ -2005,6 +2006,9 @@ xlog_recover_validate_buf_type(
case XFS_RMAP_CRC_MAGIC:
bp->b_ops = &xfs_rmapbt_buf_ops;
break;
+ case XFS_RLBT_CRC_MAGIC:
+ bp->b_ops = &xfs_reflinkbt_buf_ops;
+ break;
default:
xfs_warn(mp, "Bad btree block magic!");
ASSERT(0);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 13/14] xfs: add reflink btree root when expanding the filesystem, Darrick J. Wong |
|---|---|
| Next by Date: | Remotely management advertising player / Attn: Technical Manager与您共享了相册。, Remotely management advertising player / Attn: Technical Manager |
| Previous by Thread: | [PATCH 13/14] xfs: add reflink btree root when expanding the filesystem, Darrick J. Wong |
| Next by Thread: | Remotely management advertising player / Attn: Technical Manager与您共享了相册。, Remotely management advertising player / Attn: Technical Manager |
| Indexes: | [Date] [Thread] [Top] [All Lists] |