On Sat, May 1, 2010 at 2:25 AM, Brandon S. Allbery KF8NH <allb...@ece.cmu.edu> wrote: > On Apr 30, 2010, at 18:07 , Andrew Deason wrote: >> >> After some offline discussion, this appears to probably be the case. >> sqlite opens the db file O_RDONLY, and attempts to acquire an fcntl >> F_WRLCK on it, to which it gets EROFS back. Trying to acquire a >> writelock on a file opened readonly doesn't make a lot of sense to me; >> can someone tell me if POSIX specifies that that should fail? > > It does, yes (inherited from SVID). > >> In any case, I think technically fcntl should be returning EBADF here, >> not EROFS (I think this is our fault, but I haven't checked yet). I > > EACCES is the POSIX-specified errno. >
I looked at this on Friday and failed to send mail; I was loosely-connected all weekend. Presumably what's happening is the fileserver is returning VREADONLY (VGetVnode with WRITE_LOCK, from CheckVnode from GetVolumePackage), which the client maps to EROFS. Any new RPC might want to return other errors, but that's out of scope for now. So, now that I have real net, the fix is in gerrit as 1895 -- Derrick _______________________________________________ OpenAFS-info mailing list OpenAFS-info@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-info