Project

General

Profile

Actions

Documentation #24641

closed

Document behaviour of fsync-after-close

Added by Niklas Hambuechen almost 6 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Tags:
Backport:
nautilus,mimic
Reviewed:
Affected Versions:
Labels (FS):
Pull request ID:

Description

The following should be documented:

Does close()/re-open()/fsync() provide the same durability and visibility-to-other-clients guarantees as fsync()/close() does?

POSIX leaves that open; for many local file systems the answer is "yes" (but modulo bugs; even the very recent Linux v4.17 had some issues with that).

The coreutils "sync" utility now also accepts single files as arguments, and does open()+fsync(); the answer to the above question would determine wither this will work reliably on CephFS.

For more details see: https://stackoverflow.com/questions/37288453/calling-fsync2-after-close2

It would be great to know the answer for CephFS, and have it documented.


Related issues 2 (0 open2 closed)

Copied to CephFS - Backport #40130: mimic: Document behaviour of fsync-after-closeResolvedNathan CutlerActions
Copied to CephFS - Backport #40131: nautilus: Document behaviour of fsync-after-closeResolvedNathan CutlerActions
Actions

Also available in: Atom PDF