summaryrefslogtreecommitdiff
path: root/sys/src/cmd/exportfs/io.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2021-08-18 14:44:29 +0000
committerOri Bernstein <ori@eigenstate.org>2021-08-18 14:44:29 +0000
commitb0ae37013cf58b5cdeb67bb0b182669be1540aa9 (patch)
tree9dcbe3fce3a452f97322d21cce0ac13549a8c3b4 /sys/src/cmd/exportfs/io.c
parentcfebf83947550f3ae730cef4a9b1ab6bf6b8d4f7 (diff)
exportfs: revert e524e8d65a7573c46d7beb49e77bfc2d55a5563d
It turns out that the '-f' flag was being used, and removing it broke things.
Diffstat (limited to 'sys/src/cmd/exportfs/io.c')
-rw-r--r--sys/src/cmd/exportfs/io.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/src/cmd/exportfs/io.c b/sys/src/cmd/exportfs/io.c
index 2309168a8..ad1d7154b 100644
--- a/sys/src/cmd/exportfs/io.c
+++ b/sys/src/cmd/exportfs/io.c
@@ -49,7 +49,7 @@ io(void)
if(convM2S(r->buf, n, &r->work) != n)
fatal("convM2S format error");
- DEBUG(2, "%F\n", &r->work);
+ DEBUG(DFD, "%F\n", &r->work);
(fcalls[r->work.type])(r);
}
}
@@ -69,7 +69,7 @@ reply(Fcall *r, Fcall *t, char *err)
else
t->type = r->type + 1;
- DEBUG(2, "\t%F\n", t);
+ DEBUG(DFD, "\t%F\n", t);
data = malloc(messagesize); /* not mallocz; no need to clear */
if(data == nil)
@@ -224,7 +224,7 @@ freefile(File *f)
while(--f->ref == 0){
freecnt++;
- DEBUG(2, "free %s\n", f->name);
+ DEBUG(DFD, "free %s\n", f->name);
/* delete from parent */
parent = f->parent;
if(parent->child == f)
@@ -250,7 +250,7 @@ file(File *parent, char *name)
char *path;
File *f;
- DEBUG(2, "\tfile: 0x%p %s name %s\n", parent, parent->name, name);
+ DEBUG(DFD, "\tfile: 0x%p %s name %s\n", parent, parent->name, name);
path = makepath(parent, name);
if(patternfile != nil && excludefile(path)){
@@ -429,17 +429,17 @@ uniqueqid(Dir *d)
}
path = d->qid.path;
while(qidexists(path)){
- DEBUG(2, "collision on %s\n", d->name);
+ DEBUG(DFD, "collision on %s\n", d->name);
/* collision: find a new one */
ncollision++;
path &= QIDPATH;
++newqid;
if(newqid >= (1<<16)){
- DEBUG(2, "collision wraparound\n");
+ DEBUG(DFD, "collision wraparound\n");
newqid = 1;
}
path |= newqid<<48;
- DEBUG(2, "assign qid %.16llux\n", path);
+ DEBUG(DFD, "assign qid %.16llux\n", path);
}
qidcnt++;
q = emallocz(sizeof(Qidtab));
@@ -472,7 +472,7 @@ fatal(char *s, ...)
postnote(PNPROC, m->pid, "kill");
if(s != nil) {
- DEBUG(2, "%s\n", buf);
+ DEBUG(DFD, "%s\n", buf);
sysfatal("%s", buf); /* caution: buf could contain '%' */
} else
exits(nil);