mount: add debug logging for the case when we knowingly ignore an error

This commit is contained in:
Lennart Poettering
2017-07-10 21:41:02 +02:00
parent 5c6803f5bd
commit a53dceb709
+3 -1
View File
@@ -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;