Re: Snapshot in subdirectory lost when removing parent directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux