From 00b6d7a4604e759eb3c92b3ecea608d6fe024b81 Mon Sep 17 00:00:00 2001 From: srs5694 Date: Sun, 26 Jun 2011 22:40:06 -0400 Subject: 0.7.2 release, includes new Linux type code & true GUID generation in Windows --- diskio-unix.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'diskio-unix.cc') diff --git a/diskio-unix.cc b/diskio-unix.cc index 327a498..03fc3c8 100644 --- a/diskio-unix.cc +++ b/diskio-unix.cc @@ -230,7 +230,8 @@ void DiskIO::DiskSync(void) { platformFound++; #endif #ifdef __linux__ - sleep(2); + sleep(1); // Theoretically unnecessary, but ioctl() fails sometimes if omitted.... + fsync(fd); i = ioctl(fd, BLKRRPART); if (i) cout << "Warning: The kernel is still using the old partition table.\n" -- cgit v1.2.1