summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-07-10 21:41:02 +0200
committerLennart Poettering <lennart@poettering.net>2017-07-10 21:41:02 +0200
commita53dceb709f39ddbc25bfb910525c7d77c7a7dcf (patch)
treeeaa132c68a628ba6e1eac335b5abf2f0a70994ea
parentmount: rework find_loop_device() to log about no errors (diff)
downloadsystemd-a53dceb709f39ddbc25bfb910525c7d77c7a7dcf.tar.gz
systemd-a53dceb709f39ddbc25bfb910525c7d77c7a7dcf.tar.bz2
systemd-a53dceb709f39ddbc25bfb910525c7d77c7a7dcf.zip
mount: add debug logging for the case when we knowingly ignore an error
-rw-r--r--src/mount/mount-tool.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c
index 21c3b1302..23083fd16 100644
--- a/src/mount/mount-tool.c
+++ b/src/mount/mount-tool.c
@@ -779,8 +779,10 @@ static int find_loop_device(const char *backing_file, char **loop_dev) {
return -ENOMEM;
r = read_one_line_file(sys, &fname);
- if (r < 0)
+ if (r < 0) {
+ log_debug_errno(r, "Failed to read %s, ignoring: %m", sys);
continue;
+ }
if (files_same(fname, backing_file, 0) <= 0)
continue;