Re: [PATCH] putting old-style lock handling back into 2.2.10

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Mon, 5 Jul 1999 17:28:00 +0200


david parsons wrote:
> I noticed (when it made one of my test machines blow up and die) that
> 2.2 doesn't support the old-style F_EXLCK locking anymore. This little
> patch (against 2.2.10) puts that locking back, so that people using a.out
> gdbm programs won't have them blow up on them.

> + case F_EXLCK :
> + fl->fl_type = F_WRLCK;
> + /*fl->fl_flags |= F_BROKEN;*/

Does the F_BROKEN comment imply that the F_EXLCK behaviour is not quite
correct with your patch?

In which case, surely it is better for the kernel to return an error
code than to implement the wrong kind of locking?

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/