]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/mount: properly handle REMOUNTING_* states in mount_stop() 39269/head
authorMike Yuan <me@yhndnzj.com>
Sun, 9 Feb 2025 22:12:15 +0000 (23:12 +0100)
committerMike Yuan <me@yhndnzj.com>
Thu, 9 Oct 2025 16:32:18 +0000 (18:32 +0200)
commit6ebb91d92fb5ea7d43b22bec1b76cde1230b0e12
treec1160035ed47b8ce813175ef64a059b60ec25069
parenta8fe8e83447a39831a23d82a82614fc19f2b9b46
core/mount: properly handle REMOUNTING_* states in mount_stop()

Currently, mount_stop() simply turns REMOUNTING_* into corresponding
UNMOUNTING_* states. However the transition is bogus, because
the interruption of remount does not bring down the mount.
Let's instead follow the logic of service_stop(), i.e. terminate
the remount process and spawn umount.
src/core/mount.c