]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
btrfs: get the device in write mode when deleting it
authorLukas Czerner <lczerner@redhat.com>
Fri, 7 Dec 2012 10:09:19 +0000 (10:09 +0000)
committerJosef Bacik <josef@toxicpanda.com>
Mon, 14 Jan 2013 18:52:31 +0000 (13:52 -0500)
commitcc975eb4605c5765a5d5e7a51d24ba5a1cda269e
tree0f7b9817ec349f6db0333dc8182b8f43df302fe6
parentcfa7a9ccda711ac6ab8f0d17c3a9b540092d305a
btrfs: get the device in write mode when deleting it

When we're deleting the device we should get it in write mode since
we're going to re-write the super block magic on that device. And it
should fail if the device is read-only.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
fs/btrfs/volumes.c