Frank Batschulat wrote:
it seems taking a clone always requires taking a snapshot first and provide 
this as a parameter
to the zfs clone command.

now wouldnt it be more natural way of usage when I intend to create a clone, 
that by default
the zfs clone command will create the needed snapshot from the current image 
internally as part
of taking the clone unless I explicitely specify that I do want to take a clone 
of a specific snapshot ?

along the lines of "I do want to take a clone yet - I dont care about 
snapshots".

While that might be convenient, hiding what's really going on can result in confusion. For example, if you were to do:

# zfs clone pool/fs pool/clone
# rm -rf /pool/clone/*
# rm -rf /pool/fs/*

You would be surprised to find that the space is not actually freed up, despite the fact that your files are not accessible (to any means know to you).

So really, administrators need to be aware of the underlying snapshot. Therefore, providing a "clone a fs by taking a snapshot under the covers" feature would serve only as syntactic sugar. I believe that the potential for confusion outweighs this benefit.

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

Reply via email to