]> git.ipfire.org Git - thirdparty/util-linux.git/commit
eject: use libmount context API for umount
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 25 Jun 2026 16:23:04 +0000 (12:23 -0400)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Fri, 3 Jul 2026 11:37:30 +0000 (13:37 +0200)
commitf0f76aa69cc23f989a369edeaee4059658b5cac6
treedfd81b7e179464faee94390981c18177b5f7834f
parent174f1842725b8d62b23c97f9d4e4245823807727
eject: use libmount context API for umount

libmount provides a context API that can be used to replace
the fork+exec code pattern needed to leverage umount(8).
This does not only simplify the code base but also removes
the concern for signal handling due to a wait(2) call, avoids
forking and allocating additional system resources, reduces
security management and makes the code more consistent as other
functions were already using some libmount functionalities.

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
sys-utils/eject.c