X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ffsck%2Ffsck.c;h=70a591883e70cc161165077fba3674e12c5960eb;hb=2b0073e1d2fb0611733e0b83bd41cc753b254593;hp=e8596d90f805df3d35218dc9735cf484016c8f4c;hpb=571d0134bd464444567cf4eb0d2ed8df40045f36;p=elogind.git diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index e8596d90f..70a591883 100644 --- a/src/fsck/fsck.c +++ b/src/fsck/fsck.c @@ -47,7 +47,7 @@ static const char *arg_repair = "-a"; static void start_target(const char *target) { _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL; - _cleanup_bus_unref_ sd_bus *bus = NULL; + _cleanup_bus_close_unref_ sd_bus *bus = NULL; int r; assert(target); @@ -320,16 +320,11 @@ int main(int argc, char *argv[]) { cmdline[i++] = "-T"; /* - * 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"; + * Since util-linux v2.25 fsck uses /run/fsck/.lock files. + * The previous versions use flock for the device and conflict with + * udevd, see https://bugs.freedesktop.org/show_bug.cgi?id=79576#c5 */ + cmdline[i++] = "-l"; if (!root_directory) cmdline[i++] = "-M";