]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: disable modification for CRC enabled filessytems.
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 00:25:50 +0000 (10:25 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 20:19:00 +0000 (15:19 -0500)
commitc4ce3f1eee7f92d6b3493c77a48f893732d0f6e5
tree6e92e3cbd64e1e5116b7205a0407e64ab3d4c4b6
parent0e3105adf9aee65199a9fed8ffcc74f4a19adcb4
xfs_db: disable modification for CRC enabled filessytems.

xfs_db does not have the IO infrastructure to calculate metadata
CRCs after modifying metadata. Hence xfs_db can only run in
read-only mode on filesystems with version 5 superblocks.

To fix this, xfs_db needs to have it's IO engine converted to use
the buffer based IO provided by libxfs rather than rolling it's own
IO routines. That is future work, so until this conversion is done,
only allow xfs_db to run in read-only mode on v5 filesystems.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
db/init.c