bcachefs: Disable quota support
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 26 Sep 2021 17:54:14 +0000 (13:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:12 +0000 (17:09 -0400)
Existing quota support breaks badly with snapshots. We're not deleting
the code because some of it will be needed when we reimplement quotas
along the lines of btrfs subvolume quotas.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/opts.h

index 4b79e3b..c5def5b 100644 (file)
@@ -215,19 +215,19 @@ enum opt_type {
          BCH_SB_POSIX_ACL,             true,                           \
          NULL,         "Enable POSIX acls")                            \
        x(usrquota,                     u8,                             \
-         OPT_FORMAT|OPT_MOUNT,                                         \
+         0,                                                            \
          OPT_BOOL(),                                                   \
-         BCH_SB_USRQUOTA,              false,                          \
+         NO_SB_OPT,            false,                                  \
          NULL,         "Enable user quotas")                           \
        x(grpquota,                     u8,                             \
-         OPT_FORMAT|OPT_MOUNT,                                         \
+         0,                                                            \
          OPT_BOOL(),                                                   \
-         BCH_SB_GRPQUOTA,              false,                          \
+         NO_SB_OPT,            false,                                  \
          NULL,         "Enable group quotas")                          \
        x(prjquota,                     u8,                             \
-         OPT_FORMAT|OPT_MOUNT,                                         \
+         0,                                                            \
          OPT_BOOL(),                                                   \
-         BCH_SB_PRJQUOTA,              false,                          \
+         NO_SB_OPT,            false,                                  \
          NULL,         "Enable project quotas")                        \
        x(degraded,                     u8,                             \
          OPT_MOUNT,                                                    \