summaryrefslogtreecommitdiff
path: root/src/import/import-raw.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-01-22 17:40:51 +0100
committerLennart Poettering <lennart@poettering.net>2021-08-17 10:08:58 +0200
commitd32a5841fb1aabc0e2fd138d78b5f66d31b3ba77 (patch)
tree43da4bbf04be82965f3a4f4657e8fd03ecd96ca1 /src/import/import-raw.h
parent235be6bcea86304e7538d1ff720b14beca2914e8 (diff)
downloadsystemd-d32a5841fb1aabc0e2fd138d78b5f66d31b3ba77.tar.gz
import: add new "--direct" mode + add controls for turning certain features on/off
This reworks/modernizes the tar/raw import logic and adds the following new features: - Adds the ability to control btrfs subvol and quota behaviour which was previously always on via an env var and cmdline arg - Adds control whether to sync() stuff after writing it, similar via env var + cmdline arg - Similar, the QCOW2 unpacking logic that was previously the implied default may now be controlled via env var + cmdline arg. - adds a "direct" mode. In this mode, the systemd-import tool can be used as a simple tool for decompressing/unpacking/installing arbitrary files, without all the additional meta data and auxiliary resources, i.e. outside of the immediate disk image context. Via the new --offset= and --size-max= switches the downloaded data can be written to specific locations of a file (which is particularly useful to use the tool to download fs images and write them to a partition location before actually creating the partition). We'll later use the latter feature for "sysupdate" concept, where images can be directly be written to partitions. That way the systemd-import binary will be used as backend for both "systemd-importd" and "systemd-sysupdate" and share most of the same code.
Diffstat (limited to 'src/import/import-raw.h')
-rw-r--r--src/import/import-raw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/import-raw.h b/src/import/import-raw.h
index e99703c155..63384eb171 100644
--- a/src/import/import-raw.h
+++ b/src/import/import-raw.h
@@ -16,4 +16,4 @@ RawImport* raw_import_unref(RawImport *import);
DEFINE_TRIVIAL_CLEANUP_FUNC(RawImport*, raw_import_unref);
-int raw_import_start(RawImport *i, int fd, const char *local, ImportFlags flags);
+int raw_import_start(RawImport *i, int fd, const char *local, uint64_t offset, uint64_t size_max, ImportFlags flags);