Lines Matching defs:arg_image

170 static char *arg_image = NULL;
432 r = parse_path_argument_and_warn(optarg, false, &arg_image);
905 if (arg_directory && arg_image) {
910 if (arg_template && arg_image) {
925 if (arg_ephemeral && arg_image) {
1691 assert(arg_image);
1693 fd = open(arg_image, O_CLOEXEC|(arg_read_only ? O_RDONLY : O_RDWR)|O_NONBLOCK|O_NOCTTY);
1695 return log_error_errno(errno, "Failed to open %s: %m", arg_image);
1698 return log_error_errno(errno, "Failed to stat %s: %m", arg_image);
1703 p = strdup(arg_image);
1718 log_error("%s is not a regular file or block device.", arg_image);
1798 assert(arg_image);
1821 PARTITION_TABLE_BLURB, arg_image);
1837 PARTITION_TABLE_BLURB, arg_image);
1847 log_error("Failed to list partitions of %s", arg_image);
1880 return log_error_errno(r, "Failed to scan for partition devices of %s: %m", arg_image);
1949 return log_error_errno(errno, "Failed to get partition device of %s: %m", arg_image);
2097 PARTITION_TABLE_BLURB, arg_image);
2109 PARTITION_TABLE_BLURB, arg_image);
2346 if (!arg_image && !arg_directory) {
2359 r = free_and_strdup(&arg_image, i->path);
2380 arg_machine = strdup(basename(arg_image ?: arg_directory));
2909 if (arg_image) {
2910 p = file_in_same_dir(arg_image, fn);
3134 assert(!arg_image);
3229 assert(arg_image);
3232 r = image_path_lock(arg_image, (arg_read_only ? LOCK_SH : LOCK_EX) | LOCK_NB, &tree_global_lock, &tree_local_lock);
3234 r = log_error_errno(r, "Disk image %s is currently busy.", arg_image);
3296 arg_machine, arg_image ?: arg_directory);
3685 free(arg_image);