{
int r = 1;
int k, i;
- char empty_buff[WWID_SIZE];
char params[PARAMS_SIZE];
struct multipath * mpp;
struct path * pp1;
vector curmp = vecs->mpvec;
vector pathvec = vecs->pathvec;
- memset(empty_buff, 0, WWID_SIZE);
-
/* ignore refwwid if it's empty */
if (refwwid && !strlen(refwwid))
refwwid = NULL;
/* skip this path for some reason */
/* 1. if path has no unique id or wwid blacklisted */
- if (memcmp(empty_buff, pp1->wwid, WWID_SIZE) == 0 ||
+ if (strlen(pp1->wwid) == 0 ||
filter_path(conf, pp1) > 0) {
orphan_path(pp1, "wwid blacklisted");
continue;
ev_add_path (struct path * pp, struct vectors * vecs)
{
struct multipath * mpp;
- char empty_buff[WWID_SIZE] = {0};
char params[PARAMS_SIZE] = {0};
int retries = 3;
int start_waiter = 0;
/*
* need path UID to go any further
*/
- if (memcmp(empty_buff, pp->wwid, WWID_SIZE) == 0) {
+ if (strlen(pp->wwid) == 0) {
condlog(0, "%s: failed to get path uid", pp->dev);
goto fail; /* leave path added to pathvec */
}