Blacklist zfs with overlay

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
Jessica Frazelle 2015-01-23 14:00:15 -08:00
parent 99bffdf10e
commit ec953b0e7b
2 changed files with 5 additions and 0 deletions

View file

@ -25,6 +25,7 @@ const (
FsMagicReiserFs = FsMagic(0x52654973)
FsMagicSmbFs = FsMagic(0x0000517B)
FsMagicJffs2Fs = FsMagic(0x000072b6)
FsMagicZfs = FsMagic(0x2fc12fc1)
FsMagicUnsupported = FsMagic(0x00000000)
)
@ -58,6 +59,7 @@ var (
FsMagicReiserFs: "reiserfs",
FsMagicSmbFs: "smb",
FsMagicJffs2Fs: "jffs2",
FsMagicZfs: "zfs",
FsMagicUnsupported: "unsupported",
}
)

View file

@ -118,6 +118,9 @@ func Init(home string, options []string) (graphdriver.Driver, error) {
case graphdriver.FsMagicAufs:
log.Error("'overlay' is not supported over aufs.")
return nil, graphdriver.ErrIncompatibleFS
case graphdriver.FsMagicZfs:
log.Error("'overlay' is not supported over zfs.")
return nil, graphdriver.ErrIncompatibleFS
}
// Create the driver home dir