mirror of https://github.com/docker/docs.git
Update devicemapper to pass mount flag
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
12934ef3a4
commit
ae00649305
|
@ -4,11 +4,12 @@ package devmapper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/dotcloud/docker/daemon/graphdriver"
|
|
||||||
"github.com/dotcloud/docker/utils"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
|
"github.com/dotcloud/docker/daemon/graphdriver"
|
||||||
|
"github.com/dotcloud/docker/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -98,7 +99,7 @@ func (d *Driver) Get(id, mountLabel string) (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mount the device
|
// Mount the device
|
||||||
if err := d.DeviceSet.MountDevice(id, mp, ""); err != nil {
|
if err := d.DeviceSet.MountDevice(id, mp, mountLabel); err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue