On Thu, 3 Jun 2010, Wido den Hollander wrote: > Hi, > > When creating a snapshot in a subdirectory, this gets lost when the > parent directory is removed, see the following command sequence: > http://www.pastebin.org/302447 > > Now, i had a snapshot of the directory "beta" holding my really > important file "randomfile.txt". > > Since creating a snapshot of the root directory is not possible i could > loose all my data when someone hacks a box and does a "rm -rf /". > > What would you advice in this scenario? > > 1. Create snapshots of the RADOS pools? > 2. Never mount the root directory, but a subdir (mount x.x.x.x:/subdir) > 3. Prevent your box from being hacked ;-) Hmm. What about returning ENOTEMPTY when you try to rmdir(2) a directory that contains snapshots? 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