changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > ventivac / appl/cmd/vacfs.b

revision 109: c4ccc5d9f9fe
parent 108: 35094d0d4a2b
child 110: 9d2a54eb24ce
     1.1--- a/appl/cmd/vacfs.b	Thu Aug 16 13:37:25 2007 +0200
     1.2+++ b/appl/cmd/vacfs.b	Thu Aug 16 14:55:38 2007 +0200
     1.3@@ -182,14 +182,16 @@
     1.4 
     1.5 		Clunk =>
     1.6 			f := srv.getfid(m.fid);
     1.7-			if(f != nil) {
     1.8+			if(0 && f != nil) {
     1.9 				pick e := elemget(int f.path) {
    1.10 				Dir =>
    1.11 					if(e.pqid != Qfakeroot && --e.nused <= 0)
    1.12 						elemdel(e);
    1.13+					say(sprint("clunk dir qid=%d nused=%d", e.qid, e.nused));
    1.14 				File =>
    1.15 					if(--e.nused <= 0)
    1.16 						elemdel(e);
    1.17+					say(sprint("clunk file qid=%d nused=%d", e.qid, e.nused));
    1.18 				}
    1.19 			}
    1.20 			srv.default(m);
    1.21@@ -239,6 +241,7 @@
    1.22 			}
    1.23 			ed.nused--;
    1.24 			ne.nused++;
    1.25+			if(dflag) say(sprint("walk from (qid=%d nused=%d) to (qid=%d nused=%d)", ed.qid, ed.nused, ne.qid, ne.nused));
    1.26 			n.reply <-= (ne.stat(), nil);
    1.27 
    1.28 		Readdir =>