mirror of
https://github.com/kubernetes-csi/csi-driver-nvmf.git
synced 2025-09-13 13:34:30 +00:00
fix: make example available
1. fix path error in pkg/nvmf/fabrics.go 2. add nvmf kernel target setup guide 3. update example and deploy yaml Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
This commit is contained in:
@@ -110,6 +110,10 @@ func AttachDisk(req *csi.NodePublishVolumeRequest, nm nvmfDiskMounter) (string,
|
||||
klog.Errorf("AttachDisk: VolumeID %s failed to connect, Error: %v", req.VolumeId, err)
|
||||
return "", err
|
||||
}
|
||||
if devicePath == "" {
|
||||
klog.Errorf("AttachDisk: VolumeId %s return nil devicePath", req.VolumeId)
|
||||
return "", fmt.Errorf("VolumeId %s return nil devicePath", req.VolumeId)
|
||||
}
|
||||
klog.Infof("AttachDisk: Volume %s successful connected, Device:%s", req.VolumeId, devicePath)
|
||||
|
||||
mntPath := nm.targetPath
|
||||
|
Reference in New Issue
Block a user