Whamcloud - gitweb
LU-5013 llite: add LL_LEASE_{RD,WR,UN}LCK 33/10233/2
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 6 May 2014 14:16:49 +0000 (09:16 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 28 Jul 2014 03:03:06 +0000 (03:03 +0000)
commit9fa072a08fe0951257db5af53169b54f45f2f719
tree1f71885b051fb7ad0ed435401f98383a8ee0f651
parent7629b7f51568a8cb2bedf2460cbfb1f9446769ca
LU-5013 llite: add LL_LEASE_{RD,WR,UN}LCK

Define new constants LL_LEASE_{RD,WR,UN}LCK for use as the argument to
and return value from the LL_IOC_{GET,SET}_LEASE ioctls. As arguments,
these contants replace the use of F_{RD,WR,UN}LCK from fcntl.h. As
return values they replace the use of FMODE_{READ,WRITE} which are
internal to the Linux kernel source and not under the control of the
Lustre ioctl interface.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I2643d7c548f84dd91cd2855894bf22f94fd20e98
Reviewed-on: http://review.whamcloud.com/10233
Tested-by: Jenkins
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_user.h
lustre/llite/file.c
lustre/tests/multiop.c