core/mount: if mount is gone eventually, consider it success
authorMike Yuan <me@yhndnzj.com>
Thu, 28 Mar 2024 16:43:25 +0000 (00:43 +0800)
committerMike Yuan <me@yhndnzj.com>
Tue, 2 Apr 2024 09:16:04 +0000 (17:16 +0800)
commite3783068c6dc1d5199c30c6ee4835f16ad92d3f9
tree090fbae8c1dd1b5fe205729b5af23a7d72e7cb02
parent9c7c3d9cdbf8b98ff6c5c63f2d3373909cb8ca5b
core/mount: if mount is gone eventually, consider it success

Currently, if unmount initiated by us fails, we record
that in result. Later, if we tried again and succeeded,
or someone else successfully unmounted it, the unit
state is still considered failed. Let's be more tolerant
instead, and forget about previous failure.

Alternative to #32002
src/core/mount.c