Modify Attach method to return device path

This commit is contained in:
saadali
2016-06-16 20:11:09 -07:00
parent 926bb4cca0
commit d72f88bf3a
7 changed files with 61 additions and 48 deletions

View File

@@ -134,8 +134,10 @@ type Deleter interface {
// Attacher can attach a volume to a node.
type Attacher interface {
// Attach the volume specified by the given spec to the given host
Attach(spec *Spec, hostName string) error
// Attaches the volume specified by the given spec to the given host.
// On success, returns the device path where the device was attache don the
// node.
Attach(spec *Spec, hostName string) (string, error)
// WaitForAttach blocks until the device is attached to this
// node. If it successfully attaches, the path to the device