From: Simon Ruderich Date: Tue, 1 Jun 2021 06:18:48 +0000 (+0200) Subject: remote: go fmt and rewrap comment X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=9f7f26593d35a34e71da584278345732216d84d3;p=safcm%2Fsafcm.git remote: go fmt and rewrap comment --- 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