[PATCH 2/2] Display error when we fail to delete device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We are exiting when the device fails, so also print an error message

Signed-off-by: Ritesh Raj Sarraf <rrs@xxxxxxxxxx>
---
 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

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux