Whamcloud - gitweb
Branch b1_6
[fs/lustre-release.git] / lustre / llite / xattr.c
index d123ba1..5834f02 100644 (file)
@@ -239,6 +239,8 @@ int ll_getxattr_common(struct inode *inode, const char *name,
                 posix_acl_release(acl);
                 RETURN(rc);
         }
+        if (xattr_type == XATTR_ACL_DEFAULT_T && !S_ISDIR(inode->i_mode))
+                RETURN(-ENODATA);
 #endif
 
 do_getxattr: