Skip to content

Commit

Permalink
mds: Set mds_snap_max_uid to 4294967294
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
wido committed Sep 8, 2016
1 parent 537cbb3 commit 757e242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/config_opts.h
Expand Up @@ -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
Expand Down

0 comments on commit 757e242

Please sign in to comment.