Jonathan Hogg wrote:
> It would be great if there was some way to know if a snapshot contains  
> blocks for a particular file, i.e., that snapshot contains an earlier  
> version of the file than the next snapshot / now. If you could do that  
> and make ls support it with an additional flag/column, it'd be a real  
> time-saver.
> 
> The current mechanism is especially hard as the auto-mount dirs can  
> only be found at the top of the filesystem so you have to work with  
> long path names. An fs trick to make .snapshot dirs of symbolic links  
> appear automagically would rock, i.e.,
> 
> % cd /foo/bar/baz
> % ls -l .snapshot
> [...] nightly.0 -> /foo/.zfs/snapshot/nightly.0/bar/baz
> % diff {,.snapshot/nightly.0/}importantfile
> 
> Yes, I know this last command can just be written as:
> 
> % diff /foo/{,.zfs/snapshot/nightly.0}/bar/baz/importantfile
> 
> but this requires me to a) type more; and b) remember where the top of  
> the filesystem is in order to split the path. This is obviously more  
> of a pain if the path is 7 items deep, and the split means you can't  
> just use $PWD.

Chris Gerhard has a zfs_versions script that might help: 
http://blogs.sun.com/chrisg/entry/that_there_is

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

Reply via email to