Rename Detach() parameter.

Detach() does not get device name, it gets volume name.
This commit is contained in:
Jan Safranek
2017-10-31 10:55:19 +01:00
parent eb658d699a
commit 6f160c3570
13 changed files with 24 additions and 22 deletions

View File

@@ -195,8 +195,10 @@ type BulkVolumeVerifier interface {
// Detacher can detach a volume from a node.
type Detacher interface {
// Detach the given device from the node with the given Name.
Detach(deviceName string, nodeName types.NodeName) error
// Detach the given volume from the node with the given Name.
// volumeName is name of the volume as returned from plugin's
// GetVolumeName().
Detach(volumeName string, nodeName types.NodeName) error
// UnmountDevice unmounts the global mount of the disk. This
// should only be called once all bind mounts have been