Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Linux ext3 ファイルシステムで、ファイルの読み取り中に同じファイル (ファイル記述子) で mv() が呼び出されるとどうなりますか? これは実際には試験問題であり、次のようなことしか言えません。
そこにいるOSの人たちが私を助けてくれれば幸いです:D
Linux の名前変更のマニュアル ページ:
これでほとんどの詳細が説明されます。
If one or more processes have the file open when the last link is removed, the link shall be removed before rename() returns, but the removal of the file contents shall be postponed until all references to the file are closed.