summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2019-11-01 10:19:11 -0700
committerBrian Behlendorf <[email protected]>2019-11-01 10:19:11 -0700
commit156f74fc03d6187017a695c6c84a03f650f626b4 (patch)
treec8fb31d19f5a4330f2e2709ae9c78fac5218e99a /include
parentc4ae27c763acc2b29747e98a4318be9516c43e70 (diff)
Return an error code from zfs_acl_chmod_setattr
The FreeBSD implementation can fail, allow this function to fail and add the required error handling for Linux. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #9541
Diffstat (limited to 'include')
-rw-r--r--include/sys/zfs_acl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/zfs_acl.h b/include/sys/zfs_acl.h
index 747f4e57e..010686a91 100644
--- a/include/sys/zfs_acl.h
+++ b/include/sys/zfs_acl.h
@@ -220,7 +220,7 @@ int zfs_fastaccesschk_execute(struct znode *, cred_t *);
extern int zfs_zaccess_rwx(struct znode *, mode_t, int, cred_t *);
extern int zfs_zaccess_unix(struct znode *, mode_t, cred_t *);
extern int zfs_acl_access(struct znode *, int, cred_t *);
-void zfs_acl_chmod_setattr(struct znode *, zfs_acl_t **, uint64_t);
+int zfs_acl_chmod_setattr(struct znode *, zfs_acl_t **, uint64_t);
int zfs_zaccess_delete(struct znode *, struct znode *, cred_t *);
int zfs_zaccess_rename(struct znode *, struct znode *,
struct znode *, struct znode *, cred_t *cr);