1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #36738 from Microsoft/jjh/getlayerpath

Windows: Add GetLayerPath implementation in graphdriver
This commit is contained in:
Yong Tang 2018-04-14 09:59:38 -07:00 committed by GitHub
commit 5c2e6064a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -340,6 +340,11 @@ func (d *Driver) Remove(id string) error {
return nil return nil
} }
// GetLayerPath gets the layer path on host
func (d *Driver) GetLayerPath(id string) (string, error) {
return d.dir(id), nil
}
// Get returns the rootfs path for the id. This will mount the dir at its given path. // Get returns the rootfs path for the id. This will mount the dir at its given path.
func (d *Driver) Get(id, mountLabel string) (containerfs.ContainerFS, error) { func (d *Driver) Get(id, mountLabel string) (containerfs.ContainerFS, error) {
logrus.Debugf("WindowsGraphDriver Get() id %s mountLabel %s", id, mountLabel) logrus.Debugf("WindowsGraphDriver Get() id %s mountLabel %s", id, mountLabel)