• Dave Chinner's avatar
    xfs: verify superblocks as they are read from disk · 98021821
    Dave Chinner authored
    Add a superblock verify callback function and pass it into the
    buffer read functions. Remove the now redundant verification code
    that is currently in use.
    
    Adding verification shows that secondary superblocks never have
    their "sb_inprogress" flag cleared by mkfs.xfs, so when validating
    the secondary superblocks during a grow operation we have to avoid
    checking this field. Even if we fix mkfs, we will still have to
    ignore this field for verification purposes unless a version of mkfs
    that does not have this bug was used.
    Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarPhil White <pwhite@sgi.com>
    Signed-off-by: default avatarBen Myers <bpm@sgi.com>
    98021821
xfs_fsops.c 21.2 KB