@@ -295,15 +295,15 @@ func (d *nodeService) nodeUnstageVolume(req *csi.NodeUnstageVolumeRequest) error
295
295
klog .V (5 ).Infof ("found staged device: %s" , deviceName )
296
296
297
297
// If mounted, then unmount the filesystem
298
- klog .V (5 ).Infof ("starting unmounting %s" , stagingTarget , " volumeID" , volumeID )
298
+ klog .V (5 ).Infof ("starting unmounting %s for volumeID %s" , stagingTarget , volumeID )
299
299
err = d .mounter .Unmount (stagingTarget )
300
300
if err != nil {
301
301
return status .Errorf (codes .Internal , "failed to unmount for vol %s target %q: %v" , volumeID , stagingTarget , err )
302
302
}
303
- klog .V (5 ).Infof ("completed unmounting %s" , stagingTarget , " volumeID" , volumeID )
303
+ klog .V (5 ).Infof ("completed unmounting %s for volumeID %s" , stagingTarget , volumeID )
304
304
305
305
// Delete device
306
- klog .V (5 ).Infof ("deleting device %s" , deviceName , " volumeID" , volumeID )
306
+ klog .V (5 ).Infof ("deleting device %s for volumeID %s" , deviceName , volumeID )
307
307
//check if device is mounted or has holders
308
308
isDirMounted , err := d .mounter .IsMountPoint (stagingTarget )
309
309
if err != nil {
@@ -391,7 +391,7 @@ func (d *nodeService) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandV
391
391
return nil , status .Errorf (codes .Internal , "volume path %s volumeID %s is not mounted" , volumePath , volumeID )
392
392
}
393
393
394
- devicePath , _ , err := mount . GetDeviceNameFromMount ( d .mounter , volumePath )
394
+ devicePath , _ , err := d .mounter . GetDeviceName ( volumePath )
395
395
if err != nil {
396
396
return nil , status .Errorf (codes .Internal , "failed to get device from volume path %s volumeID %s: %v" , volumePath , volumeID , err )
397
397
}
0 commit comments