/fs/nfsd/ |
D | nfs3proc.c | 63 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr() 65 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr() 66 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr() 71 err = vfs_getattr(resp->fh.fh_export->ex_path.mnt, in nfsd3_proc_getattr() 72 resp->fh.fh_dentry, &resp->stat); in nfsd3_proc_getattr() 88 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr() 90 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr() 91 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr() 106 SVCFH_fmt(&argp->fh), in nfsd3_proc_lookup() 110 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup() [all …]
|
D | nfs2acl.c | 36 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() 52 acl = nfsd_get_posix_acl(fh, ACL_TYPE_ACCESS); in nfsacld_proc_getacl() 66 struct inode *inode = fh->fh_dentry->d_inode; in nfsacld_proc_getacl() 75 acl = nfsd_get_posix_acl(fh, ACL_TYPE_DEFAULT); in nfsacld_proc_getacl() 105 svc_fh *fh; in nfsacld_proc_setacl() local 108 dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_setacl() 110 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl() [all …]
|
D | nfsproc.c | 44 return nfserrno(vfs_getattr(resp->fh.fh_export->ex_path.mnt, in nfsd_return_attrs() 45 resp->fh.fh_dentry, in nfsd_return_attrs() 52 return nfserrno(vfs_getattr(resp->fh.fh_export->ex_path.mnt, in nfsd_return_dirop() 53 resp->fh.fh_dentry, in nfsd_return_dirop() 65 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr() 67 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr() 68 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr() 83 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr() 86 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr() 87 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs,0, (time_t)0); in nfsd_proc_setattr() [all …]
|
D | nfsfh.c | 122 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry() local 127 int data_left = fh->fh_size/4; in nfsd_set_fh_dentry() 133 if (rqstp->rq_vers == 4 && fh->fh_size == 0) in nfsd_set_fh_dentry() 136 if (fh->fh_version == 1) { in nfsd_set_fh_dentry() 141 if (fh->fh_auth_type != 0) in nfsd_set_fh_dentry() 143 len = key_len(fh->fh_fsid_type) / 4; in nfsd_set_fh_dentry() 146 if (fh->fh_fsid_type == FSID_MAJOR_MINOR) { in nfsd_set_fh_dentry() 149 fh->fh_fsid_type = FSID_ENCODE_DEV; in nfsd_set_fh_dentry() 150 fh->fh_fsid[0] = new_encode_dev(MKDEV(ntohl(fh->fh_fsid[0]), ntohl(fh->fh_fsid[1]))); in nfsd_set_fh_dentry() 151 fh->fh_fsid[1] = fh->fh_fsid[2]; in nfsd_set_fh_dentry() [all …]
|
D | nfs3acl.c | 34 svc_fh *fh; in nfsd3_proc_getacl() local 38 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl() 39 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl() 48 acl = nfsd_get_posix_acl(fh, ACL_TYPE_ACCESS); in nfsd3_proc_getacl() 62 struct inode *inode = fh->fh_dentry->d_inode; in nfsd3_proc_getacl() 71 acl = nfsd_get_posix_acl(fh, ACL_TYPE_DEFAULT); in nfsd3_proc_getacl() 101 svc_fh *fh; in nfsd3_proc_setacl() local 104 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl() 105 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl() 109 fh, ACL_TYPE_ACCESS, argp->acl_access) ); in nfsd3_proc_setacl() [all …]
|
D | lockd.c | 36 struct svc_fh fh; in nlm_fopen() local 39 fh_init(&fh,0); in nlm_fopen() 40 fh.fh_handle.fh_size = f->size; in nlm_fopen() 41 memcpy((char*)&fh.fh_handle.fh_base, f->data, f->size); in nlm_fopen() 42 fh.fh_export = NULL; in nlm_fopen() 45 nfserr = nfsd_open(rqstp, &fh, S_IFREG, NFSD_MAY_LOCK, filp); in nlm_fopen() 46 fh_put(&fh); in nlm_fopen()
|
D | nfs3xdr.c | 287 if (!(p = decode_fh(p, &args->fh))) in nfs3svc_decode_fhandle() 296 if (!(p = decode_fh(p, &args->fh))) in nfs3svc_decode_sattrargs() 313 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_diropargs() 324 if (!(p = decode_fh(p, &args->fh))) in nfs3svc_decode_accessargs() 339 if (!(p = decode_fh(p, &args->fh))) in nfs3svc_decode_readargs() 368 if (!(p = decode_fh(p, &args->fh))) in nfs3svc_decode_writeargs() 421 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_createargs() 444 if (!(p = decode_fh(p, &args->fh)) || in nfs3svc_decode_mkdirargs() 509 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_mknodargs() 544 if (!(p = decode_fh(p, &args->fh))) in nfs3svc_decode_readlinkargs() [all …]
|
D | nfsxdr.c | 226 if (!(p = decode_fh(p, &args->fh))) in nfssvc_decode_fhandle() 235 p = decode_fh(p, &args->fh); in nfssvc_decode_sattrargs() 247 if (!(p = decode_fh(p, &args->fh)) in nfssvc_decode_diropargs() 260 if (!(p = decode_fh(p, &args->fh))) in nfssvc_decode_readargs() 292 if (!(p = decode_fh(p, &args->fh))) in nfssvc_decode_writeargs() 342 if ( !(p = decode_fh(p, &args->fh)) in nfssvc_decode_createargs() 366 if (!(p = decode_fh(p, &args->fh))) in nfssvc_decode_readlinkargs() 402 if (!(p = decode_fh(p, &args->fh))) in nfssvc_decode_readdirargs() 427 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfssvc_encode_attrstat() 435 p = encode_fh(p, &resp->fh); in nfssvc_encode_diropres() [all …]
|
D | nfsctl.c | 434 struct knfsd_fh fh; in write_getfd() local 458 err = exp_rootfh(clp, data->gd_path, &fh, NFS_FHSIZE); in write_getfd() 465 memcpy(res, &fh.fh_base, fh.fh_size); in write_getfd() 596 struct knfsd_fh fh; in write_filehandle() local 632 len = exp_rootfh(dom, path, &fh, maxsize); in write_filehandle() 639 qword_addhex(&mesg, &len, (char*)&fh.fh_base, fh.fh_size); in write_filehandle()
|
/fs/gfs2/ |
D | ops_export.c | 36 __be32 *fh = (__force __be32 *)p; in gfs2_encode_fh() local 45 fh[0] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh() 46 fh[1] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); in gfs2_encode_fh() 47 fh[2] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh() 48 fh[3] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); in gfs2_encode_fh() 60 fh[4] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh() 61 fh[5] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); in gfs2_encode_fh() 62 fh[6] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh() 63 fh[7] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); in gfs2_encode_fh() 244 __be32 *fh = (__force __be32 *)fid->raw; in gfs2_fh_to_dentry() local [all …]
|
/fs/nfs/ |
D | mount_clnt.c | 27 struct nfs_fh *fh; member 39 .fh = info->fh in nfs_mount() 117 struct nfs_fh *fh = res->fh; in xdr_decode_fhstatus() local 120 fh->size = NFS2_FHSIZE; in xdr_decode_fhstatus() 121 memcpy(fh->data, p, NFS2_FHSIZE); in xdr_decode_fhstatus() 129 struct nfs_fh *fh = res->fh; in xdr_decode_fhstatus3() local 135 fh->size = size; in xdr_decode_fhstatus3() 136 memcpy(fh->data, p, size); in xdr_decode_fhstatus3()
|
D | nfs3xdr.c | 113 xdr_encode_fhandle(__be32 *p, const struct nfs_fh *fh) in xdr_encode_fhandle() argument 115 return xdr_encode_array(p, fh->data, fh->size); in xdr_encode_fhandle() 119 xdr_decode_fhandle(__be32 *p, struct nfs_fh *fh) in xdr_decode_fhandle() argument 121 if ((fh->size = ntohl(*p++)) <= NFS3_FHSIZE) { in xdr_decode_fhandle() 122 memcpy(fh->data, p, fh->size); in xdr_decode_fhandle() 123 return p + XDR_QUADLEN(fh->size); in xdr_decode_fhandle() 272 nfs3_xdr_fhandle(struct rpc_rqst *req, __be32 *p, struct nfs_fh *fh) in nfs3_xdr_fhandle() argument 274 p = xdr_encode_fhandle(p, fh); in nfs3_xdr_fhandle() 285 p = xdr_encode_fhandle(p, args->fh); in nfs3_xdr_sattrargs() 300 p = xdr_encode_fhandle(p, args->fh); in nfs3_xdr_diropargs() [all …]
|
D | namespace.c | 29 struct nfs_fh *fh, 102 struct nfs_fh fh; in nfs_follow_mountpoint() local 120 &fh, &fattr); in nfs_follow_mountpoint() 128 mnt = nfs_do_submount(nd->path.mnt, nd->path.dentry, &fh, in nfs_follow_mountpoint() 220 struct nfs_fh *fh, in nfs_do_submount() argument 226 .fh = fh, in nfs_do_submount()
|
D | callback_xdr.c | 84 static __be32 decode_fh(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_fh() argument 91 fh->size = ntohl(*p); in decode_fh() 92 if (fh->size > NFS4_FHSIZE) in decode_fh() 94 p = read_buf(xdr, fh->size); in decode_fh() 97 memcpy(&fh->data[0], p, fh->size); in decode_fh() 98 memset(&fh->data[fh->size], 0, sizeof(fh->data) - fh->size); in decode_fh() 176 status = decode_fh(xdr, &args->fh); in decode_getattr_args() 201 status = decode_fh(xdr, &args->fh); in decode_recall_args()
|
D | proc.c | 124 .fh = NFS_FH(inode), in nfs_proc_setattr() 153 .fh = NFS_FH(dir), in nfs_proc_lookup() 158 .fh = fhandle, in nfs_proc_lookup() 179 .fh = NFS_FH(inode), in nfs_proc_readlink() 203 .fh = NFS_FH(dir), in nfs_proc_create() 209 .fh = &fhandle, in nfs_proc_create() 239 .fh = NFS_FH(dir), in nfs_proc_mknod() 245 .fh = &fhandle, in nfs_proc_mknod() 285 .fh = NFS_FH(dir), in nfs_proc_remove() 413 .fh = NFS_FH(dir), in nfs_proc_mkdir() [all …]
|
D | nfs3proc.c | 121 .fh = NFS_FH(inode), in nfs3_proc_setattr() 148 .fh = NFS_FH(dir), in nfs3_proc_lookup() 154 .fh = fhandle, in nfs3_proc_lookup() 183 .fh = NFS_FH(inode), in nfs3_proc_access() 233 .fh = NFS_FH(inode), in nfs3_proc_readlink() 262 struct nfs_fh fh; member 275 data->res.fh = &data->fh; in nfs3_alloc_createdata() 291 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr); in nfs3_do_create() 319 data->arg.create.fh = NFS_FH(dir); in nfs3_proc_create() 389 .fh = NFS_FH(dir), in nfs3_proc_remove() [all …]
|
D | nfsroot.c | 488 struct nfs_fh fh; in root_nfs_get_handle() local 498 .fh = &fh, in root_nfs_get_handle() 508 nfs_data.root.size = fh.size; in root_nfs_get_handle() 509 memcpy(nfs_data.root.data, fh.data, fh.size); in root_nfs_get_handle()
|
D | nfs2xdr.c | 187 nfs_xdr_fhandle(struct rpc_rqst *req, __be32 *p, struct nfs_fh *fh) in nfs_xdr_fhandle() argument 189 p = xdr_encode_fhandle(p, fh); in nfs_xdr_fhandle() 200 p = xdr_encode_fhandle(p, args->fh); in nfs_xdr_sattrargs() 213 p = xdr_encode_fhandle(p, args->fh); in nfs_xdr_diropargs() 225 p = xdr_encode_fhandle(p, args->fh); in nfs_xdr_removeargs() 244 p = xdr_encode_fhandle(p, args->fh); in nfs_xdr_readargs() 310 p = xdr_encode_fhandle(p, args->fh); in nfs_xdr_writeargs() 330 p = xdr_encode_fhandle(p, args->fh); in nfs_xdr_createargs() 404 p = xdr_encode_fhandle(p, args->fh); in nfs_xdr_readdirargs() 570 p = xdr_decode_fhandle(p, res->fh); in nfs_xdr_diropres() [all …]
|
D | callback.h | 42 struct nfs_fh fh; member 57 struct nfs_fh fh; member
|
D | nfs4proc.c | 345 p->o_arg.fh = NFS_FH(dir); in nfs4_opendata_alloc() 362 p->c_arg.fh = &p->o_res.fh; in nfs4_opendata_alloc() 606 inode = nfs_fhget(data->dir->d_sb, &data->o_res.fh, &data->f_attr); in nfs4_opendata_to_nfs4_state() 751 opendata->o_arg.fh = NFS_FH(state->inode); in _nfs4_do_open_reclaim() 937 nfs_copy_fh(&data->o_res.fh, data->o_arg.fh); in nfs4_open_prepare() 1044 if (o_res->fh.size == 0) in _nfs4_proc_open() 1045 _nfs4_proc_lookup(dir, o_arg->name, &o_res->fh, o_res->f_attr); in _nfs4_proc_open() 1058 _nfs4_proc_getattr(server, &o_res->fh, o_res->f_attr); in _nfs4_proc_open() 1253 .fh = NFS_FH(inode), in _nfs4_do_setattr() 1435 calldata->arg.fh = NFS_FH(state->inode); in nfs4_do_close() [all …]
|
/fs/ocfs2/ |
D | export.c | 127 __le32 *fh = (__force __le32 *) fh_in; in ocfs2_encode_fh() local 131 fh, len, connectable); in ocfs2_encode_fh() 146 fh[0] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh() 147 fh[1] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh() 148 fh[2] = cpu_to_le32(generation); in ocfs2_encode_fh() 159 fh[3] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh() 160 fh[4] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh() 161 fh[5] = cpu_to_le32(generation); in ocfs2_encode_fh()
|
/fs/btrfs/ |
D | export.c | 16 static int btrfs_encode_fh(struct dentry *dentry, u32 *fh, int *max_len, in btrfs_encode_fh() argument 19 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() 93 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent() argument 96 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() 117 static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh, in btrfs_fh_to_dentry() argument 120 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_dentry()
|
/fs/xfs/linux-2.6/ |
D | xfs_export.c | 56 __u32 *fh, in xfs_fs_encode_fh() argument 60 struct fid *fid = (struct fid *)fh; in xfs_fs_encode_fh() 61 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fh; in xfs_fs_encode_fh()
|
/fs/lockd/ |
D | clntlock.c | 197 const struct nfs_fh *fh = &lock->fh; in nlmclnt_grant() local 220 if (nfs_compare_fh(NFS_FH(fl_blocked->fl_file->f_path.dentry->d_inode) ,fh) != 0) in nlmclnt_grant()
|
/fs/fat/ |
D | inode.c | 657 u32 *fh = fid->raw; in fat_fh_to_dentry() local 662 inode = ilookup(sb, fh[0]); in fat_fh_to_dentry() 663 if (!inode || inode->i_generation != fh[1]) { in fat_fh_to_dentry() 670 int i_logstart = fh[3] & 0x0fffffff; in fat_fh_to_dentry() 672 i_pos = (loff_t)fh[2] << 8; in fat_fh_to_dentry() 673 i_pos |= ((fh[3] >> 24) & 0xf0) | (fh[4] >> 28); in fat_fh_to_dentry() 708 fat_encode_fh(struct dentry *de, __u32 *fh, int *lenp, int connectable) in fat_encode_fh() argument 721 fh[0] = inode->i_ino; in fat_encode_fh() 722 fh[1] = inode->i_generation; in fat_encode_fh() 723 fh[2] = ipos_h; in fat_encode_fh() [all …]
|