From: Chris Mason Date: Tue, 18 Nov 2008 02:14:24 +0000 (-0500) Subject: Btrfs: prevent loops in the directory tree when creating snapshots X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea9e8b11bd1252dcbc23afefcf1a52ec6aa3c113;p=pandora-kernel.git Btrfs: prevent loops in the directory tree when creating snapshots For a directory tree: /mnt/subvolA/subvolB btrfsctl -s /mnt/subvolA/subvolB /mnt Will create a directory loop with subvolA under subvolB. This commit uses the forward refs for each subvol and snapshot to error out before creating the loop. Signed-off-by: Chris Mason --- Reading git-diff-tree failed