Whamcloud - gitweb
Drop unnecessary warning message.
authorfanyong <fanyong>
Sun, 29 Oct 2006 11:53:51 +0000 (11:53 +0000)
committerfanyong <fanyong>
Sun, 29 Oct 2006 11:53:51 +0000 (11:53 +0000)
lustre/llite/xattr.c

index 0d0437f..013ff9d 100644 (file)
@@ -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;