sanlock/sanlock-old_blkid.patch
James Fehlig 1dfd85810b - Update to sanlock 2.6
- Add fence_sanlock, a fence agent that uses /dev/watchdog to
    reset hosts (currently disabled)
  - Various bug fixes and improvements

OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=15
2012-12-03 22:15:47 +00:00

25 lines
577 B
Diff

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;
}