Date: Mon, 23 Aug 1999 09:53:10 +0930 From: Greg Lehey <grog@lemis.com> To: FreeBSD Hackers <hackers@freebsd.org>, FreeBSD Committers <cvs-committers@freebsd.org> Subject: Mandatory locking? Message-ID: <19990823095310.A83273@freebie.lemis.com>
next in thread | raw e-mail | index | archive | help
I've just found a need for mandatory locking in Vinum, and I'm wondering how to implement it. If I understand things correctly, our fcntl locking doesn't perform mandatory locking, though System V does if you set the file permissions appropriately. Questions: 1. Do we have some form of mandatory locking? If so, what is it? 2. Would it make sense to implement System V's fcntl semantics? They're rather tacky: you set the setgid bit and reset the group exec bit of the file permissions. 3. Alternatively (or additionally), would it make sense to have an additional fcntl function which performs mandatory locking? I think that it's probably a good idea to implement (3), and also to do (2), possibly subject to a sysctl knob. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990823095310.A83273>