Skip to content
Commit 18e503d6 authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: fix raid code for removing missing drives



When btrfs is mounted in degraded mode, it has some internal structures
to track the missing devices.  This missing device is setup as readonly,
but the mapping code can get upset when we try to write to it.

This changes the mapping code to return -EIO instead of oops when we try
to write to the readonly device.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 19fe0a8b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment