From 1ecc5fa2df0131fccce20f2cb045aec9a9d77614 Mon Sep 17 00:00:00 2001 From: Shi Weihua Date: Tue, 18 May 2010 00:51:54 +0000 Subject: [PATCH] --- yaml --- r: 200363 b: refs/heads/master c: 731e3d1b4348a96d53de6c084774424dedc64a3b h: refs/heads/master i: 200361: bca41dbb3ef3a79659f3548539d0da999ee5fe7b 200359: d6960b3764526d2677508f04731c46c8e15c9b06 v: v3 --- [refs] | 2 +- trunk/fs/btrfs/acl.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index e7f2d015d77e..7a73ebea69bc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2f26afba46f0ebf155cf9be746496a0304a5b7cf +refs/heads/master: 731e3d1b4348a96d53de6c084774424dedc64a3b diff --git a/trunk/fs/btrfs/acl.c b/trunk/fs/btrfs/acl.c index 6b4d0cca5c7f..a372985b3a9a 100644 --- a/trunk/fs/btrfs/acl.c +++ b/trunk/fs/btrfs/acl.c @@ -163,6 +163,9 @@ static int btrfs_xattr_acl_set(struct dentry *dentry, const char *name, if (!is_owner_or_cap(dentry->d_inode)) return -EPERM; + if (!IS_POSIXACL(dentry->d_inode)) + return -EOPNOTSUPP; + if (value) { acl = posix_acl_from_xattr(value, size); if (acl == NULL) {