From 591433960b2fc696b4d413459b91e9b2eb4634ea Mon Sep 17 00:00:00 2001 From: fanyong Date: Sun, 29 Oct 2006 11:53:51 +0000 Subject: [PATCH] Drop unnecessary warning message. --- lustre/llite/xattr.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/lustre/llite/xattr.c b/lustre/llite/xattr.c index 0d0437f..013ff9d 100644 --- a/lustre/llite/xattr.c +++ b/lustre/llite/xattr.c @@ -88,17 +88,11 @@ int get_xattr_type(const char *name) static int xattr_type_filter(struct ll_sb_info *sbi, int xattr_type) { - if ((xattr_type == XATTR_ACL_ACCESS_T) || - (xattr_type == XATTR_ACL_DEFAULT_T)) { - if (sbi->ll_flags & LL_SBI_RMT_CLIENT) { - CWARN("For remote client, " - "please use \"lfs getfacl\" / \"lfs setfacl\""); - return -EOPNOTSUPP; - } else if (!(sbi->ll_flags & LL_SBI_ACL)) { - CWARN("Server not support ACL!\n"); - return -EOPNOTSUPP; - } - } + if (((xattr_type == XATTR_ACL_ACCESS_T) || + (xattr_type == XATTR_ACL_DEFAULT_T)) && + (!(sbi->ll_flags & LL_SBI_ACL) || + (sbi->ll_flags & LL_SBI_RMT_CLIENT))) + return -EOPNOTSUPP; if (xattr_type == XATTR_USER_T && !(sbi->ll_flags & LL_SBI_USER_XATTR)) return -EOPNOTSUPP; -- 1.8.3.1