Lines Matching refs:mounted
277 if (p->mounted == NULL) in pm_get_mount()
281 return p->mounted[id]; in pm_get_mount()
293 if (p->mounted == NULL) { in pm_set_mount()
294 p->mounted = calloc(p->parts->num_part, sizeof(char*)); in pm_set_mount()
295 if (p->mounted == NULL) in pm_set_mount()
298 free(p->mounted[id]); in pm_set_mount()
299 p->mounted[id] = strdup(path); in pm_set_mount()
300 return p->mounted[id] != NULL; in pm_set_mount()
2286 if (pm_i->mounted != NULL) { in pm_destroy_one()
2288 free(pm_i->mounted[i]); in pm_destroy_one()
2493 if (strlen(pm_i->bsdlabel[i].mounted) > 0) {
2495 strlcpy(mnts[num_devs].dev, pm_i->bsdlabel[i].mounted, MOUNTLEN);
2540 if (strlen(pm_cur->bsdlabel[part_num].mounted) > 0) in pm_mount()
2549 strlen(pm_cur->bsdlabel[part_num].mounted) < 1) in pm_mount()
2555 pm_cur->bsdlabel[part_num].mounted[0] = '\0'; in pm_mount()
2557 strlcpy(pm_cur->bsdlabel[part_num].mounted, buf, MOUNTLEN); in pm_mount()
2579 free(pm_cur->mounted[id]); in pm_umount()
2580 pm_cur->mounted[id] = NULL; in pm_umount()
2874 if (pm_cur->mounted != NULL && in pm_menufmt()
2875 pm_cur->mounted[part_num] != NULL && in pm_menufmt()
2876 pm_cur->mounted[part_num][0] != 0) in pm_menufmt()