LU-812 llite: O_LOV_DELAY_CREATE conflicts with FMODE_NONOTIFY
Kernel 2.6.36 introduces FMODE_NONOTIFY and defines it as 0x1000000
(commit
12ed2e36c98aec6c41559222e311f4aa15d254b6), this causes the
confliction with O_LOV_DELAY_CREATE which is now defined as octal
0100000000.
This confliction causes kernel remove this flag in build_open_flags,
then "lfs setstripe" a new file will fail with -EEXIST(stripe
already set).
This patch changes O_LOV_DELAY_CREATE to
0120000000(0x1400000)
to make it works for new kernel and compatible with old version
statically linked binary.
Another change is starting to build dynamic linked version of
liblustreapi.so.
Signed-off-by: Liu Xuezhao <xuezhao.liu@emc.com>
Change-Id: I643d3734cfdc2f45099fc6be663a370c2dcc8ea3
Reviewed-on: http://review.whamcloud.com/3779
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Iurii Golovach <Iurii_Golovach@xyratex.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>