Home
last modified time | relevance | path

Searched refs:disk_fd (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.c642 device->disk_fd = -1; in init_device()
665 if (read(device->disk_fd, device->boot_sector, SECTOR_SIZE) in init_device()
672 if (efi_alloc_and_read(device->disk_fd, &vtoc) >= 0) { in init_device()
709 if (device->disk_fd != -1) in cleanup_device()
710 (void) close(device->disk_fd); in cleanup_device()
714 device->disk_fd = -1; in cleanup_device()
739 if (efi_alloc_and_read(device->disk_fd, &vtoc) < 0) in get_start_sector()
914 device->disk_fd = open(device->path, O_RDONLY); in get_disk_fd()
916 device->disk_fd = open(device->path, O_RDWR); in get_disk_fd()
931 if (device->disk_fd == -1) { in get_disk_fd()
[all …]
H A Dinstallgrub.h43 int disk_fd; member