xfs
[Top] [All Lists]

[PATCH 27/37] db: re-enable write support for v5 filesystems.

To: xfs@xxxxxxxxxxx
Subject: [PATCH 27/37] db: re-enable write support for v5 filesystems.
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 6 Nov 2013 12:07:13 +1100
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1383700043-32305-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1383700043-32305-1-git-send-email-david@xxxxxxxxxxxxx>
From: Dave Chinner <dchinner@xxxxxxxxxx>

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@xxxxxxxxxx>
Reviewed-by: Christoph Hellwig <hch@xxxxxx>
---
 db/init.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/db/init.c b/db/init.c
index 48b8dd1..838ea3c 100644
--- 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) {
-- 
1.8.4.rc3

<Prev in Thread] Current Thread [Next in Thread>