From: Miao Xie Date: Mon, 22 Oct 2012 11:39:53 +0000 (+0000) Subject: Btrfs: do not delete a subvolume which is in a R/O subvolume X-Git-Tag: v3.8-rc5~1^2~10^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c39da5b6ca23e68e7acea7f4c01470383475214;p=pandora-kernel.git Btrfs: do not delete a subvolume which is in a R/O subvolume Step to reproduce: # mkfs.btrfs # mount # btrfs sub create /subv0 # btrfs sub snap /subv0/snap0 # change /subv0 from R/W to R/O # btrfs sub del /subv0/snap0 We deleted the snapshot successfully. I think we should not be able to delete the snapshot since the parent subvolume is R/O. Signed-off-by: Miao Xie --- Reading git-diff-tree failed