Bläddra i källkod

aufs,overlay: disable on eCryptfs

Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
unclejack 9 år sedan
förälder
incheckning
5e85ec82af

+ 1 - 1
daemon/graphdriver/aufs/aufs.go

@@ -93,7 +93,7 @@ func Init(root string, options []string, uidMaps, gidMaps []idtools.IDMap) (grap
 	}
 	}
 
 
 	switch fsMagic {
 	switch fsMagic {
-	case graphdriver.FsMagicAufs, graphdriver.FsMagicBtrfs:
+	case graphdriver.FsMagicAufs, graphdriver.FsMagicBtrfs, graphdriver.FsMagicEcryptfs:
 		logrus.Errorf("AUFS is not supported over %s", backingFs)
 		logrus.Errorf("AUFS is not supported over %s", backingFs)
 		return nil, graphdriver.ErrIncompatibleFS
 		return nil, graphdriver.ErrIncompatibleFS
 	}
 	}

+ 2 - 0
daemon/graphdriver/driver_linux.go

@@ -16,6 +16,8 @@ const (
 	FsMagicBtrfs = FsMagic(0x9123683E)
 	FsMagicBtrfs = FsMagic(0x9123683E)
 	// FsMagicCramfs filesystem id for Cramfs
 	// FsMagicCramfs filesystem id for Cramfs
 	FsMagicCramfs = FsMagic(0x28cd3d45)
 	FsMagicCramfs = FsMagic(0x28cd3d45)
+	// FsMagicEcryptfs filesystem id for eCryptfs
+	FsMagicEcryptfs = FsMagic(0xf15f)
 	// FsMagicExtfs filesystem id for Extfs
 	// FsMagicExtfs filesystem id for Extfs
 	FsMagicExtfs = FsMagic(0x0000EF53)
 	FsMagicExtfs = FsMagic(0x0000EF53)
 	// FsMagicF2fs filesystem id for F2fs
 	// FsMagicF2fs filesystem id for F2fs

+ 1 - 1
daemon/graphdriver/overlay/overlay.go

@@ -119,7 +119,7 @@ func Init(home string, options []string, uidMaps, gidMaps []idtools.IDMap) (grap
 	}
 	}
 
 
 	switch fsMagic {
 	switch fsMagic {
-	case graphdriver.FsMagicAufs, graphdriver.FsMagicBtrfs, graphdriver.FsMagicOverlay, graphdriver.FsMagicZfs:
+	case graphdriver.FsMagicAufs, graphdriver.FsMagicBtrfs, graphdriver.FsMagicOverlay, graphdriver.FsMagicZfs, graphdriver.FsMagicEcryptfs:
 		logrus.Errorf("'overlay' is not supported over %s", backingFs)
 		logrus.Errorf("'overlay' is not supported over %s", backingFs)
 		return nil, graphdriver.ErrIncompatibleFS
 		return nil, graphdriver.ErrIncompatibleFS
 	}
 	}

+ 8 - 8
docs/userguide/storagedriver/selectadriver.md

@@ -71,14 +71,14 @@ For example, the `btrfs` storage driver on a Btrfs backing filesystem. The
 following table lists each storage driver and whether it must match the host's
 following table lists each storage driver and whether it must match the host's
 backing file system:
 backing file system:
 
 
-|Storage driver |Commonly used on |Disabled on                   |
-|---------------|-----------------|------------------------------|
-|`overlay`      |`ext4` `xfs`     |`btrfs` `aufs` `overlay` `zfs`|
-|`aufs`         |`ext4` `xfs`     |`btrfs` `aufs`                |
-|`btrfs`        |`btrfs` _only_   |   N/A                        |
-|`devicemapper` |`direct-lvm`     |   N/A                        |
-|`vfs`          |debugging only   |   N/A                        |
-|`zfs`          |`zfs` _only_     |   N/A                        |
+|Storage driver |Commonly used on |Disabled on                              |
+|---------------|-----------------|-----------------------------------------|
+|`overlay`      |`ext4` `xfs`     |`btrfs` `aufs` `overlay` `zfs` `eCryptfs`|
+|`aufs`         |`ext4` `xfs`     |`btrfs` `aufs` `eCryptfs`                |
+|`btrfs`        |`btrfs` _only_   |   N/A                                   |
+|`devicemapper` |`direct-lvm`     |   N/A                                   |
+|`vfs`          |debugging only   |   N/A                                   |
+|`zfs`          |`zfs` _only_     |   N/A                                   |
 
 
 
 
 > **Note**
 > **Note**