commit | 18e503d695ff8ff9a43768555aa74575bf6b77f3 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Thu Oct 28 15:30:42 2010 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Fri Oct 29 11:25:46 2010 -0400 |
tree | c17c34762dcf9988e9739ae0cdf5628885bf8828 | |
parent | 19fe0a8b787d7c7f9318975b5a8c6e7e5e54e925 [diff] |
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: Chris Mason <chris.mason@oracle.com>