2012-01-18 22:10:06 +00:00
|
|
|
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;
|
2012-12-03 22:15:47 +00:00
|
|
|
@@ -62,7 +63,10 @@ static int set_disk_properties(struct sy
|
2012-01-18 22:10:06 +00:00
|
|
|
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;
|
|
|
|
}
|