summaryrefslogtreecommitdiffstats
path: root/src/partgpt.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/partgpt.c
parent50d67341a5893bb76021cd693bf29e608faa815f (diff)
Add some synchronisation points, should help to deal with unexpected program termination
Diffstat (limited to 'src/partgpt.c')
-rw-r--r--src/partgpt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/partgpt.c b/src/partgpt.c
index 09d5f77..7919a75 100644
--- a/src/partgpt.c
+++ b/src/partgpt.c
@@ -511,6 +511,7 @@ static int write_part_gpt(disk_t *disk_car, const list_part_t *list_part, const
free(gpt);
free(gpt_entries);
write_part_gpt_i386(disk_car, list_part);
+ disk_car->sync(disk_car);
return 0;
}