Lines Matching refs:mnum
251 * mnum - minor number of metadevice
256 compose_path(mdsetname_t *sp, int mnum, char *pathname, int pathlen)
262 if (MD_MIN2SET(mnum) != sp->setno) {
264 mnum, sp->setno);
268 if ((np = metamnumname(&sp, mnum, 0, &status)) == NULL) {
277 get_mdname(sp, mnum));
352 mir_state->mnum = meta_getminor(devnp->dev);
355 " for %s: %s"), get_mdname(sp, mir_state->mnum),
362 get_mdname(sp, mir_state->mnum));
394 ownpar->d.mnum = meta_getminor(devnp->dev);
398 "for %s: %s"), get_mdname(sp, ownpar->d.mnum),
406 get_mdname(sp, ownpar->d.mnum));
427 sp->setno, ownpar->d.mnum,
433 get_mdname(sp, ownpar->d.mnum));
441 get_mdname(sp, ownpar->d.mnum));
461 ownpar->d.mnum, ownpar->d.owner,
465 get_mdname(sp, ownpar->d.mnum));
489 int mnum, fd;
492 mnum = meta_getminor(devnp->dev);
506 "for %s: %s"), get_mdname(sp, mnum),
510 if (compose_path(sp, mnum, &name[0],
530 int mnum, fd;
535 mnum = meta_getminor(devnp->dev);
557 "for %s: %s"), get_mdname(sp, mnum),
561 if (compose_path(sp, mnum, &name[0],