commit | 4d4e80f2b4260f2c8b37a8612ce655502a799f7a | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Mar 04 10:18:56 2008 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Mar 04 10:18:56 2008 +0100 |
tree | 4eb7d5762a63cdacc390b51add1e524bd84f760c | |
parent | 5f1348c709d91ffa54bde1a6a1beb53ecda613b7 [diff] |
Revamp file locking Get rid of the semaphore implementation, no need to carry both. Add different locking modes (exclusive and readwrite) to enable a wider range of testing. Also combine lockfile and lockfile_batch, the latter is now a postfix option to the former. So to enable readers-excluding-writers locking mode with a lock batch count of 4, you would write: lockfile=readwrite:4 instead. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>