On Thu, Sep 28, 2006 at 12:40:17PM -0500, Ed Plese wrote:
> This can be elaborated on to do neat things like create a ZFS clone when
> a client connects and then destroy the clone when the client
> disconnects (via "root postexec").  This could possibly be useful for
> the shared build system that was mentioned by an earlier post.

To follow up on this, here's an example share from smb.conf that
accomplishes this:

[build]
   comment = Build Share
   writable = yes
   path = /tank/clones/%d
   root preexec = zfs clone tank/clones/[EMAIL PROTECTED] tank/clones/%d
   root postexec = zfs destroy tank/clones/%d

This gives you a fresh clone every time you connect to the share.


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

Reply via email to