>On 2010-10-05 22:29, Joel Rosdahl wrote:
>> On 2010-10-04 23:08, Wilson Snyder wrote:
>>> There are still extra calls (the #s); it would be best if
>>> the code assumed directories existed and just tried to read
>>> the manifest or .o.  Then the directory created only if a
>>> new file is added.  But, that does more violence then I'm
>>> willing to undertake at the moment.  Improvements to do that
>>> are welcome.
>> 
>> I agree that would be nice.
>
>I made a shot at this. Please try it out!

That looks excellent, thanks much!!

07:03:40.348196 
open("$CCACHE_DIR/b/b/2/e79def51ed21e5a9b37bfe22cfa24-104768.manifest", 
O_RDONLY) = 4
07:03:40.413383 
stat("$CCACHE_DIR/b/1/1/2abf359f714c47fef7b205bddb5df-2282081.o", {...}) = 0
07:03:40.415852 
open("$CCACHE_DIR/b/1/1/2abf359f714c47fef7b205bddb5df-2282081.o", O_RDONLY) = 4
07:03:40.447268 
utimes("$CCACHE_DIR/b/1/1/2abf359f714c47fef7b205bddb5df-2282081.o", NULL) = 0
07:03:40.447546 
utimes("$CCACHE_DIR/b/1/1/2abf359f714c47fef7b205bddb5df-2282081.stderr", NULL) 
= -1 ENOENT
07:03:40.447767 
open("$CCACHE_DIR/b/1/1/2abf359f714c47fef7b205bddb5df-2282081.stderr", 
O_RDONLY) = -1 ENOENT
07:03:40.447830 symlink("lion02:5444:1286535820", "$CCACHE_DIR/b/stats.lock") = 0
07:03:40.448036 open("$CCACHE_DIR/b/stats", O_RDONLY) = 4
07:03:40.448654 open("$CCACHE_DIR/b/stats.tmp.lion02.5444", 
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
07:03:40.449464 rename("$CCACHE_DIR/b/stats.tmp.lion02.5444", 
"$CCACHE_DIR/b/stats") = 0
07:03:40.449694 unlink("$CCACHE_DIR/b/stats.lock") = 0

_______________________________________________
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache

Reply via email to