Changes for fsync implementation