[PATCH 44/78] multipath: do not print state 'orphan' for option '-l'

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

 



When called with '-l' multipath would mistakenly print a state
of 'orphan' instead off 'running' of 'offline'.
This is a regression introduced by commit 7023d320.

Signed-off-by: Hannes Reinecke <hare@xxxxxxx>
---
 libmultipath/print.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libmultipath/print.c b/libmultipath/print.c
index 39b4f98..5d63ed3 100644
--- a/libmultipath/print.c
+++ b/libmultipath/print.c
@@ -322,8 +322,6 @@ snprint_offline (char * buff, size_t len, struct path * pp)
 		return snprintf(buff, len, "unknown");
 	else if (pp->offline)
 		return snprintf(buff, len, "offline");
-	else if (!pp->mpp)
-		return snprintf(buff, len, "orphan");
 	else
 		return snprintf(buff, len, "running");
 }
-- 
1.8.4.5

--
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