Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 25 of 86) sorted by relevance

1234

/fs/nfsd/
Dnfs2acl.c37 svc_fh *fh; in nfsacld_proc_getacl() local
40 dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_getacl()
42 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl()
43 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl()
47 inode = d_inode(fh->fh_dentry); in nfsacld_proc_getacl()
53 nfserr = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl()
97 svc_fh *fh; in nfsacld_proc_setacl() local
101 dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_setacl()
103 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl()
104 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl()
[all …]
Dnfs3proc.c51 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
53 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
54 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
59 nfserr = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr()
75 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
77 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
78 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
94 SVCFH_fmt(&argp->fh), in nfsd3_proc_lookup()
98 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup()
99 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_lookup()
[all …]
Dnfsfh.c154 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry() local
159 int data_left = fh->fh_size/4; in nfsd_set_fh_dentry()
165 if (rqstp->rq_vers == 4 && fh->fh_size == 0) in nfsd_set_fh_dentry()
168 if (fh->fh_version == 1) { in nfsd_set_fh_dentry()
173 if (fh->fh_auth_type != 0) in nfsd_set_fh_dentry()
175 len = key_len(fh->fh_fsid_type) / 4; in nfsd_set_fh_dentry()
178 if (fh->fh_fsid_type == FSID_MAJOR_MINOR) { in nfsd_set_fh_dentry()
181 fh->fh_fsid_type = FSID_ENCODE_DEV; in nfsd_set_fh_dentry()
188 fh->fh_fsid[0] = new_encode_dev(MKDEV(ntohl((__force __be32)fh->fh_fsid[0]), in nfsd_set_fh_dentry()
189 ntohl((__force __be32)fh->fh_fsid[1]))); in nfsd_set_fh_dentry()
[all …]
Dxdr3.h14 struct svc_fh fh; member
21 struct svc_fh fh; member
27 struct svc_fh fh; member
32 struct svc_fh fh; member
39 svc_fh fh; member
48 struct svc_fh fh; member
57 struct svc_fh fh; member
75 struct svc_fh fh; member
97 struct svc_fh fh; member
106 struct svc_fh fh; member
[all …]
Dnfs3acl.c36 svc_fh *fh; in nfsd3_proc_getacl() local
39 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl()
40 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl()
44 inode = d_inode(fh->fh_dentry); in nfsd3_proc_getacl()
90 svc_fh *fh; in nfsd3_proc_setacl() local
94 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl()
95 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl()
99 inode = d_inode(fh->fh_dentry); in nfsd3_proc_setacl()
101 error = fh_want_write(fh); in nfsd3_proc_setacl()
105 fh_lock(fh); in nfsd3_proc_setacl()
[all …]
Dnfsproc.c30 return fh_getattr(&resp->fh, &resp->stat); in nfsd_return_attrs()
36 return fh_getattr(&resp->fh, &resp->stat); in nfsd_return_dirop()
48 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr()
50 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
51 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr()
70 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
73 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
135 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup()
137 fh_init(&resp->fh, NFS_FHSIZE); in nfsd_proc_lookup()
138 nfserr = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup()
[all …]
Dxdr.h12 struct svc_fh fh; member
16 struct svc_fh fh; member
21 struct svc_fh fh; member
27 struct svc_fh fh; member
34 svc_fh fh; member
41 struct svc_fh fh; member
57 struct svc_fh fh; member
79 struct svc_fh fh; member
86 struct svc_fh fh; member
91 struct svc_fh fh; member
[all …]
Dvfs.h121 static inline int fh_want_write(struct svc_fh *fh) in fh_want_write() argument
125 if (fh->fh_want_write) in fh_want_write()
127 ret = mnt_want_write(fh->fh_export->ex_path.mnt); in fh_want_write()
129 fh->fh_want_write = true; in fh_want_write()
133 static inline void fh_drop_write(struct svc_fh *fh) in fh_drop_write() argument
135 if (fh->fh_want_write) { in fh_drop_write()
136 fh->fh_want_write = false; in fh_drop_write()
137 mnt_drop_write(fh->fh_export->ex_path.mnt); in fh_drop_write()
141 static inline __be32 fh_getattr(struct svc_fh *fh, struct kstat *stat) in fh_getattr() argument
143 struct path p = {.mnt = fh->fh_export->ex_path.mnt, in fh_getattr()
[all …]
Dlockd.c31 struct svc_fh fh; in nlm_fopen() local
34 fh_init(&fh,0); in nlm_fopen()
35 fh.fh_handle.fh_size = f->size; in nlm_fopen()
36 memcpy((char*)&fh.fh_handle.fh_base, f->data, f->size); in nlm_fopen()
37 fh.fh_export = NULL; in nlm_fopen()
39 nfserr = nfsd_open(rqstp, &fh, S_IFREG, NFSD_MAY_LOCK, filp); in nlm_fopen()
40 fh_put(&fh); in nlm_fopen()
Dnfs3xdr.c316 p = decode_fh(p, &args->fh); in nfs3svc_decode_fhandle()
327 p = decode_fh(p, &args->fh); in nfs3svc_decode_sattrargs()
346 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_diropargs()
358 p = decode_fh(p, &args->fh); in nfs3svc_decode_accessargs()
374 p = decode_fh(p, &args->fh); in nfs3svc_decode_readargs()
405 p = decode_fh(p, &args->fh); in nfs3svc_decode_writeargs()
453 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_createargs()
478 if (!(p = decode_fh(p, &args->fh)) || in nfs3svc_decode_mkdirargs()
516 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_mknodargs()
553 p = decode_fh(p, &args->fh); in nfs3svc_decode_readlinkargs()
[all …]
Dnfsxdr.c206 p = decode_fh(p, &args->fh); in nfssvc_decode_fhandle()
217 p = decode_fh(p, &args->fh); in nfssvc_decode_sattrargs()
230 if (!(p = decode_fh(p, &args->fh)) in nfssvc_decode_diropargs()
243 p = decode_fh(p, &args->fh); in nfssvc_decode_readargs()
276 p = decode_fh(p, &args->fh); in nfssvc_decode_writeargs()
320 if ( !(p = decode_fh(p, &args->fh)) in nfssvc_decode_createargs()
347 p = decode_fh(p, &args->fh); in nfssvc_decode_readlinkargs()
412 p = decode_fh(p, &args->fh); in nfssvc_decode_readdirargs()
437 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfssvc_encode_attrstat()
446 p = encode_fh(p, &resp->fh); in nfssvc_encode_diropres()
[all …]
/fs/overlayfs/
Dnamei.c87 int ovl_check_fh_len(struct ovl_fh *fh, int fh_len) in ovl_check_fh_len() argument
89 if (fh_len < sizeof(struct ovl_fh) || fh_len < fh->len) in ovl_check_fh_len()
92 if (fh->magic != OVL_FH_MAGIC) in ovl_check_fh_len()
96 if (fh->version > OVL_FH_VERSION || fh->flags & ~OVL_FH_FLAG_ALL) in ovl_check_fh_len()
100 if (!(fh->flags & OVL_FH_FLAG_ANY_ENDIAN) && in ovl_check_fh_len()
101 (fh->flags & OVL_FH_FLAG_BIG_ENDIAN) != OVL_FH_FLAG_CPU_ENDIAN) in ovl_check_fh_len()
111 struct ovl_fh *fh = NULL; in ovl_get_fh() local
123 fh = kzalloc(res, GFP_KERNEL); in ovl_get_fh()
124 if (!fh) in ovl_get_fh()
127 res = ovl_do_vfs_getxattr(dentry, name, fh, res); in ovl_get_fh()
[all …]
Dexport.c216 struct ovl_fh *fh = NULL; in ovl_d_to_fh() local
228 fh = ovl_encode_real_fh(enc_lower ? ovl_dentry_lower(dentry) : in ovl_d_to_fh()
230 if (IS_ERR(fh)) in ovl_d_to_fh()
231 return PTR_ERR(fh); in ovl_d_to_fh()
234 if (fh->len > buflen) in ovl_d_to_fh()
237 memcpy(buf, (char *)fh, fh->len); in ovl_d_to_fh()
238 err = fh->len; in ovl_d_to_fh()
241 kfree(fh); in ovl_d_to_fh()
246 dentry, err, buflen, fh ? (int)fh->len : 0, in ovl_d_to_fh()
247 fh ? fh->type : 0); in ovl_d_to_fh()
[all …]
Dcopy_up.c229 struct ovl_fh *fh; in ovl_encode_real_fh() local
248 fh = ERR_PTR(-EIO); in ovl_encode_real_fh()
256 fh = kmalloc(fh_len, GFP_KERNEL); in ovl_encode_real_fh()
257 if (!fh) { in ovl_encode_real_fh()
258 fh = ERR_PTR(-ENOMEM); in ovl_encode_real_fh()
262 fh->version = OVL_FH_VERSION; in ovl_encode_real_fh()
263 fh->magic = OVL_FH_MAGIC; in ovl_encode_real_fh()
264 fh->type = fh_type; in ovl_encode_real_fh()
265 fh->flags = OVL_FH_FLAG_CPU_ENDIAN; in ovl_encode_real_fh()
273 fh->flags |= OVL_FH_FLAG_PATH_UPPER; in ovl_encode_real_fh()
[all …]
/fs/gfs2/
Dexport.c31 __be32 *fh = (__force __be32 *)p; in gfs2_encode_fh() local
43 fh[0] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh()
44 fh[1] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); in gfs2_encode_fh()
45 fh[2] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh()
46 fh[3] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); in gfs2_encode_fh()
54 fh[4] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh()
55 fh[5] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); in gfs2_encode_fh()
56 fh[6] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh()
57 fh[7] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); in gfs2_encode_fh()
148 __be32 *fh = (__force __be32 *)fid->raw; in gfs2_fh_to_dentry() local
[all …]
/fs/incfs/
Dformat.c393 struct incfs_file_header fh = {}; in incfs_write_fh_to_backing_file() local
399 fh.fh_magic = cpu_to_le64(INCFS_MAGIC_NUMBER); in incfs_write_fh_to_backing_file()
400 fh.fh_version = cpu_to_le64(INCFS_FORMAT_CURRENT_VER); in incfs_write_fh_to_backing_file()
401 fh.fh_header_size = cpu_to_le16(sizeof(fh)); in incfs_write_fh_to_backing_file()
402 fh.fh_first_md_offset = cpu_to_le64(0); in incfs_write_fh_to_backing_file()
403 fh.fh_data_block_size = cpu_to_le16(INCFS_DATA_FILE_BLOCK_SIZE); in incfs_write_fh_to_backing_file()
405 fh.fh_file_size = cpu_to_le64(file_size); in incfs_write_fh_to_backing_file()
406 fh.fh_uuid = *uuid; in incfs_write_fh_to_backing_file()
414 return write_to_bf(bfc, &fh, sizeof(fh), file_pos, true); in incfs_write_fh_to_backing_file()
544 struct incfs_file_header fh = {}; in incfs_read_file_header() local
[all …]
/fs/nfs/
Dnamespace.c144 struct nfs_fh *fh = NULL; in nfs_d_automount() local
151 fh = nfs_alloc_fhandle(); in nfs_d_automount()
153 if (fh == NULL || fattr == NULL) in nfs_d_automount()
156 mnt = server->nfs_client->rpc_ops->submount(server, path->dentry, fh, fattr); in nfs_d_automount()
166 nfs_free_fhandle(fh); in nfs_d_automount()
231 struct vfsmount *nfs_do_submount(struct dentry *dentry, struct nfs_fh *fh, in nfs_do_submount() argument
237 .fh = fh, in nfs_do_submount()
260 struct nfs_fh *fh, struct nfs_fattr *fattr) in nfs_submount() argument
266 err = server->nfs_client->rpc_ops->lookup(d_inode(parent), &dentry->d_name, fh, fattr, NULL); in nfs_submount()
271 return nfs_do_submount(dentry, fh, fattr, server->client->cl_auth->au_flavor); in nfs_submount()
Dmount_clnt.c127 struct nfs_fh *fh; member
134 struct nfs_fh *fh; member
149 .fh = info->fh, in nfs_mount()
349 struct nfs_fh *fh = res->fh; in decode_fhandle() local
356 fh->size = NFS2_FHSIZE; in decode_fhandle()
357 memcpy(fh->data, p, NFS2_FHSIZE); in decode_fhandle()
399 struct nfs_fh *fh = res->fh; in decode_fhandle3() local
415 fh->size = size; in decode_fhandle3()
416 memcpy(fh->data, p, size); in decode_fhandle3()
Dproc.c125 .fh = NFS_FH(inode), in nfs_proc_setattr()
155 .fh = NFS_FH(dir), in nfs_proc_lookup()
160 .fh = fhandle, in nfs_proc_lookup()
181 .fh = NFS_FH(inode), in nfs_proc_readlink()
213 data->arg.fh = NFS_FH(dir); in nfs_alloc_createdata()
219 data->res.fh = &data->fhandle; in nfs_alloc_createdata()
249 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); in nfs_proc_create()
296 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); in nfs_proc_mknod()
307 .fh = NFS_FH(dir), in nfs_proc_remove()
392 struct nfs_fh *fh; in nfs_proc_symlink() local
[all …]
Dnfs3xdr.c415 static void encode_nfs_fh3(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_nfs_fh3() argument
419 WARN_ON_ONCE(fh->size > NFS3_FHSIZE); in encode_nfs_fh3()
420 p = xdr_reserve_space(xdr, 4 + fh->size); in encode_nfs_fh3()
421 xdr_encode_opaque(p, fh->data, fh->size); in encode_nfs_fh3()
424 static int decode_nfs_fh3(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_nfs_fh3() argument
438 fh->size = length; in decode_nfs_fh3()
439 memcpy(fh->data, p, length); in decode_nfs_fh3()
446 static void zero_nfs_fh3(struct nfs_fh *fh) in zero_nfs_fh3() argument
448 memset(fh, 0, sizeof(*fh)); in zero_nfs_fh3()
771 static int decode_post_op_fh3(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_post_op_fh3() argument
[all …]
Dnfs2xdr.c184 static void encode_fhandle(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_fhandle() argument
189 memcpy(p, fh->data, NFS2_FHSIZE); in encode_fhandle()
192 static int decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_fhandle() argument
199 fh->size = NFS2_FHSIZE; in decode_fhandle()
200 memcpy(fh->data, p, NFS2_FHSIZE); in decode_fhandle()
498 static void encode_diropargs(struct xdr_stream *xdr, const struct nfs_fh *fh, in encode_diropargs() argument
501 encode_fhandle(xdr, fh); in encode_diropargs()
523 error = decode_fhandle(xdr, result->fh); in decode_diropok()
561 const struct nfs_fh *fh = data; in nfs2_xdr_enc_fhandle() local
563 encode_fhandle(xdr, fh); in nfs2_xdr_enc_fhandle()
[all …]
Dinode.c294 struct nfs_fh *fh; member
308 struct nfs_fh *fh = desc->fh; in nfs_find_actor() local
315 if (nfs_compare_fh(NFS_FH(inode), fh)) in nfs_find_actor()
330 nfs_copy_fh(NFS_FH(inode), desc->fh); in nfs_init_locked()
398 nfs_ilookup(struct super_block *sb, struct nfs_fattr *fattr, struct nfs_fh *fh) in nfs_ilookup() argument
401 .fh = fh, in nfs_ilookup()
423 nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr, struct nfs4_label *la… in nfs_fhget() argument
426 .fh = fh, in nfs_fhget()
570 nfs_display_fhandle_hash(fh), in nfs_fhget()
1526 struct nfs_fh *fh; in nfs_alloc_fhandle() local
[all …]
Dcallback_proc.c42 inode = nfs_delegation_find_inode(cps->clp, &args->fh); in nfs4_callback_getattr()
46 trace_nfs4_cb_getattr(cps->clp, &args->fh, NULL, in nfs4_callback_getattr()
68 trace_nfs4_cb_getattr(cps->clp, &args->fh, inode, -ntohl(res->status)); in nfs4_callback_getattr()
90 inode = nfs_delegation_find_inode(cps->clp, &args->fh); in nfs4_callback_recall()
94 trace_nfs4_cb_recall(cps->clp, &args->fh, NULL, in nfs4_callback_recall()
109 trace_nfs4_cb_recall(cps->clp, &args->fh, inode, in nfs4_callback_recall()
161 const struct nfs_fh *fh) in nfs_layout_find_inode_by_fh() argument
171 if (nfs_compare_fh(fh, &nfsi->fh)) in nfs_layout_find_inode_by_fh()
194 const struct nfs_fh *fh, in nfs_layout_find_inode() argument
203 inode = nfs_layout_find_inode_by_fh(clp, fh); in nfs_layout_find_inode()
/fs/ocfs2/
Dexport.c201 __le32 *fh = (__force __le32 *) fh_in; in ocfs2_encode_fh() local
207 fh, len, connectable); in ocfs2_encode_fh()
226 fh[0] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh()
227 fh[1] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh()
228 fh[2] = cpu_to_le32(generation); in ocfs2_encode_fh()
234 fh[3] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh()
235 fh[4] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh()
236 fh[5] = cpu_to_le32(generation); in ocfs2_encode_fh()
/fs/fat/
Dnfs.c100 fat_encode_fh_nostale(struct inode *inode, __u32 *fh, int *lenp, in fat_encode_fh_nostale() argument
105 struct fat_fid *fid = (struct fat_fid *) fh; in fat_encode_fh_nostale()
150 struct fid *fh, int fh_len, in fat_fh_to_dentry_nostale() argument
154 struct fat_fid *fid = (struct fat_fid *)fh; in fat_fh_to_dentry_nostale()
188 struct fid *fh, int fh_len, in fat_fh_to_parent_nostale() argument
192 struct fat_fid *fid = (struct fat_fid *)fh; in fat_fh_to_parent_nostale()

1234