diff options
author | rvb <rvb@FreeBSD.org> | 1998-11-11 20:32:20 +0000 |
---|---|---|
committer | rvb <rvb@FreeBSD.org> | 1998-11-11 20:32:20 +0000 |
commit | db28f40beee243ea6c2a3d88927156f63fb38080 (patch) | |
tree | 5bc009d1aa22b55b919520268f7dea232359bbc1 /sys/coda/coda_venus.c | |
parent | ba58877007d91e681de82ac5e39beeef438e2931 (diff) | |
download | FreeBSD-src-db28f40beee243ea6c2a3d88927156f63fb38080.zip FreeBSD-src-db28f40beee243ea6c2a3d88927156f63fb38080.tar.gz |
coda_lookup now passes up an extra flag. But old veni will
be ok; new veni will check /dev/cfs0 to make sure that a new
kernel is running.
Also, a bug in vc_nb_close iff CODA_SIGNAL's were seen has been
fixed.
Diffstat (limited to 'sys/coda/coda_venus.c')
-rw-r--r-- | sys/coda/coda_venus.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/coda/coda_venus.c b/sys/coda/coda_venus.c index 4f81ca1..96228f1 100644 --- a/sys/coda/coda_venus.c +++ b/sys/coda/coda_venus.c @@ -27,7 +27,7 @@ * Mellon the rights to redistribute these changes without encumbrance. * * @(#) src/sys/cfs/coda_venus.c,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $ - * $Id: coda_venus.c,v 1.4 1998/09/13 13:57:59 rvb Exp $ + * $Id: coda_venus.c,v 1.5 1998/10/28 19:33:50 rvb Exp $ * */ @@ -159,6 +159,8 @@ } while (0) +int coda_kernel_version = CODA_KERNEL_VERSION; + int venus_root(void *mdp, struct ucred *cred, struct proc *p, @@ -408,7 +410,17 @@ venus_lookup(void *mdp, ViceFid *fid, INIT_IN(&inp->ih, CODA_LOOKUP, cred, p); inp->VFid = *fid; + /* NOTE: + * Between version 1 and version 2 we have added an extra flag field + * to this structure. But because the string was at the end and because + * of the wierd way we represent strings by having the slot point to + * where the string characters are in the "heap", we can just slip the + * flag parameter in after the string slot pointer and veni that don't + * know better won't see this new flag field ... + * Otherwise we'd need two different venus_lookup functions. + */ inp->name = Isize; + inp->flags = CLU_CASE_SENSITIVE; /* doesn't really matter for BSD */ STRCPY(name, nm, len); /* increments Isize */ error = coda_call(mdp, Isize, &Osize, (char *)inp); |