Lines Matching defs:export
25 #include "export-raw.h"
26 #include "export-tar.h"
64 static void on_tar_finished(TarExport *export, int error, void *userdata) {
66 assert(export);
75 _cleanup_(tar_export_unrefp) TarExport *export = NULL;
105 return log_error_errno(errno, "Failed to open tar image for export: %m");
127 r = tar_export_new(&export, event, on_tar_finished, event);
131 r = tar_export_start(export, local, fd, arg_compress);
133 return log_error_errno(r, "Failed to export image: %m");
143 static void on_raw_finished(RawExport *export, int error, void *userdata) {
145 assert(export);
154 _cleanup_(raw_export_unrefp) RawExport *export = NULL;
184 return log_error_errno(errno, "Failed to open raw image for export: %m");
206 r = raw_export_new(&export, event, on_raw_finished, event);
210 r = raw_export_start(export, local, fd, arg_compress);
212 return log_error_errno(r, "Failed to export image: %m");