On 18 Mar 2015 18:26, Karel Zak wrote: > Comments, objections? i was looking for exactly this sort of feature recently :) -- namely to unshare & mark everything private w/out having to write my own dummy wrapper. i just worry about the next request where people want to mark everything private except that one special mount ... > +static unsigned long parse_propagation(const char *str) > +{ > + size_t i; > + struct prop_opts { > + const char *name; > + unsigned long flag; > + } opts[] = { > + { "slave", MS_REC | MS_SLAVE }, > + { "private", MS_REC | MS_PRIVATE }, > + { "shared", MS_REC | MS_SHARED }, > + { "off", 0 } > + }; static/const ? -mike
Attachment:
signature.asc
Description: Digital signature