Lines Matching refs:device_name
164 (void) strncpy(temp->device_name, devstr, in libfdisk_init()
165 sizeof (temp->device_name)); in libfdisk_init()
168 if (stat(temp->device_name, &sbuf) != 0) { in libfdisk_init()
171 (void) snprintf(temp->device_name, sizeof (temp->device_name), in libfdisk_init()
174 if (stat(temp->device_name, &sbuf) != 0) { in libfdisk_init()
181 if (strrchr(temp->device_name, 'p') == NULL) { in libfdisk_init()
182 (void) strcat(temp->device_name, "p0"); in libfdisk_init()
185 if (stat(temp->device_name, &sbuf) != 0) { in libfdisk_init()
203 if ((temp->dev_fd = open(temp->device_name, O_RDWR, 0666)) < 0) { in libfdisk_init()
1123 if (strstr(epp->device_name, DEFAULT_PATH_PREFIX) == NULL) { in fdisk_mounted_logical_drives()
1131 canonp = epp->device_name + strlen(DEFAULT_PATH_PREFIX); in fdisk_mounted_logical_drives()