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
Doesn't work indeed unless the regular permissions allow you to.

I'll test it anyway and come up with rev 2.



> Op 8 aug. 2014 om 00:57 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
> hmm, yeah you're right. i assume the rmdir/rmsnap won't be allowed unless the unix permissions allow it? don't think i've ever tested that
> 
> —
> Reply to this email directly or view it on GitHub.