[OpenAFS-devel] bad call to fakestat in flock

Neulinger, Nathan nneul@umr.edu
Tue, 9 Apr 2002 10:27:03 -0500


Turns out I did get to them:

../afs/afs_vnop_flock.c:497: warning: suggest parentheses around
assignment used as truth value
../afs/afs_vnop_flock.c:499: warning: passing arg 1 of
`afs_EvalFakeStat' from incompatible pointer type
../afs/afs_vnop_flock.c:499: warning: passing arg 2 of
`afs_EvalFakeStat' from incompatible pointer type
../afs/afs_vnop_flock.c:527: warning: implicit declaration of function
`HandleGetLock'

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@umr.edu
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216


> -----Original Message-----
> From: Neulinger, Nathan=20
> Sent: Tuesday, April 09, 2002 10:23 AM
> To: Pavel Semerad; openafs-devel@openafs.org
> Subject: RE: [OpenAFS-devel] bad call to fakestat in flock
>=20
>=20
> Can't answer the fakestat issue, but prototypes are in progress on the
> openafs-prototypes-1_3_x branch in cvs. I don't believe I=20
> have gotten to
> anything with FakeStat yet.
>=20
> -- Nathan
>=20
> ------------------------------------------------------------
> Nathan Neulinger                       EMail:  nneul@umr.edu
> University of Missouri - Rolla         Phone: (573) 341-4841
> Computing Services                       Fax: (573) 341-4216
>=20
>=20
> > -----Original Message-----
> > From: Pavel Semerad [mailto:semerad@ss1000.ms.mff.cuni.cz]=20
> > Sent: Tuesday, April 09, 2002 10:18 AM
> > To: openafs-devel@openafs.org
> > Subject: [OpenAFS-devel] bad call to fakestat in flock
> >=20
> >=20
> >=20
> > Hi,
> > afs_EvalFakeStat is called with wrong order of arguments (why=20
> > there are no
> > prototypes ?) in afs_vnop_flock.c:
> >=20
> > --- src/afs/VNOPS/afs_vnop_flock.c Apr 2002 09:53:22 -0000   =20
> >   1.1.1.14
> > +++ src/afs/VNOPS/afs_vnop_flock.c Apr 2002 15:10:06 -0000      1.17
> > @@ -508,7 +515,7 @@ struct AFS_UCRED *acred; {
> >      AFS_STATCNT(afs_lockctl);
> >      if (code =3D afs_InitReq(&treq, acred)) return code;
> >      afs_InitFakeStat(&fakestate);
> > -    code =3D afs_EvalFakeStat(&fakestate, &avc, &treq);
> > +    code =3D afs_EvalFakeStat(&avc, &fakestate, &treq);
> >      if (code) {
> >         afs_PutFakeStat(&fakestate);
> >         return code;
> >=20
> >=20
> > Pavel Semerad
> >=20
> > _______________________________________________
> > OpenAFS-devel mailing list
> > OpenAFS-devel@openafs.org
> > https://lists.openafs.org/mailman/listinfo/openafs-devel
> >=20
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
>=20