OOPS just spotted you said you don't want a FS for each sub-dir :-)

Trevor Pretty wrote:
Edward

If you look at the man page:-
snapshot

A read-only version of a file system or volume at a given point in time. It is specified as filesys...@name or vol...@name.

I think you've taken volume snapshots. I believe you need to make file system snapshots and each users/username a zfs file system.
Lets play......


r...@norton:~# zpool create -f storagepool c9t5d0
r...@norton:~# zfs create storagepool/users
r...@norton:~# zfs create storagepool/users/bob
r...@norton:~# zfs create storagepool/users/dick

r...@norton:# cd /storagepool/users/bob
r...@norton:# touch foo
r...@norton:# zfs snapshot storagepool/users/b...@now
r...@norton# ls -alR /storagepool/users/bob/.zfs
/storagepool/users/bob/.zfs:
total 3
dr-xr-xr-x 4 root root 4 2009-10-05 12:09 .
drwxr-xr-x 2 root root 3 2009-10-05 12:14 ..
dr-xr-xr-x 2 root root 2 2009-10-05 12:09 shares
dr-xr-xr-x 2 root root 2 2009-10-05 12:09 snapshot
/storagepool/users/bob/.zfs/shares:
total 2
dr-xr-xr-x 2 root root 2 2009-10-05 12:09 .
dr-xr-xr-x 4 root root 4 2009-10-05 12:09 ..
/storagepool/users/bob/.zfs/snapshot:
total 2
dr-xr-xr-x 2 root root 2 2009-10-05 12:09 .
dr-xr-xr-x 4 root root 4 2009-10-05 12:09 ..
drwxr-xr-x 2 root root 3 2009-10-05 12:14 now
/storagepool/users/bob/.zfs/snapshot/now:
total 2
drwxr-xr-x 2 root root 3 2009-10-05 12:14 .
dr-xr-xr-x 3 root root 3 2009-10-05 12:09 ..
-rw-r--r-- 1 root root 0 2009-10-05 12:14 foo

If you want a .zfs in /storagepool/users/eharvey/some/foo/dir it needs to be a separate file system.



Edward Ned Harvey wrote:

Suppose I have a storagepool:   /storagepool

And I have snapshots on it.  Then I can access the snaps under /storagepool/.zfs/snapshots

 

But is there any way to enable this within all the subdirs?  For example,

                cd /storagepool/users/eharvey/some/foo/dir

                cd .zfs

 

I don’t want to create a new filesystem for every subdir.  I just want to automatically have the “.zfs” hidden directory available within all the existing subdirs, if that’s possible.

 

Thanks….

 

 





www.eagle.co.nz 

This email is confidential and may be legally privileged. If received in error please destroy and immediately notify us.


--

Trevor Pretty | Technical Account Manager | +64 9 639 0652 | +64 21 666 161
Eagle Technology Group Ltd.
Gate D, Alexandra Park, Greenlane West, Epsom
Private Bag 93211, Parnell,
Auckland




www.eagle.co.nz 

This email is confidential and may be legally privileged. If received in error please destroy and immediately notify us.

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

Reply via email to