DragonFly commits List (threaded) for 2006-05
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/sys/kern kern_lockf.c
dillon 2006/05/11 12:50:29 PDT
DragonFly src repository
Modified files:
sys/kern kern_lockf.c
Log:
Fix three bugs in the last commit and document special cases. Tighten
up the count calculation. The code now passes the /usr/src/test/lockf
system test.
* F_UNLCK wasn't being handled properly in certain cases, resulting in a
panic.
* The 'next' pointer was not bring properly adjusted when removing an
element (brange) other then the current element in the scan, resulting
in a posix lock error.
* The first and last matches were not always being properly merged with
the created range, resulting in a positive count panic.
Reported-by: Stefan Krueger <skrueger@xxxxxxxxxxxxxxxx>
Revision Changes Path
1.29 +59 -15 src/sys/kern/kern_lockf.c
http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_lockf.c.diff?r1=1.28&r2=1.29&f=u
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]