Lines Matching refs:new_name
450 static int rename_settings_file(const char *path, const char *new_name) {
454 fn = strjoina(new_name, ".nspawn");
463 int image_rename(Image *i, const char *new_name) {
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 static int clone_settings_file(const char *path, const char *new_name) {
565 fn = strjoina(new_name, ".nspawn");
574 int image_clone(Image *i, const char *new_name, bool read_only) {
583 if (!image_name_is_valid(new_name))
593 r = image_name_lock(new_name, LOCK_EX|LOCK_NB, &name_lock);
597 r = image_find(new_name, NULL);
607 new_path = strjoina("/var/lib/machines/", new_name);
618 new_path = strjoina("/var/lib/machines/", new_name, ".raw");
631 r = clone_settings_file(*j, new_name);