Lines Matching refs:image

58 static int determine_image(const char *image, bool permit_non_existing, char **ret) {  in determine_image()  argument
66 if (image_name_is_valid(image)) { in determine_image()
69 if (!arg_quiet && laccess(image, F_OK) >= 0) in determine_image()
71 … "Prefix argument with './' to force reference to file in current working directory.", image); in determine_image()
73 c = strdup(image); in determine_image()
85 …r = chase_symlinks(image, NULL, CHASE_TRAIL_SLASH | (permit_non_existing ? CHASE_NONEXISTENT : 0),… in determine_image()
87 return log_error_errno(r, "Cannot normalize specified image path '%s': %m", image); in determine_image()
160 static int determine_matches(const char *image, char **l, bool allow_any, char ***ret) { in determine_matches() argument
171 r = extract_prefix(image, &prefix); in determine_matches()
173 … return log_error_errno(r, "Failed to extract prefix of image name '%s': %m", image); in determine_matches()
259 static int get_image_metadata(sd_bus *bus, const char *image, char **matches, sd_bus_message **repl… in get_image_metadata() argument
275 r = sd_bus_message_append(m, "s", image); in get_image_metadata()
304 _cleanup_free_ char *image = NULL; in inspect_image() local
311 r = determine_image(argv[1], false, &image); in inspect_image()
323 r = get_image_metadata(bus, image, matches, &reply); in inspect_image()
752 static int maybe_stop_disable(sd_bus *bus, char *image, char *argv[]) { in maybe_stop_disable() argument
769 r = get_image_metadata(bus, image, matches, &reply); in maybe_stop_disable()
830 _cleanup_free_ char *image = NULL; in attach_reattach_image() local
836 r = determine_image(argv[1], false, &image); in attach_reattach_image()
854 r = sd_bus_message_append(m, "s", image); in attach_reattach_image()
910 _cleanup_free_ char *image = NULL; in detach_image() local
914 r = determine_image(argv[1], true, &image); in detach_image()
924 (void) maybe_stop_disable(bus, image, argv); in detach_image()
932 r = sd_bus_message_append(m, "s", image); in detach_image()
1126 _cleanup_free_ char *image = NULL; in is_image_attached() local
1130 r = determine_image(argv[1], true, &image); in is_image_attached()
1144 r = sd_bus_message_append(m, "s", image); in is_image_attached()