diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-08 18:14:08 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:12 -0400 |
commit | a9a7bbab1469f0c427f90c309720c543e37ab110 (patch) | |
tree | ff7ad8b0ba1c3f17bc0c158d54f445971efccad3 /fs/bcachefs/acl.h | |
parent | 197763a70b6a530d959659abb917166a2f193520 (diff) |
bcachefs: bch2_acl_to_text()
We can now print out acls from bch2_xattr_to_text(), when the xattr
contains an acl.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/acl.h')
-rw-r--r-- | fs/bcachefs/acl.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/bcachefs/acl.h b/fs/bcachefs/acl.h index bb21d8d696a2..27e7eec0f278 100644 --- a/fs/bcachefs/acl.h +++ b/fs/bcachefs/acl.h @@ -7,8 +7,6 @@ struct bch_hash_info; struct bch_inode_info; struct posix_acl; -#ifdef CONFIG_BCACHEFS_POSIX_ACL - #define BCH_ACL_VERSION 0x0001 typedef struct { @@ -26,6 +24,10 @@ typedef struct { __le32 a_version; } bch_acl_header; +void bch2_acl_to_text(struct printbuf *, const void *, size_t); + +#ifdef CONFIG_BCACHEFS_POSIX_ACL + struct posix_acl *bch2_get_acl(struct mnt_idmap *, struct dentry *, int); int bch2_set_acl_trans(struct btree_trans *, subvol_inum, |