[libmultipath] add missing action messages
authorlbt <transter@gmail.com>
Mon, 30 Jul 2007 22:25:12 +0000 (00:25 +0200)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Mon, 30 Jul 2007 22:25:12 +0000 (00:25 +0200)
There was some garbled output after renaming a multipath device and rerunning multipath.  This is just a minor fix to add some actions that were missing.

libmultipath/print.c

index b1e7b26..01a157a 100644 (file)
@@ -224,6 +224,10 @@ static int
 snprint_action (char * buff, size_t len, struct multipath * mpp)
 {
        switch (mpp->action) {
+       case ACT_REJECT:
+               return snprint_str(buff, len, ACT_REJECT_STR);
+       case ACT_RENAME:
+               return snprint_str(buff, len, ACT_RENAME_STR);
        case ACT_RELOAD:
                return snprint_str(buff, len, ACT_RELOAD_STR);
        case ACT_CREATE: