mpp->alias);
return;
}
-
+
if (pathcount(mpp, PATH_UP) == 0) {
mpp->action = ACT_NOTHING;
condlog(3, "%s: set ACT_NOTHING (no usable path)",
if (!mpp || !mpp->pg)
return 0;
-
+
vector_foreach_slot (mpp->pg, pgp, i) {
if (!pgp->paths)
continue;
if (strlen(pp->dev))
return 0; /* alive */
}
-
+
return 1; /* dead */
}
remove_map(mpp, vecs, 0);
continue;
}
-
+
for (i = k + 1; i < VECTOR_SIZE(pathvec); i++) {
pp2 = VECTOR_SLOT(pathvec, i);
if (strcmp(pp1->wwid, pp2->wwid))
continue;
-
+
if (!pp2->size)
continue;
minio = mp->minio;
p = mp->params;
freechar = sizeof(mp->params);
-
+
shift = snprintf(p, freechar, "%s %s %i %i",
mp->features, mp->hwhandler,
VECTOR_SIZE(mp->pg), mp->bestpg);
}
p += shift;
freechar -= shift;
-
+
vector_foreach_slot (mp->pg, pgp, i) {
pgp = VECTOR_SLOT(mp->pg, i);
shift = snprintf(p, freechar, " %s %i 1", mp->selector,
goto out;
num_pg_args = atoi(word);
-
+
if (merge_words(&mpp->selector, word, 1)) {
FREE(word);
goto out1;
* paths
*/
pgp = alloc_pathgroup();
-
+
if (!pgp)
goto out;