mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
devicemapper: Add fixme
This commit is contained in:
parent
4bd6021806
commit
d034aafac7
1 changed files with 1 additions and 0 deletions
1
image.go
1
image.go
|
@ -61,6 +61,7 @@ func LoadImage(root string) (*Image, error) {
|
|||
}
|
||||
|
||||
// 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 os.IsNotExist(err) {
|
||||
return nil, fmt.Errorf("Couldn't load image %s: no filesystem layer", img.ID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue