1. mount the raid1 (2 disc with different size)
2. unplug the biggest drive (hotplug)
Btrfs won't know that you have plugged-out a disk. Though it experiences IO failures, it won't close the bdev.
3. try to copy something to the degraded raid1
This will work as long as you do _not_ run unmount/mount. However once you umount/mount you won't be able to mount even with -o degraded option. (there are some workaround patches in the ML)
4. plugin the device again (hotplug)
This is a bad test case. - Since btrfs didn't close the device, at #2 above, the block layer will create a new device instance and path when you plug-in the device. And when btrfs will promptly scan the device and update its records. But note that its still using the old bdev. And you will continue to see the IO errors. And no IO will go to the new device instance. There are patches in the ML under tests which will force close the device upon loosing access to the device. As a first step. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
