summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-06-26 20:32:40 +0200
committerLennart Poettering <lennart@poettering.net>2017-06-26 20:32:40 +0200
commitdc38f65a729d1f4143a9fe21605152c6391ced73 (patch)
tree7ec35b421099e48f8d9b4194d4676d33fcbcb795
parente0061812b00db3c8226ad845d3c2741d5c5fc86e (diff)
downloadsystemd-dc38f65a729d1f4143a9fe21605152c6391ced73.tar.gz
importd: log more information when renaming files
-rw-r--r--src/import/pull-raw.c2
-rw-r--r--src/import/pull-tar.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/import/pull-raw.c b/src/import/pull-raw.c
index fe208032b2..b45ac814a9 100644
--- a/src/import/pull-raw.c
+++ b/src/import/pull-raw.c
@@ -538,7 +538,7 @@ static void raw_pull_job_on_finished(PullJob *j) {
r = rename_noreplace(AT_FDCWD, i->temp_path, AT_FDCWD, i->final_path);
if (r < 0) {
- log_error_errno(r, "Failed to move RAW file into place: %m");
+ log_error_errno(r, "Failed to rename raw file to %s: %m", i->final_path);
goto finish;
}
diff --git a/src/import/pull-tar.c b/src/import/pull-tar.c
index 482beb7cd2..12211a6fc6 100644
--- a/src/import/pull-tar.c
+++ b/src/import/pull-tar.c
@@ -359,7 +359,7 @@ static void tar_pull_job_on_finished(PullJob *j) {
r = rename_noreplace(AT_FDCWD, i->temp_path, AT_FDCWD, i->final_path);
if (r < 0) {
- log_error_errno(r, "Failed to rename to final image name: %m");
+ log_error_errno(r, "Failed to rename to final image name to %s: %m", i->final_path);
goto finish;
}
@@ -386,7 +386,7 @@ static void tar_pull_job_on_finished(PullJob *j) {
r = rename_noreplace(AT_FDCWD, i->settings_temp_path, AT_FDCWD, i->settings_path);
if (r < 0) {
- log_error_errno(r, "Failed to rename settings file: %m");
+ log_error_errno(r, "Failed to rename settings file to %s: %m", i->settings_path);
goto finish;
}