Add fsync on/off support

Signed-off-by: GuneetAtwal <harjinder767@gmail.com>