diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-11-18 18:38:06 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-11-22 13:35:09 +0100 |
commit | 0f3be6ca4dbbac8350cd8f10a8968d31f7bc13b6 (patch) | |
tree | 0d261da3442bf68af3818ad31dc0e57d86482fc4 /src/basic/missing.h | |
parent | 1a1b13c9573b8cd30a4ab8dca2ec7961e460f083 (diff) |
nspawn: support ephemeral boots from images
Previously --ephemeral was only supported with container trees in btrfs
subvolumes (i.e. in combination with --directory=). This adds support for
--ephemeral in conjunction with disk images (i.e. --image=) too.
As side effect this fixes that --ephemeral was accepted but ignored when using
-M on a container that turned out to be an image.
Fixes: #4664
Diffstat (limited to 'src/basic/missing.h')
-rw-r--r-- | src/basic/missing.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/missing.h b/src/basic/missing.h index a5ae5d9e79..8833617dc6 100644 --- a/src/basic/missing.h +++ b/src/basic/missing.h @@ -143,6 +143,10 @@ #define GRND_RANDOM 0x0002 #endif +#ifndef FS_NOCOW_FL +#define FS_NOCOW_FL 0x00800000 +#endif + #ifndef BTRFS_IOCTL_MAGIC #define BTRFS_IOCTL_MAGIC 0x94 #endif |