Searched refs:disk_fd (Results 1 - 3 of 3) sorted by relevance

/illumos-gate/usr/src/boot/sys/boot/userboot/test/
H A Dtest.c53 int disk_fd = -1; variable
248 if (unit != 0 || disk_fd == -1)
250 n = pread(disk_fd, dst, size, offset);
262 if (unit != 0 || disk_fd == -1)
269 if (fstat(disk_fd, &sb) == 0)
463 disk_fd = open(disk_image, O_RDONLY);
464 if (disk_fd < 0)
474 func(&cb, NULL, USERBOOT_VERSION_3, disk_fd >= 0);
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.h43 int disk_fd; member in struct:_device_data
H A Dinstallgrub.c642 device->disk_fd = -1;
665 if (read(device->disk_fd, device->boot_sector, SECTOR_SIZE)
672 if (efi_alloc_and_read(device->disk_fd, &vtoc) >= 0) {
709 if (device->disk_fd != -1)
710 (void) close(device->disk_fd);
714 device->disk_fd = -1;
739 if (efi_alloc_and_read(device->disk_fd, &vtoc) < 0)
914 device->disk_fd = open(device->path, O_RDONLY);
916 device->disk_fd = open(device->path, O_RDWR);
931 if (device->disk_fd
[all...]

Completed in 47 milliseconds