Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> rename() doesn't cause a fsync of the parent directory?

It does not.

At best it will schedule a journal commit asynchronously (I recall that ext4 maintainer complained about adding this "workaround for buggy user code" on lkml). If you want to receive an IO error when renaming fails, make sure to call fsync() yourself.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: