670ce98c | // +build !exclude_graphdriver_aufs |
359b7df5 | package daemon |
670ce98c | import ( |
359b7df5 | "github.com/dotcloud/docker/daemon/graphdriver" "github.com/dotcloud/docker/daemon/graphdriver/aufs" |
670ce98c | "github.com/dotcloud/docker/graph" "github.com/dotcloud/docker/utils" ) // 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 { utils.Debugf("Migrating existing containers") if err := ad.Migrate(root, graph.SetupInitLayer); err != nil { return err } } return nil } |