]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix raid code for removing missing drives
authorChris Mason <chris.mason@oracle.com>
Thu, 28 Oct 2010 19:30:42 +0000 (15:30 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 29 Oct 2010 15:25:46 +0000 (11:25 -0400)
commit841bef3d9d5b7e557bd8c012176e339775c45aca
treec17c34762dcf9988e9739ae0cdf5628885bf8828
parent637b8642fb50c84c21ec8926efb5591cd69be10b
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>
fs/btrfs/volumes.c