diff options
Diffstat (limited to 'src/import')
-rw-r--r-- | src/import/aufs-util.c | 3 | ||||
-rw-r--r-- | src/import/curl-util.c | 1 | ||||
-rw-r--r-- | src/import/curl-util.h | 3 | ||||
-rw-r--r-- | src/import/export-raw.c | 8 | ||||
-rw-r--r-- | src/import/export-tar.c | 10 | ||||
-rw-r--r-- | src/import/export.c | 1 | ||||
-rw-r--r-- | src/import/import-raw.c | 18 | ||||
-rw-r--r-- | src/import/import-tar.c | 20 | ||||
-rw-r--r-- | src/import/import.c | 1 | ||||
-rw-r--r-- | src/import/pull-common.c | 1 | ||||
-rw-r--r-- | src/import/pull-dkr.c | 24 | ||||
-rw-r--r-- | src/import/pull-job.c | 3 | ||||
-rw-r--r-- | src/import/pull-raw.c | 28 | ||||
-rw-r--r-- | src/import/pull-tar.c | 22 | ||||
-rw-r--r-- | src/import/pull.c | 1 |
15 files changed, 82 insertions, 62 deletions
diff --git a/src/import/aufs-util.c b/src/import/aufs-util.c index 18c42b8b6d..7b1ac134a0 100644 --- a/src/import/aufs-util.c +++ b/src/import/aufs-util.c @@ -21,8 +21,9 @@ #include <ftw.h> -#include "util.h" #include "rm-rf.h" +#include "string-util.h" +#include "util.h" #include "aufs-util.h" static int nftw_cb( diff --git a/src/import/curl-util.c b/src/import/curl-util.c index d390cfb1f3..422d517529 100644 --- a/src/import/curl-util.c +++ b/src/import/curl-util.c @@ -19,6 +19,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ +#include "string-util.h" #include "curl-util.h" static void curl_glue_check_finished(CurlGlue *g) { diff --git a/src/import/curl-util.h b/src/import/curl-util.h index c249069ffa..6a2aa81c76 100644 --- a/src/import/curl-util.h +++ b/src/import/curl-util.h @@ -24,9 +24,10 @@ #include <sys/types.h> #include <curl/curl.h> -#include "hashmap.h" #include "sd-event.h" +#include "hashmap.h" + typedef struct CurlGlue CurlGlue; struct CurlGlue { diff --git a/src/import/export-raw.c b/src/import/export-raw.c index 8f9c9bbc80..dc4db481ca 100644 --- a/src/import/export-raw.c +++ b/src/import/export-raw.c @@ -24,12 +24,14 @@ #undef basename #include "sd-daemon.h" -#include "util.h" -#include "ratelimit.h" + #include "btrfs-util.h" #include "copy.h" -#include "import-common.h" #include "export-raw.h" +#include "import-common.h" +#include "ratelimit.h" +#include "string-util.h" +#include "util.h" #define COPY_BUFFER_SIZE (16*1024) diff --git a/src/import/export-tar.c b/src/import/export-tar.c index a623745f5f..93f2fdbd44 100644 --- a/src/import/export-tar.c +++ b/src/import/export-tar.c @@ -19,15 +19,15 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <sys/sendfile.h> - #include "sd-daemon.h" -#include "util.h" -#include "ratelimit.h" + #include "btrfs-util.h" #include "import-common.h" -#include "export-tar.h" #include "process-util.h" +#include "ratelimit.h" +#include "string-util.h" +#include "util.h" +#include "export-tar.h" #define COPY_BUFFER_SIZE (16*1024) diff --git a/src/import/export.c b/src/import/export.c index d34105e4ca..89e23899b1 100644 --- a/src/import/export.c +++ b/src/import/export.c @@ -30,6 +30,7 @@ #include "import-util.h" #include "machine-image.h" #include "signal-util.h" +#include "string-util.h" #include "verbs.h" static ImportCompressType arg_compress = IMPORT_COMPRESS_UNKNOWN; diff --git a/src/import/import-raw.c b/src/import/import-raw.c index 5f7d25d063..b13e80584d 100644 --- a/src/import/import-raw.c +++ b/src/import/import-raw.c @@ -23,18 +23,20 @@ #include "sd-daemon.h" #include "sd-event.h" -#include "util.h" -#include "path-util.h" + #include "btrfs-util.h" -#include "hostname-util.h" #include "copy.h" -#include "mkdir.h" -#include "rm-rf.h" -#include "ratelimit.h" +#include "hostname-util.h" +#include "import-common.h" +#include "import-compress.h" #include "machine-pool.h" +#include "mkdir.h" +#include "path-util.h" #include "qcow2-util.h" -#include "import-compress.h" -#include "import-common.h" +#include "ratelimit.h" +#include "rm-rf.h" +#include "string-util.h" +#include "util.h" #include "import-raw.h" struct RawImport { diff --git a/src/import/import-tar.c b/src/import/import-tar.c index 5c288d438e..0145dcb452 100644 --- a/src/import/import-tar.c +++ b/src/import/import-tar.c @@ -23,20 +23,22 @@ #include "sd-daemon.h" #include "sd-event.h" -#include "util.h" -#include "path-util.h" + #include "btrfs-util.h" -#include "hostname-util.h" #include "copy.h" -#include "mkdir.h" -#include "rm-rf.h" -#include "ratelimit.h" +#include "hostname-util.h" +#include "import-common.h" +#include "import-compress.h" #include "machine-pool.h" +#include "mkdir.h" +#include "path-util.h" +#include "process-util.h" #include "qcow2-util.h" -#include "import-compress.h" -#include "import-common.h" +#include "ratelimit.h" +#include "rm-rf.h" +#include "string-util.h" +#include "util.h" #include "import-tar.h" -#include "process-util.h" struct TarImport { sd_event *event; diff --git a/src/import/import.c b/src/import/import.c index 1c92312585..bc0bc78924 100644 --- a/src/import/import.c +++ b/src/import/import.c @@ -30,6 +30,7 @@ #include "import-util.h" #include "machine-image.h" #include "signal-util.h" +#include "string-util.h" #include "verbs.h" static bool arg_force = false; diff --git a/src/import/pull-common.c b/src/import/pull-common.c index 94d4438912..a79cc5825b 100644 --- a/src/import/pull-common.c +++ b/src/import/pull-common.c @@ -30,6 +30,7 @@ #include "rm-rf.h" #include "signal-util.h" #include "siphash24.h" +#include "string-util.h" #include "strv.h" #include "util.h" #include "pull-common.h" diff --git a/src/import/pull-dkr.c b/src/import/pull-dkr.c index 84211d282b..ea31d11641 100644 --- a/src/import/pull-dkr.c +++ b/src/import/pull-dkr.c @@ -23,22 +23,24 @@ #include <sys/prctl.h> #include "sd-daemon.h" -#include "json.h" -#include "strv.h" + +#include "aufs-util.h" #include "btrfs-util.h" -#include "utf8.h" +#include "curl-util.h" +#include "hostname-util.h" +#include "import-common.h" +#include "import-util.h" +#include "json.h" #include "mkdir.h" -#include "rm-rf.h" #include "path-util.h" -#include "import-util.h" -#include "curl-util.h" -#include "aufs-util.h" -#include "pull-job.h" +#include "process-util.h" #include "pull-common.h" -#include "import-common.h" #include "pull-dkr.h" -#include "process-util.h" -#include "hostname-util.h" +#include "pull-job.h" +#include "rm-rf.h" +#include "string-util.h" +#include "strv.h" +#include "utf8.h" typedef enum DkrProgress { DKR_SEARCHING, diff --git a/src/import/pull-job.c b/src/import/pull-job.c index 42939f2104..f8b597c9c3 100644 --- a/src/import/pull-job.c +++ b/src/import/pull-job.c @@ -21,8 +21,9 @@ #include <sys/xattr.h> -#include "strv.h" #include "machine-pool.h" +#include "string-util.h" +#include "strv.h" #include "pull-job.h" PullJob* pull_job_unref(PullJob *j) { diff --git a/src/import/pull-raw.c b/src/import/pull-raw.c index 3e13f4ea9a..a8b2c24507 100644 --- a/src/import/pull-raw.c +++ b/src/import/pull-raw.c @@ -19,27 +19,29 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <sys/xattr.h> -#include <linux/fs.h> #include <curl/curl.h> +#include <linux/fs.h> +#include <sys/xattr.h> #include "sd-daemon.h" -#include "utf8.h" -#include "strv.h" -#include "copy.h" + #include "btrfs-util.h" -#include "util.h" +#include "copy.h" +#include "curl-util.h" +#include "hostname-util.h" +#include "import-common.h" +#include "import-util.h" #include "macro.h" #include "mkdir.h" -#include "rm-rf.h" #include "path-util.h" -#include "hostname-util.h" -#include "import-util.h" -#include "import-common.h" -#include "curl-util.h" -#include "qcow2-util.h" -#include "pull-job.h" #include "pull-common.h" +#include "pull-job.h" +#include "qcow2-util.h" +#include "rm-rf.h" +#include "string-util.h" +#include "strv.h" +#include "utf8.h" +#include "util.h" #include "pull-raw.h" typedef enum RawProgress { diff --git a/src/import/pull-tar.c b/src/import/pull-tar.c index bd35f1b842..fb4d5bf512 100644 --- a/src/import/pull-tar.c +++ b/src/import/pull-tar.c @@ -23,22 +23,24 @@ #include <curl/curl.h> #include "sd-daemon.h" -#include "utf8.h" -#include "strv.h" -#include "copy.h" + #include "btrfs-util.h" -#include "util.h" +#include "copy.h" +#include "curl-util.h" +#include "hostname-util.h" +#include "import-common.h" +#include "import-util.h" #include "macro.h" #include "mkdir.h" -#include "rm-rf.h" #include "path-util.h" #include "process-util.h" -#include "hostname-util.h" -#include "import-util.h" -#include "import-common.h" -#include "curl-util.h" -#include "pull-job.h" #include "pull-common.h" +#include "pull-job.h" +#include "rm-rf.h" +#include "string-util.h" +#include "strv.h" +#include "utf8.h" +#include "util.h" #include "pull-tar.h" typedef enum TarProgress { diff --git a/src/import/pull.c b/src/import/pull.c index 29e9424b52..73d5f391c2 100644 --- a/src/import/pull.c +++ b/src/import/pull.c @@ -31,6 +31,7 @@ #include "pull-raw.h" #include "pull-tar.h" #include "signal-util.h" +#include "string-util.h" #include "verbs.h" static bool arg_force = false; |