]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Incremental: remove obsoleted calls to udisks
authorColy Li <colyli@suse.de>
Sun, 13 Aug 2023 16:46:13 +0000 (00:46 +0800)
committerJes Sorensen <jes@trained-monkey.org>
Thu, 26 Oct 2023 21:36:30 +0000 (17:36 -0400)
commitba489abd688bf70c83e70700aaaec5f5e90889c5
tree5c5593bb74fbf7040a89c989d622078f867274cd
parente2eb503bd797908f515b58428b274f1ba6a05349
Incremental: remove obsoleted calls to udisks

Utility udisks is removed from udev upstream, calling this obsoleted
command in run_udisks() doesn't make any sense now.

This patch removes the calls chain of udisks, which includes routines
run_udisk(), force_remove(), and 2 locations where force_remove() are
called. Considering force_remove() is removed with udisks util, it is
fair to remove Manage_stop() inside force_remove() as well.

In the two modifications where calling force_remove() are removed,
the failure from Manage_subdevs() can be safely ignored, because,
1) udisks doesn't exist, no need to check the return value to umount
   the file system by udisks and remove the component disk again.
2) After the 'I' inremental remove, there is another 'r' hot remove
   following up. The first incremental remove is a best-try effort.

Therefore in this patch, where force_remove() is removed, the return
value of calling Manage_subdevs() is not checked too.

Signed-off-by: Coly Li <colyli@suse.de>
Reviewed-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Cc: Jes Sorensen <jes@trained-monkey.org>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
Incremental.c