[PATCH] Add end_fsync option
diff --git a/fio-ini.c b/fio-ini.c
index 109bc14..a8ed6d5 100644
--- a/fio-ini.c
+++ b/fio-ini.c
@@ -726,6 +726,7 @@
 			}
 			if (!check_int(p, "fsync", &td->fsync_blocks)) {
 				fgetpos(f, &off);
+				td->end_fsync = 1;
 				continue;
 			}
 			if (!check_int(p, "startdelay", &td->start_delay)) {
@@ -760,6 +761,10 @@
 				fgetpos(f, &off);
 				continue;
 			}
+			if (!check_int(p, "end_fsync", &td->end_fsync)) {
+				fgetpos(f, &off);
+				continue;
+			}
 			if (!check_int(p, "loops", &td->loops)) {
 				fgetpos(f, &off);
 				continue;