From caeb90c1ff26b6a54952a416623fb0e20dcd492e Mon Sep 17 00:00:00 2001 From: Tiger Yang Date: Wed, 17 Dec 2008 10:22:56 +0800 Subject: [PATCH] --- yaml --- r: 125906 b: refs/heads/master c: 38d59ef61c11cafc50a66787bdbbe80d58bbd9c0 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ocfs2/xattr.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 04c955b292e8..6b72d6b18c8e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 008aafaf0b4aa0476da483e3c6e3edbe951811ff +refs/heads/master: 38d59ef61c11cafc50a66787bdbbe80d58bbd9c0 diff --git a/trunk/fs/ocfs2/xattr.c b/trunk/fs/ocfs2/xattr.c index 095b0bb6e590..e1d638af6ac3 100644 --- a/trunk/fs/ocfs2/xattr.c +++ b/trunk/fs/ocfs2/xattr.c @@ -5324,6 +5324,9 @@ int ocfs2_init_security_get(struct inode *inode, struct inode *dir, struct ocfs2_security_xattr_info *si) { + /* check whether ocfs2 support feature xattr */ + if (!ocfs2_supports_xattr(OCFS2_SB(dir->i_sb))) + return -EOPNOTSUPP; return security_inode_init_security(inode, dir, &si->name, &si->value, &si->value_len); }