locktest: consolidate do_lock and do_unlock, and add ability to F_GETLK
authorJeff Layton <jlayton@poochiereds.net>
Tue, 13 May 2014 05:30:23 +0000 (15:30 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 13 May 2014 05:30:23 +0000 (15:30 +1000)
commitfe7056d6d319b64e132aebc4429a094a7da513be
tree471229770a13ed383e3614ed14e1cf7d6b69fb6d
parentece564a7356bee5d0cbb19fbf7fd42e5cebcaa62
locktest: consolidate do_lock and do_unlock, and add ability to F_GETLK

Eliminate do_unlock as it's just cut-and-paste of do_lock (down to the
bad stderr fprintf). Fix the debug messages to print the cmd and type,
and add the ability to do a WRTEST and RDTEST.

Signed-off-by: Jeff Layton <jlayton@poochiereds.net>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
src/locktest.c