Home
last modified time | relevance | path

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

1234

/fs/nfsd/
Dnfs2acl.c36 svc_fh *fh; in nfsacld_proc_getacl() local
38 dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_getacl()
40 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl()
41 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl()
45 inode = d_inode(fh->fh_dentry); in nfsacld_proc_getacl()
53 resp->status = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl()
98 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 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl()
[all …]
Dnfs3proc.c50 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
52 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
53 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
58 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr()
76 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
78 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
79 resp->status = nfsd_setattr(rqstp, &resp->fh, &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 …]
Dnfs3acl.c34 svc_fh *fh; in nfsd3_proc_getacl() local
36 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl()
37 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl()
41 inode = d_inode(fh->fh_dentry); in nfsd3_proc_getacl()
90 svc_fh *fh; in nfsd3_proc_setacl() local
93 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl()
94 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl()
98 inode = d_inode(fh->fh_dentry); in nfsd3_proc_setacl()
100 error = fh_want_write(fh); in nfsd3_proc_setacl()
115 fh_drop_write(fh); in nfsd3_proc_setacl()
[all …]
Dnfsproc.c32 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr()
34 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
35 resp->status = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr()
39 resp->status = fh_getattr(&resp->fh, &resp->stat); in nfsd_proc_getattr()
60 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
63 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
110 resp->status = fh_getattr(&resp->fh, &resp->stat); 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 resp->status = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup()
[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
38 svc_fh fh; member
47 struct svc_fh fh; member
56 struct svc_fh fh; member
91 struct svc_fh fh; member
98 struct svc_fh fh; member
104 struct svc_fh fh; member
[all …]
Dnfsfh.c156 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry() local
161 int data_left = fh->fh_size/4; in nfsd_set_fh_dentry()
168 if (rqstp->rq_vers == 4 && fh->fh_size == 0) in nfsd_set_fh_dentry()
171 if (fh->fh_version != 1) in nfsd_set_fh_dentry()
176 if (fh->fh_auth_type != 0) in nfsd_set_fh_dentry()
178 len = key_len(fh->fh_fsid_type) / 4; in nfsd_set_fh_dentry()
181 if (fh->fh_fsid_type == FSID_MAJOR_MINOR) { in nfsd_set_fh_dentry()
184 fh->fh_fsid_type = FSID_ENCODE_DEV; in nfsd_set_fh_dentry()
191 fh->fh_fsid[0] = new_encode_dev(MKDEV(ntohl((__force __be32)fh->fh_fsid[0]), in nfsd_set_fh_dentry()
192 ntohl((__force __be32)fh->fh_fsid[1]))); in nfsd_set_fh_dentry()
[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
33 svc_fh fh; member
40 struct svc_fh fh; member
73 struct svc_fh fh; member
84 struct svc_fh fh; member
90 struct svc_fh fh; member
102 struct svc_fh fh; member
Dlockd.c33 struct svc_fh fh; in nlm_fopen() local
36 fh_init(&fh,0); in nlm_fopen()
37 fh.fh_handle.fh_size = f->size; in nlm_fopen()
38 memcpy(&fh.fh_handle.fh_raw, f->data, f->size); in nlm_fopen()
39 fh.fh_export = NULL; in nlm_fopen()
43 nfserr = nfsd_open(rqstp, &fh, S_IFREG, access, filp); in nlm_fopen()
44 fh_put(&fh); in nlm_fopen()
Dvfs.h150 static inline int fh_want_write(struct svc_fh *fh) in fh_want_write() argument
154 if (fh->fh_want_write) in fh_want_write()
156 ret = mnt_want_write(fh->fh_export->ex_path.mnt); in fh_want_write()
158 fh->fh_want_write = true; in fh_want_write()
162 static inline void fh_drop_write(struct svc_fh *fh) in fh_drop_write() argument
164 if (fh->fh_want_write) { in fh_drop_write()
165 fh->fh_want_write = false; in fh_drop_write()
166 mnt_drop_write(fh->fh_export->ex_path.mnt); in fh_drop_write()
170 static inline __be32 fh_getattr(const struct svc_fh *fh, struct kstat *stat) in fh_getattr() argument
172 struct path p = {.mnt = fh->fh_export->ex_path.mnt, in fh_getattr()
[all …]
Dnfs3xdr.c499 return svcxdr_decode_nfs_fh3(xdr, &args->fh); in nfs3svc_decode_fhandleargs()
507 return svcxdr_decode_nfs_fh3(xdr, &args->fh) && in nfs3svc_decode_sattrargs()
517 return svcxdr_decode_diropargs3(xdr, &args->fh, &args->name, &args->len); in nfs3svc_decode_diropargs()
525 if (!svcxdr_decode_nfs_fh3(xdr, &args->fh)) in nfs3svc_decode_accessargs()
538 if (!svcxdr_decode_nfs_fh3(xdr, &args->fh)) in nfs3svc_decode_readargs()
554 if (!svcxdr_decode_nfs_fh3(xdr, &args->fh)) in nfs3svc_decode_writeargs()
583 if (!svcxdr_decode_diropargs3(xdr, &args->fh, &args->name, &args->len)) in nfs3svc_decode_createargs()
607 return svcxdr_decode_diropargs3(xdr, &args->fh, in nfs3svc_decode_mkdirargs()
636 if (!svcxdr_decode_diropargs3(xdr, &args->fh, &args->name, &args->len)) in nfs3svc_decode_mknodargs()
685 if (!svcxdr_decode_nfs_fh3(xdr, &args->fh)) in nfs3svc_decode_readdirargs()
[all …]
Dnfsxdr.c280 return svcxdr_decode_fhandle(xdr, &args->fh); in nfssvc_decode_fhandleargs()
288 return svcxdr_decode_fhandle(xdr, &args->fh) && in nfssvc_decode_sattrargs()
297 return svcxdr_decode_diropargs(xdr, &args->fh, &args->name, &args->len); in nfssvc_decode_diropargs()
306 if (!svcxdr_decode_fhandle(xdr, &args->fh)) in nfssvc_decode_readargs()
325 if (!svcxdr_decode_fhandle(xdr, &args->fh)) in nfssvc_decode_writeargs()
350 return svcxdr_decode_diropargs(xdr, &args->fh, in nfssvc_decode_createargs()
401 if (!svcxdr_decode_fhandle(xdr, &args->fh)) in nfssvc_decode_readdirargs()
432 if (!svcxdr_encode_fattr(rqstp, xdr, &resp->fh, &resp->stat)) in nfssvc_encode_attrstatres()
449 if (!svcxdr_encode_fhandle(xdr, &resp->fh)) in nfssvc_encode_diropres()
451 if (!svcxdr_encode_fattr(rqstp, xdr, &resp->fh, &resp->stat)) in nfssvc_encode_diropres()
[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()
150 __be32 *fh = (__force __be32 *)fid->raw; in gfs2_fh_to_dentry() local
[all …]
/fs/overlayfs/
Dnamei.c113 struct ovl_fh *fh = NULL; in ovl_get_fh() local
125 fh = kzalloc(res + OVL_FH_WIRE_OFFSET, GFP_KERNEL); in ovl_get_fh()
126 if (!fh) in ovl_get_fh()
129 res = ovl_getxattr_upper(ofs, upperdentry, ox, fh->buf, res); in ovl_get_fh()
133 err = ovl_check_fb_len(&fh->fb, res); in ovl_get_fh()
140 return fh; in ovl_get_fh()
143 kfree(fh); in ovl_get_fh()
150 pr_warn_ratelimited("invalid origin (%*phN)\n", res, fh); in ovl_get_fh()
154 struct dentry *ovl_decode_real_fh(struct ovl_fs *ofs, struct ovl_fh *fh, in ovl_decode_real_fh() argument
168 if (ofs->config.uuid ? !uuid_equal(&fh->fb.uuid, &mnt->mnt_sb->s_uuid) : in ovl_decode_real_fh()
[all …]
Dexport.c217 struct ovl_fh *fh = NULL; in ovl_dentry_to_fid() local
230 fh = ovl_encode_real_fh(ofs, enc_lower ? ovl_dentry_lower(dentry) : in ovl_dentry_to_fid()
232 if (IS_ERR(fh)) in ovl_dentry_to_fid()
233 return PTR_ERR(fh); in ovl_dentry_to_fid()
235 len = OVL_FH_LEN(fh); in ovl_dentry_to_fid()
237 memcpy(fid, fh, len); in ovl_dentry_to_fid()
241 kfree(fh); in ovl_dentry_to_fid()
680 struct ovl_fh *fh) in ovl_upper_fh_to_d() argument
689 upper = ovl_decode_real_fh(ofs, fh, ovl_upper_mnt(ofs), true); in ovl_upper_fh_to_d()
700 struct ovl_fh *fh) in ovl_lower_fh_to_d() argument
[all …]
Dcopy_up.c340 struct ovl_fh *fh; in ovl_encode_real_fh() local
350 fh = kzalloc(buflen + OVL_FH_FID_OFFSET, GFP_KERNEL); in ovl_encode_real_fh()
351 if (!fh) in ovl_encode_real_fh()
360 fh_type = exportfs_encode_fh(real, (void *)fh->fb.fid, &dwords, 0); in ovl_encode_real_fh()
369 fh->fb.version = OVL_FH_VERSION; in ovl_encode_real_fh()
370 fh->fb.magic = OVL_FH_MAGIC; in ovl_encode_real_fh()
371 fh->fb.type = fh_type; in ovl_encode_real_fh()
372 fh->fb.flags = OVL_FH_FLAG_CPU_ENDIAN; in ovl_encode_real_fh()
380 fh->fb.flags |= OVL_FH_FLAG_PATH_UPPER; in ovl_encode_real_fh()
381 fh->fb.len = sizeof(fh->fb) + buflen; in ovl_encode_real_fh()
[all …]
/fs/incfs/
Dformat.c419 struct incfs_file_header fh = {}; in incfs_write_fh_to_backing_file() local
425 fh.fh_magic = cpu_to_le64(INCFS_MAGIC_NUMBER); in incfs_write_fh_to_backing_file()
426 fh.fh_version = cpu_to_le64(INCFS_FORMAT_CURRENT_VER); in incfs_write_fh_to_backing_file()
427 fh.fh_header_size = cpu_to_le16(sizeof(fh)); in incfs_write_fh_to_backing_file()
428 fh.fh_first_md_offset = cpu_to_le64(0); in incfs_write_fh_to_backing_file()
429 fh.fh_data_block_size = cpu_to_le16(INCFS_DATA_FILE_BLOCK_SIZE); in incfs_write_fh_to_backing_file()
431 fh.fh_file_size = cpu_to_le64(file_size); in incfs_write_fh_to_backing_file()
432 fh.fh_uuid = *uuid; in incfs_write_fh_to_backing_file()
440 return write_to_bf(bfc, &fh, sizeof(fh), file_pos); in incfs_write_fh_to_backing_file()
450 struct incfs_file_header fh = {}; in incfs_write_mapping_fh_to_backing_file() local
[all …]
/fs/nfs/
Dnfstrace.h66 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
104 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
196 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
248 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
299 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
355 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
957 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
994 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
1032 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
1071 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh);
[all …]
Dmount_clnt.c126 struct nfs_fh *fh; member
133 struct nfs_fh *fh; member
150 .fh = info->fh, in nfs_mount()
352 struct nfs_fh *fh = res->fh; in decode_fhandle() local
359 fh->size = NFS2_FHSIZE; in decode_fhandle()
360 memcpy(fh->data, p, NFS2_FHSIZE); in decode_fhandle()
402 struct nfs_fh *fh = res->fh; in decode_fhandle3() local
418 fh->size = size; in decode_fhandle3()
419 memcpy(fh->data, p, size); in decode_fhandle3()
Dnfs3xdr.c418 static void encode_nfs_fh3(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_nfs_fh3() argument
422 WARN_ON_ONCE(fh->size > NFS3_FHSIZE); in encode_nfs_fh3()
423 p = xdr_reserve_space(xdr, 4 + fh->size); in encode_nfs_fh3()
424 xdr_encode_opaque(p, fh->data, fh->size); in encode_nfs_fh3()
427 static int decode_nfs_fh3(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_nfs_fh3() argument
441 fh->size = length; in decode_nfs_fh3()
442 memcpy(fh->data, p, length); in decode_nfs_fh3()
449 static void zero_nfs_fh3(struct nfs_fh *fh) in zero_nfs_fh3() argument
451 memset(fh, 0, sizeof(*fh)); in zero_nfs_fh3()
770 static int decode_post_op_fh3(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_post_op_fh3() argument
[all …]
Dproc.c131 .fh = NFS_FH(inode), in nfs_proc_setattr()
160 .fh = NFS_FH(dir), in nfs_proc_lookup()
165 .fh = fhandle, in nfs_proc_lookup()
191 .fh = NFS_FH(inode), in nfs_proc_readlink()
223 data->arg.fh = NFS_FH(dir); in nfs_alloc_createdata()
229 data->res.fh = &data->fhandle; in nfs_alloc_createdata()
259 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr); in nfs_proc_create()
306 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr); in nfs_proc_mknod()
317 .fh = NFS_FH(dir), in nfs_proc_remove()
402 struct nfs_fh *fh; in nfs_proc_symlink() local
[all …]
Dnfs2xdr.c185 static void encode_fhandle(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_fhandle() argument
190 memcpy(p, fh->data, NFS2_FHSIZE); in encode_fhandle()
193 static int decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_fhandle() argument
200 fh->size = NFS2_FHSIZE; in decode_fhandle()
201 memcpy(fh->data, p, NFS2_FHSIZE); in decode_fhandle()
494 static void encode_diropargs(struct xdr_stream *xdr, const struct nfs_fh *fh, in encode_diropargs() argument
497 encode_fhandle(xdr, fh); in encode_diropargs()
519 error = decode_fhandle(xdr, result->fh); in decode_diropok()
557 const struct nfs_fh *fh = data; in nfs2_xdr_enc_fhandle() local
559 encode_fhandle(xdr, fh); in nfs2_xdr_enc_fhandle()
[all …]
/fs/notify/fanotify/
Dfanotify.h84 static inline bool fanotify_fh_has_ext_buf(struct fanotify_fh *fh) in fanotify_fh_has_ext_buf() argument
86 return (fh->flags & FANOTIFY_FH_FLAG_EXT_BUF); in fanotify_fh_has_ext_buf()
89 static inline char **fanotify_fh_ext_buf_ptr(struct fanotify_fh *fh) in fanotify_fh_ext_buf_ptr() argument
94 return (char **)ALIGN((unsigned long)(fh->buf), __alignof__(char *)); in fanotify_fh_ext_buf_ptr()
97 static inline void *fanotify_fh_ext_buf(struct fanotify_fh *fh) in fanotify_fh_ext_buf() argument
99 return *fanotify_fh_ext_buf_ptr(fh); in fanotify_fh_ext_buf()
102 static inline void *fanotify_fh_buf(struct fanotify_fh *fh) in fanotify_fh_buf() argument
104 return fanotify_fh_has_ext_buf(fh) ? fanotify_fh_ext_buf(fh) : fh->buf; in fanotify_fh_buf()
361 struct fanotify_fh *fh = fanotify_event_object_fh(event); in fanotify_event_object_fh_len() local
364 return info->file_fh_totlen ? fh->len : 0; in fanotify_event_object_fh_len()
[all …]
Dfanotify.c54 static unsigned int fanotify_hash_fh(struct fanotify_fh *fh) in fanotify_hash_fh() argument
56 long salt = (long)fh->type | (long)fh->len << 8; in fanotify_hash_fh()
61 return full_name_hash((void *)salt, fanotify_fh_buf(fh), fh->len); in fanotify_hash_fh()
402 static int fanotify_encode_fh(struct fanotify_fh *fh, struct inode *inode, in fanotify_encode_fh() argument
408 void *buf = fh->buf; in fanotify_encode_fh()
411 fh->type = FILEID_ROOT; in fanotify_encode_fh()
412 fh->len = 0; in fanotify_encode_fh()
413 fh->flags = 0; in fanotify_encode_fh()
439 *fanotify_fh_ext_buf_ptr(fh) = ext_buf; in fanotify_encode_fh()
441 fh->flags |= FANOTIFY_FH_FLAG_EXT_BUF; in fanotify_encode_fh()
[all …]
/fs/ocfs2/
Dexport.c199 __le32 *fh = (__force __le32 *) fh_in; in ocfs2_encode_fh() local
205 fh, len, connectable); in ocfs2_encode_fh()
224 fh[0] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh()
225 fh[1] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh()
226 fh[2] = cpu_to_le32(generation); in ocfs2_encode_fh()
232 fh[3] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh()
233 fh[4] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh()
234 fh[5] = cpu_to_le32(generation); in ocfs2_encode_fh()
/fs/lockd/
Dxdr4.c53 svcxdr_decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) in svcxdr_decode_fhandle() argument
66 fh->size = len; in svcxdr_decode_fhandle()
67 memcpy(fh->data, p, len); in svcxdr_decode_fhandle()
68 memset(fh->data + len, 0, sizeof(fh->data) - len); in svcxdr_decode_fhandle()
80 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in svcxdr_decode_lock()
279 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in nlm4svc_decode_shareargs()

1234