aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-11-17 21:14:24 -0500
committerChris Mason <chris.mason@oracle.com>2008-11-17 21:14:24 -0500
commitea9e8b11bd1252dcbc23afefcf1a52ec6aa3c113 (patch)
tree3573c8d79e1936e8c921a3be77abda35124e0d78 /fs/btrfs/ctree.c
parent0660b5af3f7ac0fac69de975914e1f4a3a586fb3 (diff)
downloadkernel_samsung_smdk4412-ea9e8b11bd1252dcbc23afefcf1a52ec6aa3c113.zip
kernel_samsung_smdk4412-ea9e8b11bd1252dcbc23afefcf1a52ec6aa3c113.tar.gz
kernel_samsung_smdk4412-ea9e8b11bd1252dcbc23afefcf1a52ec6aa3c113.tar.bz2
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 <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
0 files changed, 0 insertions, 0 deletions