mirror of https://github.com/docker/docs.git
devicemapper: Add fixme
This commit is contained in:
parent
4bd6021806
commit
d034aafac7
1
image.go
1
image.go
|
@ -61,6 +61,7 @@ func LoadImage(root string) (*Image, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check that the filesystem layer exists
|
// Check that the filesystem layer exists
|
||||||
|
// FIXME: once an image is added into device mapper, the layer is no longer needed
|
||||||
if stat, err := os.Stat(layerPath(root)); err != nil {
|
if stat, err := os.Stat(layerPath(root)); err != nil {
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
return nil, fmt.Errorf("Couldn't load image %s: no filesystem layer", img.ID)
|
return nil, fmt.Errorf("Couldn't load image %s: no filesystem layer", img.ID)
|
||||||
|
|
Loading…
Reference in New Issue