]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix mount hooks use
authorKarel Zak <kzak@redhat.com>
Fri, 10 Jun 2022 08:24:10 +0000 (10:24 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 3 Jan 2023 11:53:12 +0000 (12:53 +0100)
commit377d89470f0f10f38ffb5b9c97fe604ef50bf6c1
tree5e964e92a330bed0b12c55acaa71c59c8d3548b3
parent5e69b21b21d1493a4483332f93a1aaf5bbe46344
libmount: fix mount hooks use

The function do_mount() is possible to call in loop, for example when
libmount try FS types ("mount -t foo,bar,ext4 /dev/sdc1 /mnt"). In
this case it's bad idea to call in the loop also hooks that do
non-mount operations.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_mount.c