Fix ZPL miswrite of default POSIX ACL

Commit 4967a3e introduced a typo that caused the ZPL to store the
intended default ACL as an access ACL. Due to caching this problem
may not become visible until the filesystem is remounted or the inode
is evicted from the cache. Fix the typo.

Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Closes #4520
This commit is contained in:
Ned Bass 2016-04-15 18:55:03 +00:00
parent 31dbe4b404
commit 6400ae85ee
1 changed files with 1 additions and 1 deletions

View File

@ -975,7 +975,7 @@ zpl_set_acl(struct inode *ip, int type, struct posix_acl *acl)
break; break;
case ACL_TYPE_DEFAULT: case ACL_TYPE_DEFAULT:
name = XATTR_NAME_POSIX_ACL_ACCESS; name = XATTR_NAME_POSIX_ACL_DEFAULT;
if (!S_ISDIR(ip->i_mode)) if (!S_ISDIR(ip->i_mode))
return (acl ? -EACCES : 0); return (acl ? -EACCES : 0);
break; break;