Btrfs: add snapshot/subvolume destroy ioctl
authorYan, Zheng <zheng.yan@oracle.com>
Mon, 21 Sep 2009 20:00:26 +0000 (16:00 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 21 Sep 2009 20:00:26 +0000 (16:00 -0400)
commit76dda93c6ae2c1dc3e6cde34569d6aca26b0c918
treef5ca46ec89d4ae2c762952d5f35e2c6f95ac046a
parent4df27c4d5cc1dda54ed7d0a8389347f2df359cf9
Btrfs: add snapshot/subvolume destroy ioctl

This patch adds snapshot/subvolume destroy ioctl.  A subvolume that isn't being
used and doesn't contains links to other subvolumes can be destroyed.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
12 files changed:
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/export.c
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/ioctl.h
fs/btrfs/relocation.c
fs/btrfs/root-tree.c
fs/btrfs/super.c
fs/btrfs/transaction.c
fs/btrfs/tree-log.c