devicemapper: Add fixme

This commit is contained in:
Solomon Hykes 2013-10-18 00:58:20 +00:00
parent 4bd6021806
commit d034aafac7
1 changed files with 1 additions and 0 deletions

View File

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