On Thu, Jan 30, 2020 at 09:24:54PM -0800, Darrick J. Wong wrote: > Or the grumpy maintainer who will have to digest all of this. > > Can we update the documentation to admit that many people will probably > want to use this (and rename) as atomic swap operations? > > "The filesystem will commit the data and metadata of all files and > directories involved in the link operation to stable storage before the > call returns." That sounds horrible, because it is so different from any other metadata operation. Maybe requiring fsync to stabilize metadata ops wasn't the best idea ever, but having some varinats of linkat behave from others is just stupid. We've been beating the fact that you shall fsync into peoples heads for years. No reason to make an exception for an obscure operation now.