Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2002 03:20:23 +0000
From:      "Clark C. Evans" <cce@clarkevans.com>
To:        freebsd-hackers@freebsd.org
Subject:   cd9660 and fcntl (shared locks)
Message-ID:  <20021119032023.GA54980@doublegemini.com>

next in thread | raw e-mail | index | archive | help
When I open a file mounted via cd9660 as O_RDONLY and then flock(fd,LOCK_SH)
it returns invalid argument; is there a reason why the cd-rom file 
system can't just return success here, make flock a no-op that is always
successful?  There are many cases where you want general code to use 
shared locks on files opened for reading to make sure that it doesn't
get changed during the read.  This general code should be useable on
file systems mounted read only.

Thoughts?  Is there an easy patch?

Clark

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?20021119032023.GA54980>