]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix mnt_context_next_remount()
authorKarel Zak <kzak@redhat.com>
Thu, 31 Oct 2019 09:34:12 +0000 (10:34 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 31 Oct 2019 11:25:08 +0000 (12:25 +0100)
commite5d204440758d23b5432d86099334db626f3d172
tree835baf857703bb4a2ab2e6b98d9db3ef3c91d30a
parente83c09d49e52eadf1715e682c547b0ff9744983e
libmount: fix mnt_context_next_remount()

The current implementation works, but the remount operation is done in
the cloned context and the original context (and calling application)
has no information about the final status/errors. This is mistake.

This new implementation works like mnt_context_next_mount(), it means
the same context (as used by application) is reused for all remounts.
The original setting is restored by mnt_context_apply_template().

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