r = fsck_exists(type);
if (r < 0) {
if (r == -ENOENT) {
- log_info("fsck.%s doesn't exist, not checking file system.", type);
+ log_info("fsck.%s doesn't exist, not checking file system on %s",
+ type, device);
return EXIT_SUCCESS;
} else
- log_warning("fsck.%s cannot be used: %s", type, strerror(-r));
+ log_warning("fsck.%s cannot be used for %s: %s",
+ type, device, strerror(-r));
}
}
cmdline[i++] = "/sbin/fsck";
cmdline[i++] = arg_repair;
cmdline[i++] = "-T";
- cmdline[i++] = "-l";
+
+ /*
+ * Disable locking which conflict with udev's event
+ * ownershipi, until util-linux moves the flock
+ * synchronization file which prevents multiple fsck running
+ * on the same rotationg media, from the disk device
+ * node to a privately owned regular file.
+ *
+ * https://bugs.freedesktop.org/show_bug.cgi?id=79576#c5
+ *
+ * cmdline[i++] = "-l";
+ */
if (!root_directory)
cmdline[i++] = "-M";