Searched defs:new_name (Results 1 - 3 of 3) sorted by relevance

/systemd/src/machine/
H A Dimage-dbus.c71 const char *new_name; local
77 r = sd_bus_message_read(message, "s", &new_name);
81 if (!image_name_is_valid(new_name))
82 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Image name '%s' is invalid.", new_name);
98 r = image_rename(image, new_name);
112 const char *new_name; local
118 r = sd_bus_message_read(message, "sb", &new_name, &read_only);
122 if (!image_name_is_valid(new_name))
123 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Image name '%s' is invalid.", new_name);
139 r = image_clone(image, new_name, read_onl
[all...]
/systemd/src/shared/
H A Dmachine-image.c450 static int rename_settings_file(const char *path, const char *new_name) { argument
454 fn = strjoina(new_name, ".nspawn");
463 int image_rename(Image *i, const char *new_name) { argument
473 if (!image_name_is_valid(new_name))
492 r = image_name_lock(new_name, LOCK_EX|LOCK_NB, &name_lock);
496 r = image_find(new_name, NULL);
514 new_path = file_in_same_dir(i->path, new_name);
520 fn = strjoina(new_name, ".raw");
532 nn = strdup(new_name);
553 r = rename_settings_file(*j, new_name);
561 clone_settings_file(const char *path, const char *new_name) argument
574 image_clone(Image *i, const char *new_name, bool read_only) argument
[all...]
/systemd/src/udev/net/
H A Dlink-config.c375 const char *new_name = NULL; local
411 !new_name && *policy != _NAMEPOLICY_INVALID; policy++) {
417 new_name = udev_device_get_property_value(device, "ID_NET_NAME_FROM_DATABASE");
420 new_name = udev_device_get_property_value(device, "ID_NET_NAME_ONBOARD");
423 new_name = udev_device_get_property_value(device, "ID_NET_NAME_SLOT");
426 new_name = udev_device_get_property_value(device, "ID_NET_NAME_PATH");
429 new_name = udev_device_get_property_value(device, "ID_NET_NAME_MAC");
439 if (!new_name)
440 new_name = config->name;
442 new_name
[all...]

Completed in 13 milliseconds