From: Josef Bacik Date: Mon, 12 Aug 2013 19:36:44 +0000 (-0400) Subject: Btrfs: don't allow a subvol to be deleted if it is the default subovl X-Git-Tag: v3.12-rc1~40^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=175a2b871f46272a2aedce5fb3222a72568b84c3;p=pandora-kernel.git Btrfs: don't allow a subvol to be deleted if it is the default subovl Eric pointed out that btrfs will happily allow you to delete the default subvol. This is a problem obviously since the next time you go to mount the file system it will freak out because it can't find the root. Fix this by adding a check to see if our default subvol points to the subvol we are trying to delete, and if it does not allowing it to happen. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed