mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-18 10:34:24 +08:00
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>
This commit is contained in:
parent
d421acb1ad
commit
f36e447296
@ -30,6 +30,7 @@ struct ceph_vxattr {
|
|||||||
size_t (*getxattr_cb)(struct ceph_inode_info *ci, char *val,
|
size_t (*getxattr_cb)(struct ceph_inode_info *ci, char *val,
|
||||||
size_t size);
|
size_t size);
|
||||||
bool readonly, hidden;
|
bool readonly, hidden;
|
||||||
|
bool (*exists_cb)(struct ceph_inode_info *ci);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* directories */
|
/* 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, \
|
.getxattr_cb = ceph_vxattrcb_ ## _type ## _ ## _name, \
|
||||||
.readonly = true, \
|
.readonly = true, \
|
||||||
.hidden = false, \
|
.hidden = false, \
|
||||||
|
.exists_cb = NULL, \
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct ceph_vxattr ceph_dir_vxattrs[] = {
|
static struct ceph_vxattr ceph_dir_vxattrs[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user