]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mount: add --exclusive command line option
authorKarel Zak <kzak@redhat.com>
Thu, 31 Jul 2025 10:31:36 +0000 (12:31 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 31 Jul 2025 10:44:57 +0000 (12:44 +0200)
commit9a6134a518578575da8dbcf4a3cea9f460396ffe
tree43c99b31d5218f34cfebeb81863883f2b7b6e8da
parentbe65bf2d93df3f89d488250575400449a6a1ae3c
mount: add --exclusive command line option

The new option ensures that the kernel does not reuse existing
superblock.

The new option is available to non-root users as it does not affect
the superblock itself or any other aspects of the mount process. It
makes the current mounting more restrictive, so it makes sense to
allow it for non-root users.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/mount.8.adoc
sys-utils/mount.c