summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2010-06-15 05:15:32 -0700
committerKent Overstreet <kent.overstreet@gmail.com>2010-06-15 05:15:32 -0700
commit41ad07857ebb6da88d3777ab1e350a671e7fcb8c (patch)
tree15884e37a79d0ff50e290a02b8faf75bb8a3a85b
parent018e032f203b668e00e23ed94b9927dfb1564e66 (diff)
sync
-rw-r--r--make-bcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/make-bcache.c b/make-bcache.c
index 7bf10b0..2defbaf 100644
--- a/make-bcache.c
+++ b/make-bcache.c
@@ -143,6 +143,7 @@ int main(int argc, char **argv)
if (pwrite(fd, &sb, sizeof(sb), 4096) != sizeof(sb))
goto err;
+ fsync(fd);
exit(EXIT_SUCCESS);
err:
perror("write error\n");