Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f36e4472 authored by Sage Weil's avatar Sage Weil
Browse files

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: default avatarSage Weil <sage@inktank.com>
Reviewed-by: default avatarSam Lang <sam.lang@inktank.com>
parent d421acb1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ struct ceph_vxattr {
	size_t (*getxattr_cb)(struct ceph_inode_info *ci, char *val,
			      size_t size);
	bool readonly, hidden;
	bool (*exists_cb)(struct ceph_inode_info *ci);
};

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

static struct ceph_vxattr ceph_dir_vxattrs[] = {