[PATCH V2] xfs: skip verification if initial sb read is wrong length
Dave Chinner
david at fromorbit.com
Thu Feb 13 17:02:26 CST 2014
On Thu, Feb 13, 2014 at 04:45:36PM -0600, Eric Sandeen wrote:
> @@ -334,7 +341,12 @@ reread:
> if (sector_size < sbp->sb_sectsize) {
> xfs_buf_relse(bp);
> sector_size = sbp->sb_sectsize;
> + buf_ops = loud ? &xfs_sb_buf_ops : &xfs_sb_quiet_buf_ops;
> goto reread;
> + } else {
> + /* We guessed right! Verify it. */
> + bp->b_ops = &xfs_sb_buf_ops;
> + bp->b_ops->verify_read(bp);
> }
One needs to check bp->b_error after verification ;)
Cheers,
Dave.
--
Dave Chinner
david at fromorbit.com
More information about the xfs
mailing list