Skip to content

Commit f36e447

Browse files
author
Sage Weil
committed
ceph: add exists_cb to vxattr struct
Allow for a callback to dynamically determine if a vxattr exists for the given inode. Signed-off-by: Sage Weil <sage@inktank.com> Reviewed-by: Sam Lang <sam.lang@inktank.com>
1 parent d421acb commit f36e447

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/ceph/xattr.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ struct ceph_vxattr {
3030
size_t (*getxattr_cb)(struct ceph_inode_info *ci, char *val,
3131
size_t size);
3232
bool readonly, hidden;
33+
bool (*exists_cb)(struct ceph_inode_info *ci);
3334
};
3435

3536
/* directories */
@@ -92,6 +93,7 @@ static size_t ceph_vxattrcb_dir_rctime(struct ceph_inode_info *ci, char *val,
9293
.getxattr_cb = ceph_vxattrcb_ ## _type ## _ ## _name, \
9394
.readonly = true, \
9495
.hidden = false, \
96+
.exists_cb = NULL, \
9597
}
9698

9799
static struct ceph_vxattr ceph_dir_vxattrs[] = {

0 commit comments

Comments
 (0)