On Apr 21, 2010, at 8:35 AM, Edward Ned Harvey wrote:

>> From: Richard Elling [mailto:richard.ell...@gmail.com]
>> 
>> On Apr 20, 2010, at 10:21 PM, Brandon High wrote:
>> 
>>> On Fri, Apr 16, 2010 at 10:54 AM, Edward Ned Harvey
>>> <solar...@nedharvey.com> wrote:
>>>> there's a file or something you want to rollback, it's presently
>> difficult
>>>> to know how far back up the tree you need to go, to find the correct
>> ".zfs"
>>>> subdirectory, and then you need to figure out the name of the
>> snapshots
>>> 
>>> There is one feature that OnTap has which I miss in zfs. Every
>>> directory has a hidden .snapshot directory, so you never need to look
>>> in the parents.
>> 
>> What happens when you remove the directory?
> 
> Same thing that happens when you remove the .zfs directory.  You can't.

Are you sure I cannot rmdir on a NetApp?  That seems like basic
functionality to me.  

Or are you thinking "rmdir dirname/.snapshot" when I'm thinking 
"rmdir dirname; mkdir dirname" which is a common operation
in a developer environment.  Or "mv dirname dirname-old; 
mv dirname-new dirname" which is common when managing 
software upgrades that are not clone-aware.

> Also, the .snapshot directory isn't visible via regular ls or whatever,
> unless you explicitly name it, just like .zfs directory.
> 
> Long story short, the .snapshot directory, and the .zfs directory are pretty
> much identical concepts, except that the .snapshot directory is accessible
> in every subdirectory, and it has a list of the snapshots inside it, already
> down at that directory level.  Whereas the .zfs directory you can only find
> if you go back up to the head of the filesystem, and then you have to select
> a snapshot and tunnel down again to the level you're at.
> 
> Make sense?  The .snapshot idea is better.  But presumably not allowable in
> ZFS for either technical or legal reasons.

This works only if you do not change the directory structure (DOS 1.0? :-)
 -- richard

ZFS storage and performance consulting at http://www.RichardElling.com
ZFS training on deduplication, NexentaStor, and NAS performance
Las Vegas, April 29-30, 2010 http://nexenta-vegas.eventbrite.com 





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

Reply via email to