On Sat, 19 Jun 2010, Thomas Mueller wrote: > 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. 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. > 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 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html