From ae9ad4db69ea04b9bbfb929a390e75f6a506aa79 Mon Sep 17 00:00:00 2001 From: Liu Xuezhao Date: Sat, 25 Aug 2012 16:19:20 +0800 Subject: [PATCH] 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 Change-Id: I643d3734cfdc2f45099fc6be663a370c2dcc8ea3 Reviewed-on: http://review.whamcloud.com/3779 Tested-by: Hudson Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Iurii Golovach Reviewed-by: James Simmons --- lustre.spec.in | 1 + lustre/include/lustre/lustre_user.h | 8 +++++++- lustre/utils/Makefile.am | 20 +++++++++++++++++++- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/lustre.spec.in b/lustre.spec.in index f3568bf..afbc3c2 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -225,6 +225,7 @@ cat >lustre.files <