Open GoogleCodeExporter opened 8 years ago
我用inotifywait監測了一下整個行為,
上傳一個document.psd文件測試:
inotifywait -mr --format '%e %f' ./
Setting up watches. Beware: since -r was given, this may take a while!
Watches established.
OPEN,ISDIR
CLOSE_NOWRITE,CLOSE,ISDIR
CREATE document.psd.filepart
OPEN document.psd.filepart
MODIFY document.psd.filepart
中間省略了大量的MODIFY
MODIFY document.psd.filepart
CLOSE_WRITE,CLOSE document.psd.filepart
CREATE document.psd
DELETE document.psd.filepart
ATTRIB document.psd
OPEN,ISDIR
CLOSE_NOWRITE,CLOSE,ISDIR
OPEN,ISDIR
CLOSE_NOWRITE,CLOSE,ISDIR
OPEN,ISDIR
CLOSE_NOWRITE,CLOSE,ISDIR
看來document.psd沒有CLOSE_WRITE操作於是沒有捕捉到,難道打開ser
sync ATTRIB的監控嗎?
Original comment by pahud...@gmail.com
on 7 Dec 2010 at 7:01
打開了ATTRIB監控,可以成功捕捉了,不過不知道會不會影響��
�能了
Original comment by pahud...@gmail.com
on 7 Dec 2010 at 7:09
Original issue reported on code.google.com by
pahud...@gmail.com
on 7 Dec 2010 at 6:36