Lines Matching refs:import
28 #include "import-raw.h"
29 #include "import-tar.h"
30 #include "import-util.h"
46 static void on_tar_finished(TarImport *import, int error, void *userdata) {
48 assert(import);
57 _cleanup_(tar_import_unrefp) TarImport *import = NULL;
103 return log_error_errno(errno, "Failed to open tar image to import: %m");
125 r = tar_import_new(&import, event, arg_image_root, on_tar_finished, event);
129 r = tar_import_start(import, fd, local, arg_force, arg_read_only);
131 return log_error_errno(r, "Failed to import image: %m");
141 static void on_raw_finished(RawImport *import, int error, void *userdata) {
143 assert(import);
152 _cleanup_(raw_import_unrefp) RawImport *import = NULL;
198 return log_error_errno(errno, "Failed to open raw image to import: %m");
220 r = raw_import_new(&import, event, arg_image_root, on_raw_finished, event);
224 r = raw_import_start(import, fd, local, arg_force, arg_read_only);
226 return log_error_errno(r, "Failed to import image: %m");