summaryrefslogtreecommitdiff
path: root/liblogfs/wstat.c
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2011-12-15 16:40:16 +0000
committerforsyth <forsyth@vitanuova.com>2011-12-15 16:40:16 +0000
commit28942ead413418b56c5be78e8c4c400881fba72e (patch)
treecd646dce007974acc02e535a2c9ff800ada2b684 /liblogfs/wstat.c
parent1eacf117f57c983da30e88f232fab9db7b1e300d (diff)
20111215-1640
Diffstat (limited to 'liblogfs/wstat.c')
-rw-r--r--liblogfs/wstat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/liblogfs/wstat.c b/liblogfs/wstat.c
index 85f112da..dae7008d 100644
--- a/liblogfs/wstat.c
+++ b/liblogfs/wstat.c
@@ -1,4 +1,4 @@
-#include "lib9.h"
+#include "logfsos.h"
#include "logfs.h"
#include "fcall.h"
#include "local.h"
@@ -26,11 +26,11 @@ logfsserverwstat(LogfsServer *server, u32int fid, uchar *stat, ushort nstat)
if(server->trace > 1)
print("logfsserverwstat(%ud, %ud)\n", fid, nstat);
if(nstat < 49)
- return Emsgsize;
+ return Eshortstat;
p = stat;
len = GBIT16(p); p += BIT16SZ;
if(len + BIT16SZ != nstat)
- return Emsgsize;
+ return Eshortstat;
mep = p + len;
p += BIT16SZ + BIT32SZ; /* skip type and dev */
qid.type = *p++;
@@ -42,9 +42,9 @@ logfsserverwstat(LogfsServer *server, u32int fid, uchar *stat, ushort nstat)
length = GBIT64(p); p+= BIT64SZ;
if(!logfsgn(&p, mep, &name) || !logfsgn(&p, mep, &uname)
|| !logfsgn(&p, mep, &gname) || !logfsgn(&p, mep, &muname))
- return Emsgsize;
+ return Eshortstat;
if(p != mep)
- return Emsgsize;
+ return Eshortstat;
qiddonttouch = qid.type == (uchar)~0 && qid.vers == ~0 && qid.path == ~(uvlong)0;
permdonttouch = perm == ~0;
mtimedonttouch = mtime == ~0;