Lines Matching defs:search_file
1597 int search_file;
1606 if ((search_file = open_disk(devpath, O_RDWR | O_NDELAY)) < 0) {
1612 if (fstat(search_file, &stbuf) == -1 || !S_ISCHR(stbuf.st_mode)) {
1613 (void) close(search_file);
1622 if (ioctl(search_file, DKIOCINFO, &dkinfo) < 0) {
1623 (void) close(search_file);
1631 ret = ioctl(search_file, DKIOCREMOVABLE, &isremovable);
1633 (void) close(search_file);
1638 if (ioctl(search_file, DKIOCGMEDIAINFO, &mediainfo) == -1) {
1659 if (ioctl(search_file, DKIOCGMEDIAINFO,
1672 (void) close(search_file);
1693 (void) close(search_file);
1726 (void) close(search_file);
1743 i = scsi_rdwr(DIR_READ, search_file, (diskaddr_t)0,
1776 if (is_efi_type(search_file)) {
1833 (void) close(search_file);
1881 (void) close(search_file);
1893 status = read_label(search_file, &search_label);
1895 status = read_efi_label(search_file, &efi_info, search_disk);
1911 if (auto_sense(search_file, 0, &search_label) != NULL) {
1923 efi_disk = auto_efi_sense(search_file, &efi_info);
1945 (void) close(search_file);
1951 (void) close(search_file);
1955 (void) close(search_file);
2023 (void) close(search_file);
2066 (void) get_disk_name(search_file, disk_name,
2110 (void) close(search_file);