Index: src/diskio.c =================================================================== --- src/diskio.c.orig +++ src/diskio.c @@ -33,6 +33,7 @@ static int set_disk_properties(struct sync_disk *disk) { +#ifdef BLKID_VERSION blkid_probe probe; blkid_topology topo; uint32_t sector_size, ss_logical, ss_physical; @@ -62,7 +63,10 @@ static int set_disk_properties(struct sy ss_physical, disk->path); return -1; } - +#else + /* HACK, should really read this from sysfs */ + uint32_t sector_size = 512; +#endif disk->sector_size = sector_size; return 0; }