News for hackers. Stuff that matters.
Re:How to change symlinks atomically (2005) by josefbacik on Sunday August 21, 2016 @04:16AM (#12329966)
Symlinks are implemented as files in Linux, we write the path into the file that you are pointing to, so there most certainly is data that must be fsync()'ed if you want it to be persistent.

Edit: If you want to fsync the symlink you can do an open with nofollow iirc (on my phone so I can't check) so you get the actual symlink and not its target.

Re:How to change symlinks atomically (2005) by geocar on Sunday August 21, 2016 @04:20AM (#12329975)
Yes, but Linux recognises the need to sync the file object when you fsync() the directory that it is in. There is no way to fsync() the symlink directly.