Lines Matching refs:fid
18 #include "fid.h"
20 static struct posix_acl *v9fs_fid_get_acl(struct p9_fid *fid, const char *name)
26 size = v9fs_fid_xattr_get(fid, name, NULL, 0);
36 size = v9fs_fid_xattr_get(fid, name, value, size);
49 struct p9_fid *fid;
52 fid = v9fs_fid_lookup(dentry);
53 if (IS_ERR(fid))
54 return ERR_CAST(fid);
56 acl = v9fs_fid_get_acl(fid, name);
57 p9_fid_put(fid);
61 static struct posix_acl *__v9fs_get_acl(struct p9_fid *fid, const char *name)
66 acl = v9fs_fid_get_acl(fid, name);
78 int v9fs_get_acl(struct inode *inode, struct p9_fid *fid)
92 dacl = __v9fs_get_acl(fid, XATTR_NAME_POSIX_ACL_DEFAULT);
93 pacl = __v9fs_get_acl(fid, XATTR_NAME_POSIX_ACL_ACCESS);
248 static int v9fs_set_acl(struct p9_fid *fid, int type, struct posix_acl *acl)
276 retval = v9fs_fid_xattr_set(fid, name, buffer, size, 0);
282 int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid)
295 retval = v9fs_set_acl(fid, ACL_TYPE_ACCESS, acl);
301 int v9fs_set_create_acl(struct inode *inode, struct p9_fid *fid,
306 v9fs_set_acl(fid, ACL_TYPE_DEFAULT, dacl);
307 v9fs_set_acl(fid, ACL_TYPE_ACCESS, acl);