diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-21 01:02:32 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-21 01:02:32 +0100 |
commit | 1281b234e893b2306dbfef442144b75873f2365c (patch) | |
tree | dc31d901bfe7a3f7f26fa60ab0fb998419e0f2f4 /sys/src/cmd/exportfs/exportfs.c | |
parent | 9c40e15ba8ae000f73c23d89143d6c44b75220fd (diff) |
exportfs: reverting previous changes
getting strange tag mismatches on some machines. needs
to be debugged. until then, reverting the change.
Diffstat (limited to 'sys/src/cmd/exportfs/exportfs.c')
-rw-r--r-- | sys/src/cmd/exportfs/exportfs.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/src/cmd/exportfs/exportfs.c b/sys/src/cmd/exportfs/exportfs.c index 628975dd7..c16220dee 100644 --- a/sys/src/cmd/exportfs/exportfs.c +++ b/sys/src/cmd/exportfs/exportfs.c @@ -460,8 +460,8 @@ reply(Fcall *r, Fcall *t, char *err) fatal(Enomem); n = convS2M(t, data, messagesize); if(write(netfd, data, n)!=n){ - /* not fatal, might have got a note due to flush */ - fprint(2, "exportfs: short write in reply: %r\n"); + syslog(0, "exportfs", "short write: %r"); + fatal("mount write"); } free(data); } @@ -570,6 +570,8 @@ getsbuf(void) unlock(&sbufalloc); w = emallocz(sizeof(*w) + messagesize); } + w->pid = 0; + w->canint = 0; w->flushtag = NOTAG; return w; } @@ -577,6 +579,8 @@ getsbuf(void) void putsbuf(Fsrpc *w) { + w->pid = 0; + w->canint = 0; w->flushtag = NOTAG; lock(&sbufalloc); w->next = sbufalloc.free; |