]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add CRC checks to the superblock
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 00:25:43 +0000 (10:25 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 19:17:23 +0000 (14:17 -0500)
commit5565d79aedd0ca9d6e8199060bc91665933b828d
treec694abe701c4752def538fba413ffb977639df9e
parentbdc16ee528513e684c98ed7f31e2cc0cf544948f
xfs: add CRC checks to the superblock

With the addition of CRCs, there is such a wide and varied change to
the on disk format that it makes sense to bump the superblock
version number rather than try to use feature bits for all the new
functionality.

This commit introduces all the new superblock fields needed for all
the new functionality: feature masks similar to ext4, separate
project quota inodes, a LSN field for recovery and the CRC field.

This commit does not bump the superblock version number, however.
That will be done as a separate commit at the end of the series
after all the new functionality is present so we switch it all on in
one commit. This means that we can slowly introduce the changes
without them being active and hence maintain bisectability of the
tree.

This patch is based on a patch originally written by myself back
from SGI days, which was subsequently modified by Christoph Hellwig.
There is relatively little of that patch remaining, but the history
of the patch still should be acknowledged here.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
include/xfs_mount.h
include/xfs_sb.h
libxfs/xfs_mount.c