Home | History | Annotate | Download | only in blkid

Lines Matching full:ptname

157  * provides the real DM device names in /sys/block/<ptname>/dm/name
159 static char *get_dm_name(const char *ptname)
165 snprintf(path, sizeof(path), "/sys/block/%s/dm/name", ptname);
182 static void probe_one(blkid_cache cache, const char *ptname,
209 if (!strncmp(ptname, "dm-", 3) && isdigit(ptname[3])) {
210 devname = get_dm_name(ptname);
218 * Take a quick look at /dev/ptname for the device number. We check
227 sprintf(device, "%s/%s", *dir, ptname);
240 devname = get_dm_name(ptname);
257 if (is_dm_leaf(ptname))
259 } else if (!strncmp(ptname, "md", 2))
398 char ptname0[128], ptname1[128], *ptname = 0;
430 ptname = ptnames[which];
433 &ma, &mi, &sz, ptname) != 4)
437 DBG(DEBUG_DEVNAME, printf("read partition name %s\n", ptname));
451 lens[which] = strlen(ptname);
454 if (isdigit(ptname[lens[which] - 1])) {
457 ptname, (unsigned int) devs[which]));
460 probe_one(cache, ptname, devs[which], 0,
470 if (lens[last] && !strncmp(ptnames[last], ptname, lens[last])) {
493 if (lens[last] && strncmp(ptnames[last], ptname, lens[last])) {
505 probe_one(cache, ptname, devs[which], 0, only_if_new);