Home
last modified time | relevance | path

Searched refs:fh_size (Results 1 – 12 of 12) sorted by relevance

/linux/fs/nfsd/
H A Dnfsfh.h50 unsigned int fh_size; /* member
245 dst->fh_size = src->fh_size; in fh_copy_shallow()
246 memcpy(&dst->fh_raw, &src->fh_raw, src->fh_size); in fh_copy_shallow()
260 if (fh1->fh_size != fh2->fh_size) in fh_match()
262 if (memcmp(fh1->fh_raw, fh2->fh_raw, fh1->fh_size) != 0) in fh_match()
324 return ~crc32_le(0xFFFFFFFF, fh->fh_raw, fh->fh_size); in knfsd_fh_hash()
H A Dnfsfh.c155 if (fh->fh_size + sizeof(hash) > fh_maxsize) in fh_append_mac()
158 hash = cpu_to_le64(siphash(&fh->fh_raw, fh->fh_size, fh_key)); in fh_append_mac()
159 memcpy(&fh->fh_raw[fh->fh_size], &hash, sizeof(hash)); in fh_append_mac()
160 fh->fh_size += sizeof(hash); in fh_append_mac()
169 fh->fh_size + sizeof(hash), fh_maxsize); in fh_append_mac()
189 hash = cpu_to_le64(siphash(&fh->fh_raw, fh->fh_size - sizeof(hash), fh_key)); in fh_verify_mac()
190 return crypto_memneq(&fh->fh_raw[fh->fh_size - sizeof(hash)], in fh_verify_mac()
210 int data_left = fh->fh_size/4; in nfsd_set_fh_dentry()
215 if (fh->fh_size == 0) in nfsd_set_fh_dentry()
556 (fh_fsid(&fhp->fh_handle) + fhp->fh_handle.fh_size/4 - 1); in _fh_update()
[all …]
H A Dlockd.c38 fh.fh_handle.fh_size = f->size; in nlm_fopen()
H A Dflexfilelayout.c64 fl->fh.size = fhp->fh_handle.fh_size; in nfsd4_ff_proc_layoutget()
H A Dlocalio.c72 fh.fh_handle.fh_size = nfs_fh->size; in nfsd_open_local_fh()
H A Dnfs3xdr.c94 fhp->fh_handle.fh_size = size; in svcxdr_decode_nfs_fh3()
125 u32 size = fhp->fh_handle.fh_size; in svcxdr_encode_nfs_fh3()
H A Dnfsxdr.c80 fhp->fh_handle.fh_size = NFS_FHSIZE; in svcxdr_decode_fhandle()
H A Dnfs4callback.c147 u32 length = fh->fh_size; in encode_nfs_fh4()
929 args.cna_fh.len = dp->dl_stid.sc_file->fi_fhandle.fh_size; in nfs4_xdr_enc_cb_notify()
H A Dnfs4xdr.c2739 return nfsd4_encode_opaque(xdr, fh_handle->fh_raw, fh_handle->fh_size); in nfsd4_encode_nfs_fh4()
4243 fhp->fh_size = 4 + fsid_len; in setup_notify_fhandle()
4246 memcpy(&fhp->fh_raw, &fi->fi_fhandle.fh_raw, fhp->fh_size); in setup_notify_fhandle()
4249 maxsize = (NFS4_FHSIZE - fhp->fh_size)/4; in setup_notify_fhandle()
4268 fhp->fh_size += maxsize * 4; in setup_notify_fhandle()
H A Dnfs4proc.c732 cstate->current_fh.fh_handle.fh_size = putfh->pf_fhlen; in nfsd4_putfh()
1867 copy->c_fh.size = s_fh->fh_handle.fh_size; in nfsd4_setup_inter_ssc()
H A Dnfsctl.c388 qword_addhex(&mesg, &len, fh.fh_raw, fh.fh_size); in write_filehandle()
H A Dnfs4state.c1216 hash = jhash(&fh->fh_raw, fh->fh_size, 0); in delegation_blocked()
1235 hash = jhash(&fh->fh_raw, fh->fh_size, 0); in block_delegations()