ch08: ☆rename semantics
328ページ、2パラの最後
Interestingly, rename is the one POSIX file operation that should have an atomic update to multiple user-visible metadata structures to provide ideal semantics. POSIX does not require said semantics and most implementations, including FreeBSD, cannot provide it.
最初の文と2番目の分は矛盾してるような気がするのだが、どういう話の流れなんだろう? 何事もなければ要求されるのだが、わざわざ要求しないことが仕様に書かれているということなのだろうか。
ここの話題は、rename システムコールの途中で障害が発生すると名前が2つ残ってしまう可能性があるということ。
最近のコメント