[dm-devel] [PATCH 2/2] Display error when we fail to delete device
Ritesh Raj Sarraf
rrs at debian.org
Fri May 15 09:47:47 UTC 2015
We are exiting when the device fails, so also print an error message
Signed-off-by: Ritesh Raj Sarraf <rrs at debian.org>
---
kpartx/kpartx.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
index d69f9af..8a13c16 100644
--- a/kpartx/kpartx.c
+++ b/kpartx/kpartx.c
@@ -448,9 +448,8 @@ main(int argc, char **argv){
if (S_ISREG (buf.st_mode)) {
if (del_loop(device)) {
- if (verbose)
- printf("can't del loop : %s\n",
- device);
+ printf("can't del loop : %s\n",
+ device);
exit(1);
}
printf("loop deleted : %s\n", device);
--
2.1.4
More information about the dm-devel
mailing list