Lines Matching refs:ptname
159 static char *get_dm_name(const char *ptname) in get_dm_name() argument
165 snprintf(path, sizeof(path), "/sys/block/%s/dm/name", ptname); in get_dm_name()
182 static void probe_one(blkid_cache cache, const char *ptname, in probe_one() argument
209 if (!strncmp(ptname, "dm-", 3) && isdigit(ptname[3])) { in probe_one()
210 devname = get_dm_name(ptname); in probe_one()
227 sprintf(device, "%s/%s", *dir, ptname); in probe_one()
240 devname = get_dm_name(ptname); in probe_one()
257 if (is_dm_leaf(ptname)) in probe_one()
259 } else if (!strncmp(ptname, "md", 2)) in probe_one()
398 char ptname0[128], ptname1[128], *ptname = 0; in probe_all() local
430 ptname = ptnames[which]; in probe_all()
433 &ma, &mi, &sz, ptname) != 4) in probe_all()
437 DBG(DEBUG_DEVNAME, printf("read partition name %s\n", ptname)); in probe_all()
451 lens[which] = strlen(ptname); in probe_all()
454 if (isdigit(ptname[lens[which] - 1])) { in probe_all()
457 ptname, (unsigned int) devs[which])); in probe_all()
460 probe_one(cache, ptname, devs[which], 0, in probe_all()
470 if (lens[last] && !strncmp(ptnames[last], ptname, lens[last])) { in probe_all()
493 if (lens[last] && strncmp(ptnames[last], ptname, lens[last])) { in probe_all()
505 probe_one(cache, ptname, devs[which], 0, only_if_new); in probe_all()