Use the dmstate path field to guess if the path is used bythe DM
driver. This assumes disassemble_*() have been called before the guess.
break;
}
- if (pp->claimed)
+ if (pp->claimed && pp->dmstate == PSTATE_UNDEF)
c += sprintf(c, "[claimed]");
return (c - line);
/*
* don't bother if a constituant path is claimed
+ * (not by the device mapper driver)
*/
vector_foreach_slot (mpp->paths, pp, i) {
- if (pp->claimed) {
+ if (pp->claimed && pp->dmstate == PSTATE_UNDEF) {
condlog(3, "%s claimed", pp->dev);
return 1;
}