creation of ./.snap/test creates something in ./subdir/.snap/
hi
i was looking for a way to list all snapshots*.
then i discovered this:
mkdir ./.snap/test
then i found this:
./.snap/test
./subdir/.snap/_test_1099511630280
the subdir/.snap/_test_1099511630280 vanishes if i delete the ./.snap/ test.
kclient: ceph-client-standalone/unstable-backport
ceph: ceph/unstable
- Thomas
*
find ./ -type d -print0 | \
xargs -0 -I% -n1 find %/.snap -mindepth 1 -maxdepth 1
Quoted 9 lines · Thomas Mueller
hi
i was looking for a way to list all snapshots*.
then i discovered this:
mkdir ./.snap/test
Quoted 7 lines
then i found this:
./.snap/test
./subdir/.snap/_test_1099511630280the subdir/.snap/_test_1099511630280 vanishes if i delete the ./.snap/ test.
This is expected, because subdir's contents are contained by the 'test' snap, and we want the .snap/ dir to show you all snaps that contain copies of the current directory. The name is mangled (_$snap_$snap_root_ino) to avoid collisions with the current directory's snap namespace. Snaps beginning with _ are disallowed.
Quoted 2 lines
find ./ -type d -print0 | \
xargs -0 -I% -n1 find %/.snap -mindepth 1 -maxdepth 1
find ./ -type d -print0 | \
xargs -0 -I% -n1 find %/.snap -mindepth 1 -maxdepth 1 \
\( ! -name "_*" \)should do it, I think.
sage
Am Sat, 19 Jun 2010 08:40:48 -0700 schrieb Sage Weil:
Quoted 15 lines · Thomas Mueller
Quoted 14 lines
hi
i was looking for a way to list all snapshots*.
then i discovered this:
mkdir ./.snap/test
then i found this:
./.snap/test
./subdir/.snap/_test_1099511630280
Quoted 9 lines
Quoted 2 lines
the subdir/.snap/_test_1099511630280 vanishes if i delete the ./.snap/ test.
This is expected, because subdir's contents are contained by the 'test' snap, and we want the .snap/ dir to show you all snaps that contain copies of the current directory. The name is mangled (_$snap_$snap_root_ino) to avoid collisions with the current directory's snap namespace. Snaps beginning with _ are disallowed.
thanks for the explanation! i've created
http://ceph.newdream.net/wiki/Snapshots
for future reference.
- Thomas
Hi all,
It would be sweet to get shadow copy for Samba to work with Ceph snapshots. This blog entry (for ZFS) might be a good start if anyone is interested in experimenting and documenting (for Ceph)!
http://www.edplese.com/blog/2009/12/02/samba-shadow_copy2-enhancements/
One difference seem to be that Samba is expecting the snapshots to be per volume and not per directory, but I havn't had time to look into it further.
--jerker
Quoted 5 lines · Thomas Mueller
thanks for the explanation! i've created
http://ceph.newdream.net/wiki/Snapshots
for future reference.