]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm/Manage: record errno
authorXiao Ni <xni@redhat.com>
Wed, 11 Sep 2024 08:54:32 +0000 (16:54 +0800)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 23 Sep 2024 08:49:17 +0000 (10:49 +0200)
commite3c3cfb64b8ec8b616e2eefbc69fbc3de29b64b6
tree6f65072932bbf2ddb8c4a0f94e7af4b6cfa822b4
parent5cafbc8b3a7f352be80c5dc22d59d26b06f57680
mdadm/Manage: record errno

Sometimes it reports:
mdadm: failed to stop array /dev/md0: Success
It's the reason the errno is reset. So record errno during the loop.

Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Manage.c