dick hoogendijk wrote:> glidic anthony wrote:
>
>
>> I have a solution with use zfs set sharenfs=rw,nosuid zpool but i
prefer
>> use the sharemgr command.
>>
>
> Then you prefere wrong.
To each their own.> ZFS filesystems are not shared this way.
>
They can be. I do it all the time. There''s nothing technical that
dictates that sharemgr can''t be used on ZFS filesystems.
Just because ZFS provides an alternate way, that doesn''t make it the
only way, or even the ''one true way.''
About the only advantage I can see of using zfs share, is inheritance.
If you don''t need that, then sharemgr is just as good, and there are
cases where it may be simpler - For instance, I loopback mount many many
ISO''s, and need to use sharemgr to share those anyway, I find it much
more convienent to manage all my shares in one place with one tool.
If sharemgr could (optionally) manage inherited sharing on ZFS
filesystems, then I think it''d be cleaner to suggest to users to use
the
one system-wide sharing tool, rather that one that only works for one
filesystem. I can''t remember them right now, but I think there are
other
commands where ZFS seems to have done the same thing and I can''t figure
out why that''s the trend? As great as ZFS is, it won''t ever be
the only
filesystem around, ISOs (at least) will be around for a long time
still. Why start forcing users to learn new tools for each filesystem
type?> Read up on ZFS and NFS.
>
>
What make you think he didn''t?
While the docs do describe how you can optionally use zfs share (which
he clearly read about since he mentioned it) they don''t prohibit using
sharemgr. I read his question as "How can I get sharemgr to setup
sharing so that it get inherited on child filesystems?"
Apparently the answer to that question is "You can''t". If you
want to
set it up only once you need zfs share, and if you really want to use
sharemgr you need to share each filesystem separately. Maybe someday
that will change.
-Kyle