Lines Matching refs:search_file
1589 int search_file;
1598 if ((search_file = open_disk(devpath, O_RDWR | O_NDELAY)) < 0) {
1604 if (fstat(search_file, &stbuf) == -1 || !S_ISCHR(stbuf.st_mode)) {
1605 (void) close(search_file);
1614 if (ioctl(search_file, DKIOCINFO, &dkinfo) < 0) {
1615 (void) close(search_file);
1623 ret = ioctl(search_file, DKIOCREMOVABLE, &isremovable);
1625 (void) close(search_file);
1630 if (ioctl(search_file, DKIOCGMEDIAINFO, &mediainfo) == -1) {
1651 if (ioctl(search_file, DKIOCGMEDIAINFO,
1664 (void) close(search_file);
1685 (void) close(search_file);
1718 (void) close(search_file);
1735 i = scsi_rdwr(DIR_READ, search_file, (diskaddr_t)0,
1768 if (is_efi_type(search_file)) {
1825 (void) close(search_file);
1873 (void) close(search_file);
1885 status = read_label(search_file, &search_label);
1887 status = read_efi_label(search_file, &efi_info);
1903 if (auto_sense(search_file, 0, &search_label) != NULL) {
1915 efi_disk = auto_efi_sense(search_file, &efi_info);
1937 (void) close(search_file);
1943 (void) close(search_file);
1947 (void) close(search_file);
2003 (void) close(search_file);
2042 (void) get_disk_name(search_file, disk_name);
2084 (void) close(search_file);