[OpenAFS] Re: experience of SQLite on AFS
Brandon S. Allbery KF8NH
Sat, 1 May 2010 02:25:01 -0400
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=US-ASCII; format=flowed
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.
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] firstname.lastname@example.org
system administrator [openafs,heimdal,too many hats] email@example.com
electrical and computer engineering, carnegie mellon university KF8NH
content-type: application/pgp-signature; x-mac-type=70674453;
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
-----END PGP SIGNATURE-----