Slide 4
Slide 4 text
syncはデータ同期の完了を待つか
● syncコマンドの仕様
○ man 1 syncより抜粋
○ Persistence guarantees vary per system. See the system calls below for more details.
● syncコマンドの中で呼び出すsync()関数の仕様
○ POSIX: 同期の完了を保証しない
■ man 3p syncより抜粋:
■ The writing, although scheduled, is not necessarily complete upon return from sync().
○ Linux: 同期の完了を保証しない
■ man 2 syncより抜粋:
■ may return before the actual writing is done.
● ただし、実装上はsync()終了前に同期が完了している
○ man 2 syncより抜粋:
○ However Linux waits for I/O completions,
4