|
|
4728c8 |
---
|
|
|
4728c8 |
kpartx/kpartx.c | 10 +++++++---
|
|
|
4728c8 |
multipath/multipath.rules | 2 +-
|
|
|
4728c8 |
2 files changed, 8 insertions(+), 4 deletions(-)
|
|
|
4728c8 |
|
|
|
4728c8 |
Index: multipath-tools-130222/kpartx/kpartx.c
|
|
|
4728c8 |
===================================================================
|
|
|
4728c8 |
--- multipath-tools-130222.orig/kpartx/kpartx.c
|
|
|
4728c8 |
+++ multipath-tools-130222/kpartx/kpartx.c
|
|
|
4728c8 |
@@ -57,7 +57,7 @@ struct pt {
|
|
|
4728c8 |
} pts[MAXTYPES];
|
|
|
4728c8 |
|
|
|
4728c8 |
int ptct = 0;
|
|
|
4728c8 |
-int udev_sync = 0;
|
|
|
4728c8 |
+int udev_sync = 1;
|
|
|
4728c8 |
|
|
|
4728c8 |
static void
|
|
|
4728c8 |
addpts(char *t, ptreader f)
|
|
|
4728c8 |
@@ -85,7 +85,7 @@ initpts(void)
|
|
|
4728c8 |
addpts("ps3", read_ps3_pt);
|
|
|
4728c8 |
}
|
|
|
4728c8 |
|
|
|
4728c8 |
-static char short_opts[] = "rladfgvp:t:su";
|
|
|
4728c8 |
+static char short_opts[] = "rladfgvp:t:snu";
|
|
|
4728c8 |
|
|
|
4728c8 |
/* Used in gpt.c */
|
|
|
4728c8 |
int force_gpt=0;
|
|
|
4728c8 |
@@ -104,7 +104,8 @@ usage(void) {
|
|
|
4728c8 |
printf("\t-g force GUID partition table (GPT)\n");
|
|
|
4728c8 |
printf("\t-f force devmap create\n");
|
|
|
4728c8 |
printf("\t-v verbose\n");
|
|
|
4728c8 |
- printf("\t-s sync mode. Don't return until the partitions are created\n");
|
|
|
4728c8 |
+ printf("\t-n nosync mode. Return before the partitions are created\n");
|
|
|
4728c8 |
+ printf("\t-s sync mode. Don't return until the partitions are created. Default.\n");
|
|
|
4728c8 |
return 1;
|
|
|
4728c8 |
}
|
|
|
4728c8 |
|
|
|
4728c8 |
@@ -285,6 +286,9 @@ main(int argc, char **argv){
|
|
|
4728c8 |
case 's':
|
|
|
4728c8 |
udev_sync = 1;
|
|
|
4728c8 |
break;
|
|
|
4728c8 |
+ case 'n':
|
|
|
4728c8 |
+ udev_sync = 0;
|
|
|
4728c8 |
+ break;
|
|
|
4728c8 |
case 'u':
|
|
|
4728c8 |
what = UPDATE;
|
|
|
4728c8 |
break;
|
|
|
4728c8 |
Index: multipath-tools-130222/multipath/multipath.rules
|
|
|
4728c8 |
===================================================================
|
|
|
4728c8 |
--- multipath-tools-130222.orig/multipath/multipath.rules
|
|
|
4728c8 |
+++ multipath-tools-130222/multipath/multipath.rules
|
|
|
4728c8 |
@@ -48,6 +48,6 @@ ENV{DM_ACTIVATION}=="1", ENV{DM_MULTIPAT
|
|
|
4728c8 |
ENV{DM_SUSPENDED}=="1", GOTO="end_mpath"
|
|
|
4728c8 |
ENV{DM_ACTION}=="PATH_FAILED", GOTO="end_mpath"
|
|
|
4728c8 |
ENV{DM_ACTIVATION}!="1", ENV{DM_MULTIPATH_NEED_KPARTX}!="1", GOTO="end_mpath"
|
|
|
4728c8 |
-RUN+="$env{MPATH_SBIN_PATH}/kpartx -a $tempnode", \
|
|
|
4728c8 |
+RUN+="$env{MPATH_SBIN_PATH}/kpartx -an $tempnode", \
|
|
|
4728c8 |
ENV{DM_MULTIPATH_NEED_KPARTX}=""
|
|
|
4728c8 |
LABEL="end_mpath"
|