diff options
author | Karel Zak <kzak@redhat.com> | 2014-10-22 10:28:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-22 11:45:36 +0200 |
commit | 48d3e8d07f2978f001cc85b2dddb7f8ec9d07006 (patch) | |
tree | b526c2918e2b2850cf6dc00a1e815af122033c37 /src/fsck/fsck.c | |
parent | 39bb33c19203bdcd8857e9dc9ee6c8f03da77b71 (diff) |
fsck: re-enable fsck -l
The -l (lock) has been temporary disabled due to conflict with
udev (https://bugs.freedesktop.org/show_bug.cgi?id=79576)
The problem is fixed since util-linux v2.25 (Jul 2014).
Diffstat (limited to 'src/fsck/fsck.c')
-rw-r--r-- | src/fsck/fsck.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index dfe97bc260..70a591883e 100644 --- a/src/fsck/fsck.c +++ b/src/fsck/fsck.c @@ -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/<diskname>.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"; |