summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-block/partimage/files/partimage-0.6.4-fflush-before-re-read-partition-table.patch')
-rw-r--r--sys-block/partimage/files/partimage-0.6.4-fflush-before-re-read-partition-table.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys-block/partimage/files/partimage-0.6.4-fflush-before-re-read-partition-table.patch b/sys-block/partimage/files/partimage-0.6.4-fflush-before-re-read-partition-table.patch
new file mode 100644
index 000000000000..f60a5bc27489
--- /dev/null
+++ b/sys-block/partimage/files/partimage-0.6.4-fflush-before-re-read-partition-table.patch
@@ -0,0 +1,11 @@
+--- partimage-0.6.4/src/client/misc.cpp.pix 2004-02-05 21:19:00.000000000 +0100
++++ partimage-0.6.4/src/client/misc.cpp 2005-01-21 11:43:19.439462188 +0100
+@@ -294,6 +294,8 @@
+ nRes = fwrite(mbrOriginal[dwOriginalMbrNb].cData+MBR_SIZE_BOOT, MBR_SIZE_TABLE+2, 1, fDevice); // table + 0xAA55
+ }
+
++ fflush(fDevice);
++
+ // re-read partition table
+ if (ioctl(fileno(fDevice), BLKRRPART))
+ {