summaryrefslogtreecommitdiff
path: root/src/shared/machine-image.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-10-04 17:36:58 +0200
committerLennart Poettering <lennart@poettering.net>2017-10-26 17:54:56 +0200
commiteb38edce88ac2f511ed9593a1c25c58a77158219 (patch)
tree4a26210a98743e913e1ffacdec4f9c279a86554f /src/shared/machine-image.h
parent8c4a8ea2ac2569eb9f376ad17f8baea3e836b8ba (diff)
downloadsystemd-eb38edce88ac2f511ed9593a1c25c58a77158219.tar.gz
systemd-eb38edce88ac2f511ed9593a1c25c58a77158219.tar.bz2
systemd-eb38edce88ac2f511ed9593a1c25c58a77158219.zip
machine-image: add partial discovery of block devices as images
This adds some basic discovery of block device images for nspawn and friends. Note that this doesn't add searching for block devices using udev, but instead expects users to symlink relevant block devices into /var/lib/machines. Discovery is hence done exactly like for dir/subvol/raw file images, except that what is found may be a (symlink to) a block device. For now, we do not support cloning these images, but removal, renaming and read-only flags are supported to the point where that makes sense. Fixe: #6990
Diffstat (limited to 'src/shared/machine-image.h')
-rw-r--r--src/shared/machine-image.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/machine-image.h b/src/shared/machine-image.h
index 7410168c4f..50d89e4392 100644
--- a/src/shared/machine-image.h
+++ b/src/shared/machine-image.h
@@ -33,6 +33,7 @@ typedef enum ImageType {
IMAGE_DIRECTORY,
IMAGE_SUBVOLUME,
IMAGE_RAW,
+ IMAGE_BLOCK,
_IMAGE_TYPE_MAX,
_IMAGE_TYPE_INVALID = -1
} ImageType;