On Sat, Jul 08, 2023 at 11:02:05AM +0800, Zorro Lang wrote: > > Thanks Ted, good to know that! Maybe we can have a "_mv" in common/rc does > "sync $1 && mv $1 $2". Perhaps, although I can't think of any other place in xfstests were we are actively (and repeatedly) renaming one file on top of another one, or rewriting a file in place. There are certainly places where we use "sed -i" to rewrite a file in place, and it does do write the file to a new file, and then renames it to the original file's name (yay!), although it doesn't do an fsync before the rename (boo!). That's arguably a bug report we should send to the maintainer of the sed package. - Ted