MULTIPATH TESTS: Remove the iscsi-only restriction. The tests work for /dev/* too
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -993,7 +993,6 @@ main(int argc, char *argv[])
|
||||
};
|
||||
int i, c;
|
||||
int opt_idx = 0;
|
||||
bool got_sgio_dev = false;
|
||||
|
||||
while ((c = getopt_long(argc, argv, "?hli:I:t:sdgfAsSnvxV", long_opts,
|
||||
&opt_idx)) > 0) {
|
||||
@@ -1071,7 +1070,6 @@ main(int argc, char *argv[])
|
||||
#ifdef HAVE_SG_IO
|
||||
} else {
|
||||
mp_sds[mp_num_sds]->sgio_dev = strdup(argv[optind++]);
|
||||
got_sgio_dev = true;
|
||||
#endif
|
||||
}
|
||||
mp_num_sds++;
|
||||
@@ -1098,13 +1096,6 @@ main(int argc, char *argv[])
|
||||
return 10;
|
||||
}
|
||||
|
||||
if ((mp_num_sds > 1) && got_sgio_dev) {
|
||||
fprintf(stderr, "Multipath devices must be iSCSI only\n");
|
||||
print_usage();
|
||||
free(testname_re);
|
||||
return 10;
|
||||
}
|
||||
|
||||
/* sd remains an alias for the first device */
|
||||
sd = mp_sds[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user