From 9f7f26593d35a34e71da584278345732216d84d3 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 1 Jun 2021 08:18:48 +0200 Subject: [PATCH] remote: go fmt and rewrap comment --- remote/sync/files.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/remote/sync/files.go b/remote/sync/files.go index 24c59ce..937f0e1 100644 --- a/remote/sync/files.go +++ b/remote/sync/files.go @@ -458,11 +458,12 @@ reopen: } // To guarantee durability fsync must be called on a parent directory // after adding, renaming or removing files therein. -// -// Calling sync on the files itself is not enough according to POSIX; man 2 -// fsync: "Calling fsync() does not necessarily ensure that the entry in the -// directory containing the file has also reached disk. For that an explicit -// fsync() on a file descriptor for the directory is also needed." + // + // Calling sync on the files itself is not enough according to POSIX; + // man 2 fsync: "Calling fsync() does not necessarily ensure that the + // entry in the directory containing the file has also reached disk. + // For that an explicit fsync() on a file descriptor for the directory + // is also needed." err = unix.Fsync(parentFd) if err != nil { return err -- 2.43.2