On 2/21/10 11:08 PM -0800 Tau wrote:
I am having a bit of an issue I have an opensolaris box setup as a
fileserver.  Running through CIFS to provide shares to some windows
machines.

Now lets call my zpool /tank1,

Let's not because '/' is an illegal character in a zpool name.

   when i create a zfs filesystem called
/test it gets shared as /test and i can see it as "test" on my windows
machines...  Now when i create a child system inside the test system
(lets call this /tank1/test/child) the child system gets shared as well
on its own as test_child as seen on the windows system.

I want to be able to create  nested filesystems, and not have the nested
systems shared through cifs....  i want to access them through the root
system, and only have the root systems shared to the windows machines...

You're saying system as if it's a shorthand for filesystem.  It isn't.
And technically, for zfs you call them datasets but filesystem is ok.

Does simply setting sharesmb=none not work?  By default, descendant
filesystems inherit the properties of the parent, including share
properties.  So for each child filesystem you don't want to share,
you would have to override the default inherited sharesmb property.

What you should probably do is set an ACL to disallow access to the
child filesystems.  Because even if there is a sharesmb setting that
blocks sharing of a child, what happens then is that the client
accessing the parent can still write into the directory which holds
the mount point for the child, with the write going to the parent,
and on the fileserver you can't see data that the client has written
there because it is masked by the mounted child filesystem.  This
creates all sorts of problems.

-frank
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to