daemon/daemon_aufs.go
9a9dc5ba
 // +build !exclude_graphdriver_aufs,linux
670ce98c
 
359b7df5
 package daemon
670ce98c
 
 import (
6f4d8470
 	"github.com/Sirupsen/logrus"
b3ee9ac7
 	"github.com/docker/docker/daemon/graphdriver"
 	"github.com/docker/docker/daemon/graphdriver/aufs"
670ce98c
 )
 
 // Given the graphdriver ad, if it is aufs, then migrate it.
 // If aufs driver is not built, this func is a noop.
 func migrateIfAufs(driver graphdriver.Driver, root string) error {
 	if ad, ok := driver.(*aufs.Driver); ok {
6f4d8470
 		logrus.Debugf("Migrating existing containers")
b7f887a9
 		if err := ad.Migrate(root, setupInitLayer); err != nil {
670ce98c
 			return err
 		}
 	}
 	return nil
 }