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

[dm-devel] [PATCH] garbled output after rename map and rerun multipath



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.
 
Thanks,
lan
 
--- multipath-git/libmultipath/print.c  2006-06-05 14:26:52.000000000 -0700
+++ multipath-tools-2006.6.5-changed/libmultipath/print.c       2006-06-06 13:48:54.000000000 -0700
@@ -211,12 +211,16 @@
 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_RELOAD:
                return snprint_str(buff, len, ACT_RELOAD_STR);
-       case ACT_CREATE:
-               return snprint_str(buff, len, ACT_CREATE_STR);
        case ACT_SWITCHPG:
                return snprint_str(buff, len, ACT_SWITCHPG_STR);
+       case ACT_RENAME:
+               return snprint_str(buff, len, ACT_RENAME_STR);
+       case ACT_CREATE:
+               return snprint_str(buff, len, ACT_CREATE_STR);
        default:
                return 0;
        }
 

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