| To: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 046/119] xfs: add rmap btree block detection to log recovery |
| From: | Brian Foster <bfoster@xxxxxxxxxx> |
| Date: | Mon, 18 Jul 2016 09:34:23 -0400 |
| Cc: | david@xxxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, vishal.l.verma@xxxxxxxxx, Dave Chinner <dchinner@xxxxxxxxxx>, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <146612656689.12839.658842468753557889.stgit@xxxxxxxxxxxxxxxx> |
| References: | <146612627129.12839.3827886950949809165.stgit@xxxxxxxxxxxxxxxx> <146612656689.12839.658842468753557889.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | Mutt/1.6.1 (2016-04-27) |
On Thu, Jun 16, 2016 at 06:22:46PM -0700, Darrick J. Wong wrote:
> 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
structures not?
> correct block.
>
> Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
> ---
Reviewed-by: Brian Foster <bfoster@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 f7f9635..dbfbc26 100644
> --- a/fs/xfs/xfs_log_recover.c
> +++ b/fs/xfs/xfs_log_recover.c
> @@ -2233,6 +2233,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;
> @@ -2401,6 +2402,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);
>
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 045/119] xfs: add rmap btree geometry feature flag, Brian Foster |
|---|---|
| Next by Date: | Re: [PATCH 047/119] xfs: disable XFS_IOC_SWAPEXT when rmap btree is enabled, Brian Foster |
| Previous by Thread: | Re: [PATCH 045/119] xfs: add rmap btree geometry feature flag, Brian Foster |
| Next by Thread: | Re: [PATCH 047/119] xfs: disable XFS_IOC_SWAPEXT when rmap btree is enabled, Brian Foster |
| Indexes: | [Date] [Thread] [Top] [All Lists] |