[OpenAFS] Re: experience of SQLite on AFS

Brandon S. Allbery KF8NH allbery@ece.cmu.edu
Sat, 1 May 2010 02:25:01 -0400


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-308-182642123
Content-Type: text/plain; charset=US-ASCII; format=flowed
Content-Transfer-Encoding: 7bit

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] allbery@kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH



--Apple-Mail-308-182642123
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)

iEYEARECAAYFAkvbyUoACgkQIn7hlCsL25V3mQCfe/F9ryHtUGQv1QTjqKmjH5aZ
ppEAnjdPckSHGCix1NsgwMmhyFNRmJBR
=nYC/
-----END PGP SIGNATURE-----

--Apple-Mail-308-182642123--