]> git.ipfire.org Git - thirdparty/util-linux.git/commit
If mtab support is disabled, disable ro/rw mtab checks
authorStanislav Brabec <sbrabec@suse.cz>
Tue, 10 Jan 2017 12:54:17 +0000 (13:54 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2017 15:11:11 +0000 (16:11 +0100)
commitd2114760c2b9a3990ed2aedecddc276ad4e864fd
treebb825204ef94e0d97b1b50099a0a9bc0e102a39a
parenta7c8fe3970716a0962b837bf70dd5b119f16f3ba
If mtab support is disabled, disable ro/rw mtab checks

Commit f9906424 introduced a check that should prevent different information in
mtab and /proc/mounts. The check can require significant amount of time, and for
systems without mtab support it has no sense.

Execute this code only on systems with mtab.

When a systems with large number of nodes (thousands) mount the filesystems
simultaneously, the time required for serialization causes the utimensat() to
take a large amount of time (tens of minutes) when a large number of nodes are
simultaneously updating the timestamp.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
libmount/src/context_mount.c