#endif
-#ifdef BLKIOOPT
static uint64_t blkid_get_io_size(int fd)
{
- static const int ioctls[] = { BLKIOOPT, BLKIOMIN, BLKBSZGET };
+ static const int ioctls[] = {
+#ifdef BLKIOOPT
+ BLKIOOPT,
+#endif
+#ifdef BLKIOMIN
+ BLKIOMIN,
+#endif
+#ifdef BLKBSZGET
+ BLKBSZGET,
+#endif
+ };
unsigned int s;
size_t i;
int r;
return DEFAULT_SECTOR_SIZE;
}
-#endif
/**
* blkid_probe_set_device:
}
# endif
-#ifdef BLKIOOPT
if (S_ISBLK(sb.st_mode) && !is_floppy && !blkid_probe_is_tiny(pr))
pr->io_size = blkid_get_io_size(fd);
-#endif
DBG(LOWPROBE, ul_debug("ready for low-probing, offset=%"PRIu64", size=%"PRIu64", zonesize=%"PRIu64", iosize=%"PRIu64,
pr->off, pr->size, pr->zone_size, pr->io_size));