]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: Set mds_snap_max_uid to 4294967294 11016/head
authorWido den Hollander <wido@42on.com>
Thu, 8 Sep 2016 12:44:57 +0000 (14:44 +0200)
committerWido den Hollander <wido@42on.com>
Thu, 8 Sep 2016 12:49:25 +0000 (14:49 +0200)
Since kernel version 2.6 the Linux kernel supports 32-bit integers
and thus the limit is no longer 65536.

By setting this to a higher default value we make sure that all users
will be allowed to create snapshots in the future by default.

Signed-off-by: Wido den Hollander <wido@42on.com>
src/common/config_opts.h

index 7a6d35e420181ad6754617d694a62ce59f503d79..860ac738e9faa9464c3e8b7c7907bac87f75d036 100644 (file)
@@ -541,7 +541,7 @@ OPTION(mds_op_history_duration, OPT_U32, 600) // Oldest completed op to track
 OPTION(mds_op_complaint_time, OPT_FLOAT, 30) // how many seconds old makes an op complaint-worthy
 OPTION(mds_op_log_threshold, OPT_INT, 5) // how many op log messages to show in one go
 OPTION(mds_snap_min_uid, OPT_U32, 0) // The minimum UID required to create a snapshot
-OPTION(mds_snap_max_uid, OPT_U32, 65536) // The maximum UID allowed to create a snapshot
+OPTION(mds_snap_max_uid, OPT_U32, 4294967294) // The maximum UID allowed to create a snapshot
 OPTION(mds_snap_rstat, OPT_BOOL, false) // enable/disbale nested stat for snapshot
 OPTION(mds_verify_backtrace, OPT_U32, 1)
 // detect clients which aren't trimming completed requests