mds: Make min/max UID configurable for who is allowed to create a snapsh...

...ot

This way administrators can configure which UIDs are allowed to create
snapshots on CephFS.

In certain situations it might be desirable that regular users are not allowed
to create snapshots. For example on shared hosting environments.

Fixes: #9029
In rmsnap as well? Why? If a user created the snap before this setting was applied he can't remove it anymore.

Agree with the name though

> Op 8 aug. 2014 om 00:44 heeft "Sage Weil" <notifications@github.com> het volgende geschreven:
> 
> In src/common/config_opts.h:
> 
> > @@ -383,6 +383,8 @@ OPTION(mds_op_history_size, OPT_U32, 20)    // Max number of completed ops to tr
> >  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
> let's make this mksnap or (better?) add the same check to rmsnap too?
> 
> —
> Reply to this email directly or view it on GitHub.