ILD

file mtime update granularity
2025-12-10
众所周知,mtime是文件的最后修改时间,Time of last modification在我们的一个项目中,使用mtime判断一个文件是否修改。缓存上一次的mtime,结果出现了文件修改了,但是mtime没变的情况。出现了bug。经过研究发现,两次极短的写入,mtime不会变化。写一个demo验

Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.