1
0
Fork 0
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:
Solomon Hykes 2013-10-18 00:58:20 +00:00
parent 4bd6021806
commit d034aafac7

View file

@ -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)