Lines Matching refs:ptname
161 static char *get_dm_name(const char *ptname) in get_dm_name() argument
167 snprintf(path, sizeof(path), "/sys/block/%s/dm/name", ptname); in get_dm_name()
184 static void probe_one(blkid_cache cache, const char *ptname, in probe_one() argument
211 if (!strncmp(ptname, "dm-", 3) && isdigit(ptname[3])) { in probe_one()
212 devname = get_dm_name(ptname); in probe_one()
229 sprintf(device, "%s/%s", *dir, ptname); in probe_one()
242 devname = get_dm_name(ptname); in probe_one()
259 if (is_dm_leaf(ptname)) in probe_one()
261 } else if (!strncmp(ptname, "md", 2)) in probe_one()
400 char ptname0[129], ptname1[129], *ptname = 0; in probe_all() local
432 ptname = ptnames[which]; in probe_all()
435 &ma, &mi, &sz, ptname) != 4) in probe_all()
439 DBG(DEBUG_DEVNAME, printf("read partition name %s\n", ptname)); in probe_all()
453 lens[which] = strlen(ptname); in probe_all()
456 if (isdigit(ptname[lens[which] - 1])) { in probe_all()
459 ptname, (unsigned int) devs[which])); in probe_all()
462 probe_one(cache, ptname, devs[which], 0, in probe_all()
472 if (lens[last] && !strncmp(ptnames[last], ptname, lens[last])) { in probe_all()
495 if (lens[last] && strncmp(ptnames[last], ptname, lens[last])) { in probe_all()
507 probe_one(cache, ptname, devs[which], 0, only_if_new); in probe_all()