Btrfs: disallow some operations on the device replace target device
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 5 Nov 2012 17:29:28 +0000 (18:29 +0100)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:39 +0000 (17:15 -0500)
commit63a212abc2315972b245f93cb11ae3acf3c0b513
tree65d9f4020795b6a3521bf0a94922a082ae4ede6f
parent5ac00addc7ac09110995fe967071d191b5981cc1
Btrfs: disallow some operations on the device replace target device

This patch adds some code to disallow operations on the device that
is used as the target for the device replace operation.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/ioctl.c
fs/btrfs/scrub.c
fs/btrfs/super.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h