summaryrefslogtreecommitdiffstats
path: root/src/parti386.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-12-02 21:21:18 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-12-02 21:21:18 +0100
commit920b5e4ff3c58982b1531638fad6d0bbdfacf770 (patch)
treefc230f7efa66c76c9cd8db5fe7605a4dae5ff416 /src/parti386.c
parent50d67341a5893bb76021cd693bf29e608faa815f (diff)
Add some synchronisation points, should help to deal with unexpected program termination
Diffstat (limited to 'src/parti386.c')
-rw-r--r--src/parti386.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parti386.c b/src/parti386.c
index 088ba52..cb82117 100644
--- a/src/parti386.c
+++ b/src/parti386.c
@@ -626,6 +626,7 @@ int write_part_i386(disk_t *disk_car, const list_part_t *list_part, const int ro
int res=0;
res+=write_mbr_i386(disk_car,list_part,ro,verbose);
res+=write_all_log_i386(disk_car,list_part,ro,verbose,align);
+ disk_car->sync(disk_car);
return res;
}
@@ -890,6 +891,7 @@ static int write_MBR_code_i386(disk_t *disk_car)
{
return 1;
}
+ disk_car->sync(disk_car);
return 0;
}
@@ -1559,6 +1561,7 @@ static int erase_list_part_i386(disk_t *disk_car)
{
return 1;
}
+ disk_car->sync(disk_car);
return 0;
}