From a53dceb709f39ddbc25bfb910525c7d77c7a7dcf Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 10 Jul 2017 21:41:02 +0200 Subject: [PATCH] mount: add debug logging for the case when we knowingly ignore an error --- src/mount/mount-tool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index 21c3b1302d1..23083fd16ea 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; -- 2.47.3