Lines Matching defs:local
59 const char *path = NULL, *local = NULL;
70 local = argv[2];
72 local = basename(path);
73 if (isempty(local) || streq(local, "-"))
74 local = NULL;
76 if (local) {
77 r = tar_strip_suffixes(local, &ll);
81 local = ll;
83 if (!machine_name_is_valid(local)) {
84 log_error("Local image name '%s' is not valid.", local);
89 r = image_find(local, NULL);
91 return log_error_errno(r, "Failed to check whether image '%s' exists: %m", local);
93 log_error_errno(EEXIST, "Image '%s' already exists.", local);
98 local = "imported";
107 log_info("Importing '%s', saving as '%s'.", path, local);
114 log_info("Importing '%s', saving as '%s'.", strna(pretty), local);
129 r = tar_import_start(import, fd, local, arg_force, arg_read_only);
154 const char *path = NULL, *local = NULL;
165 local = argv[2];
167 local = basename(path);
168 if (isempty(local) || streq(local, "-"))
169 local = NULL;
171 if (local) {
172 r = raw_strip_suffixes(local, &ll);
176 local = ll;
178 if (!machine_name_is_valid(local)) {
179 log_error("Local image name '%s' is not valid.", local);
184 r = image_find(local, NULL);
186 return log_error_errno(r, "Failed to check whether image '%s' exists: %m", local);
188 log_error_errno(EEXIST, "Image '%s' already exists.", local);
193 local = "imported";
202 log_info("Importing '%s', saving as '%s'.", path, local);
209 log_info("Importing '%s', saving as '%s'.", pretty, local);
224 r = raw_import_start(import, fd, local, arg_force, arg_read_only);