ref: f250e5b88697e0f985b931adbd83d7a0c35c6770
parent: cbc23b5f1215171e983f093fb58930fd1de0241c
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Mon Jul 23 14:57:33 EDT 2012
cwfs: fix noatime dumps
--- a/sys/src/cmd/cwfs/cw.c
+++ b/sys/src/cmd/cwfs/cw.c
@@ -1435,7 +1435,7 @@
if(na){ if(shouldstop){- if(cw->falsehits < 10)
+ if(cw->allflag && cw->falsehits < 10)
fprint(2, "shouldstop %lld %lld t=%s %s\n",
(Wideoff)addr, (Wideoff)na,
tagnames[tag], cw->name);
@@ -1491,7 +1491,7 @@
if(chatty)
fprint(2, "cwroot %lld", (Wideoff)orba);
cons.noage = 1;
- cw->all = cw->allflag;
+ cw->all = cw->allflag | noatime;
rba = cwrecur(cw, orba, Tsuper, 0, QPROOT);
if(rba == 0)
rba = orba;
@@ -1563,6 +1563,7 @@
*/
found2:
accessdir(p1, d1, FREAD, 0);
+ p1->flags |= Bmod; /* noatime */
putbuf(pr);
pr = p1;
dr = d1;
--
⑨