Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
detached disks used in mount command #1422
Thanks to @g6094199 in the forum for reporting this. It may be that we should simply skip all attempts to mount a 'detached' device by simply parsing it's name first and using the existing fail over mechanism of trying each of the other devices in a pool in turn. In the reporters circumstance this occurred after a 'btrfs device delete' command and the resulting pool was reported healthy. An NFS share creation via Web-UI was then attempted.
Please update the following forum thread with significant development on this issue:
An additional note here is that we already avoid mounting a pool by a detached device by first checking if the resulting dev path exists:
It is proposed that we similarly filter out the detached devices when mounting a sub volume. This should also allow for sub volume mounts on degraded pools.