]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
db: re-enable write support for v5 filesystems.
authorDave Chinner <dchinner@redhat.com>
Wed, 13 Nov 2013 06:40:51 +0000 (06:40 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 13 Nov 2013 17:14:05 +0000 (11:14 -0600)
As we can now verify and recalculate CRCs on IO, we can modify the
on-disk structures without corrupting the filesyste, This makes it
safe to turn write support on for v5 filesystems for the first time.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
db/init.c

index 2dc7c87070c1e6903b003e275749bdd205bc5cc3..25108ad020966d47bbcc0fa7022cb009277959e5 100644 (file)
--- a/db/init.c
+++ b/db/init.c
@@ -143,21 +143,6 @@ init(
                        exit(EXIT_FAILURE);
        }
 
-       /*
-        * Don't allow modifications to CRC enabled filesystems until we support
-        * CRC recalculation in the IO path. Unless, of course, the user is in
-        * the process of hitting us with a big hammer.
-        */
-       if (XFS_SB_VERSION_NUM(sbp) >= XFS_SB_VERSION_5 &&
-           !(x.isreadonly & LIBXFS_ISREADONLY)) {
-               fprintf(stderr, 
-       _("%s: modifications to %s are not supported in thi version.\n"
-       "Use \"-r\" to run %s in read-only mode on this filesystem .\n"),
-                       progname, fsdevice, progname);
-               if (!force)
-                       exit(EXIT_FAILURE);
-       }
-
        mp = libxfs_mount(&xmount, sbp, x.ddev, x.logdev, x.rtdev,
                          LIBXFS_MOUNT_DEBUGGER);
        if (!mp) {