From: Alexander Zarochentsev Date: Sat, 11 Feb 2012 07:19:31 +0000 (+0400) Subject: LU-1073 llite: no CERROR on unknown flock type X-Git-Tag: 2.1.56~35 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=68570176f72515dc10875dcacd7dbdc76dff3eaa;ds=sidebyside LU-1073 llite: no CERROR on unknown flock type Xyratex-bug-id: MRP-215 Signed-off-by: Alexander Zarochentsev Change-Id: I435c3282bc87750f6ebd19e618a1ee8e229834d2 Reviewed-on: http://review.whamcloud.com/2109 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/llite/file.c b/lustre/llite/file.c index f797851..b4c0028 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -2078,8 +2078,9 @@ int ll_file_flock(struct file *file, int cmd, struct file_lock *file_lock) einfo.ei_mode = LCK_PW; break; default: - CERROR("unknown fcntl lock type: %d\n", file_lock->fl_type); - RETURN (-EINVAL); + CDEBUG(D_INFO, "Unknown fcntl lock type: %d\n", + file_lock->fl_type); + RETURN (-ENOTSUPP); } switch (cmd) {