[illumos-Developer] [REVIEW] 1012 cifs-shares are also exported via nfs without being configured therefor

Garrett D'Amore garrett at damore.org
Thu May 12 10:01:35 PDT 2011


Looks reasonable, but I've not walked the full code to see if this is sufficient.  I expect Gordon has.

Richard Lowe <richlowe at richlowe.net> wrote:

>Please review:
>  1012 cifs-shares are also exported via nfs without being configured therefor
>
>webrev:
>   http://richlowe.net/webrevs/il_1012
>
>This boils down to sharemgr not actually caring about the protocol
>when enabling shares, such that if you do 'enable -a' or 'start -a'
>you're fine, because the protocol is left as NULL and determined
>automatically, but if you specify the protocol (sharemgr start -P nfs
>-a, as nfs/server does in its start method), all shares are shared
>with that protocol, regardless of the actual configuration.
>To add to the fun, the disable path does actually check the protocol
>on each group, so once sharemgr has created these bogus shares, you
>can't use it to remove them (unshare(1M) works).
>
>I've tested this both by hand and using the STC fs/share suite (which
>had a handful of failures due to other bugs).
>
>I've also asked Gordon to look, as he's got some prior knowledge of
>sharemgr and he seemed happy.
>
>-- Rich
>
>_______________________________________________
>Developer mailing list
>Developer at lists.illumos.org
>http://lists.illumos.org/m/listinfo/developer


More information about the Developer mailing list