Use NBD_SET_SOCK to check whether the nbd device is setup by other process or whether nbd kernel module is ready before other nbd ioctl operations. This can avoid bad influence to the nbd device setup by other process. Change-Id: Ic12acbfddb8c4388e25731c39159b1ce559b8f23 Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/444805 (master) Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447597 Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
nbd_internal.h | ||
nbd_rpc.c | ||
nbd.c |