]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: (idmap) reuse tree FD, fix umount
authorKarel Zak <kzak@redhat.com>
Mon, 27 Mar 2023 10:51:53 +0000 (12:51 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 27 Mar 2023 11:48:36 +0000 (13:48 +0200)
commit8149f7b6bb8a3a7e9c5d2eef024942fbbb41fc31
tree94f324a93df667e31a3a408464e4ddb6e177a1c9
parentd155c11d2e5374623d16c6bae7198ec9b8f479bb
libmount: (idmap) reuse tree FD, fix umount

* reuse already open mount tree; the tree could be already open due to
  regular mount, bind or remount operation

* umount (MNT_DETACH) old target if we created a clone (but the
  operation is not a bind)

Adedreses: https://github.com/util-linux/util-linux/issues/2130
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/hook_idmap.c
libmount/src/hook_mount.c
libmount/src/mountP.h