On Sun, Nov 30, 2014 at 09:03:14AM +0530, Shriramana Sharma wrote: > IIUC with BtrFS while it is possible to easily undelete a file or > ordinary directory if a snapshot of the containing subvol exists, it > seems that it's not elementary to undelete a subvol itself, because > all subvols are under the root-level subvol (id 0 or 5, see my other > q) but even snapshotting the root subvol will not snapshot any subvols > under it. > > So is there any way to undo a subvol delete?
If you didn't snapshot that volume before deleting it, you're SOL. If you snapshotted it, rename that snapshot to the other name, and you're done. Btrfs doesn't offer undelete, it only lets you keep multiple copies of your data at very little cost, so you can retrieve a snapshot copy if you deleted your current volume's data. Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ | PGP 1024R/763BE901 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html