Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rbd-nbd: fix unused nbd device search bug in container
In some container scenarios, the host may choose to map a specific nbd device, for example, /dev/nbd6 into the container, in that case, the nbd device available in the container is not numbered from 0. The current unused nbd device search function will return no result. This patch fixes it. Fixes: http://tracker.ceph.com/issues/22012 Signed-off-by: Li Wang <[email protected]> Reviewed-by: Yunchuan Wen <[email protected]>
- Loading branch information