diff options
author | Josef Bacik <josef@redhat.com> | 2010-01-27 03:07:59 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-01-28 22:20:39 +0100 |
commit | f48b90756bd834dda852ff514f2690d3175b1f44 (patch) | |
tree | 071f502edbe6668f9451d676ae3a0f751da5e105 /fs/compat.c | |
parent | Btrfs: run orphan cleanup on default fs root (diff) | |
download | linux-f48b90756bd834dda852ff514f2690d3175b1f44.tar.xz linux-f48b90756bd834dda852ff514f2690d3175b1f44.zip |
Btrfs: do not mark the chunk as readonly if in degraded mode
If a RAID setup has chunks that span multiple disks, and one of those
disks has failed, btrfs_chunk_readonly will return 1 since one of the
disks in that chunk's stripes is dead and therefore not writeable. So
instead if we are in degraded mode, return 0 so we can go ahead and
allocate stuff. Without this patch all of the block groups in a RAID1
setup will end up read-only, which will mean we can't add new disks to
the array since we won't be able to make allocations.
Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/compat.c')
0 files changed, 0 insertions, 0 deletions