修改過程開始(打開並寫入文件)或修改過程結束(關閉文件)時是否更新了mtime?是修改過程的開始時間還是結束時間
我在link找到了一些東西。
See man 2 stat for the semantics of mtime and ctime. In practice, the mtime and ctime will be updated in the in-memory copy of the inode and flushed out to disk asynchronously.
我覺得這個inode可能被刷新一次以上。如果這是真的。 這是否意味着修改過程中mtime可能會不止一次更新?
它用每個''''更新。 – 2013-03-03 07:00:14
@ n.m。真?你能給我一些參考嗎?謝謝 – louxiu 2013-03-03 07:10:59
只需編寫一個簡單的程序,每秒鐘執行一次寫入和刷新。一個bash腳本會做。觀看結果。 – 2013-03-03 07:15:01