Skip to content

Commit

Permalink
Merge pull request #10315 from jfrazelle/overlay-zfs
Browse files Browse the repository at this point in the history
Blacklist zfs with overlay
  • Loading branch information
unclejack committed Jan 24, 2015
2 parents 30293e3 + ec953b0 commit 990a3e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daemon/graphdriver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const (
FsMagicReiserFs = FsMagic(0x52654973)
FsMagicSmbFs = FsMagic(0x0000517B)
FsMagicJffs2Fs = FsMagic(0x000072b6)
FsMagicZfs = FsMagic(0x2fc12fc1)
FsMagicUnsupported = FsMagic(0x00000000)
)

Expand Down Expand Up @@ -58,6 +59,7 @@ var (
FsMagicReiserFs: "reiserfs",
FsMagicSmbFs: "smb",
FsMagicJffs2Fs: "jffs2",
FsMagicZfs: "zfs",
FsMagicUnsupported: "unsupported",
}
)
Expand Down
3 changes: 3 additions & 0 deletions daemon/graphdriver/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 990a3e3

Please sign in to comment.