[dm-devel] [PATCH 34/35] kpartx: print an error message if removing a partition fails
mwilck at suse.com
mwilck at suse.com
Thu Jul 9 10:16:19 UTC 2020
From: Martin Wilck <mwilck at suse.com>
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
kpartx/kpartx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
index c24ad6d..5f59e15 100644
--- a/kpartx/kpartx.c
+++ b/kpartx/kpartx.c
@@ -635,6 +635,8 @@ main(int argc, char **argv){
if (!dm_simplecmd(DM_DEVICE_REMOVE,
partname, 1, 0)) {
+ fprintf(stderr, "failed to remove %s",
+ partname);
r++;
continue;
}
--
2.26.2
More information about the dm-devel
mailing list