Whamcloud - gitweb
LU-812 llite: O_LOV_DELAY_CREATE conflicts with FMODE_NONOTIFY
authorLiu Xuezhao <xuezhao.liu@emc.com>
Sat, 25 Aug 2012 08:19:20 +0000 (16:19 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Sep 2012 18:24:38 +0000 (14:24 -0400)
commita7a4fd2fa117497764e62d8bf28f4a0a37263aa2
treef58ec722ca5f3543da9f135c8305999de12800a8
parentbb761e8f5e2b3c810431e9937746ec97c523d640
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>
lustre.spec.in
lustre/include/lustre/lustre_user.h
lustre/utils/Makefile.am