From: fanyong Date: Sun, 29 Oct 2006 11:53:51 +0000 (+0000) Subject: Drop unnecessary warning message. X-Git-Tag: v1_8_0_110~486^2~313 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=591433960b2fc696b4d413459b91e9b2eb4634ea;p=fs%2Flustre-release.git Drop unnecessary warning message. --- 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;