| /freebsd-12-stable/contrib/netbsd-tests/fs/vfs/ |
| D | t_vfsops.c | 79 size_t fhsize; in tfilehandle() local 96 fhsize = 0; in tfilehandle() 97 if (rump_sys_getfh(fpath, NULL, &fhsize) == -1) { in tfilehandle() 105 fhp = malloc(fhsize); in tfilehandle() 106 if (rump_sys_getfh(fpath, fhp, &fhsize) == -1) in tfilehandle() 110 fd = rump_sys_fhopen(fhp, fhsize, O_RDONLY); in tfilehandle() 128 size_t fhsize; in tfhremove() local 136 fhsize = 0; in tfhremove() 137 if (rump_sys_getfh(FNAME, NULL, &fhsize) == -1) { in tfhremove() 145 fhp = malloc(fhsize); in tfhremove() [all …]
|
| /freebsd-12-stable/stand/libsa/ |
| D | nfs.c | 116 uint32_t fhsize; member 195 uint32_t fhsize; in nfs_getrootfh() member 236 *fhlenp = ntohl(repl->fhsize); in nfs_getrootfh() 254 uint32_t fhsize; in nfs_lookupfh() member 260 uint32_t fhsize; in nfs_lookupfh() member 279 args->fhsize = htonl(d->fhsize); in nfs_lookupfh() 280 bcopy(d->fh, args->fhplusname, d->fhsize); in nfs_lookupfh() 284 pos = roundup(d->fhsize, sizeof(uint32_t)) / sizeof(uint32_t); in nfs_lookupfh() 305 newfd->fhsize = ntohl(repl->fhsize); in nfs_lookupfh() 306 bcopy(repl->fhplusattr, &newfd->fh, newfd->fhsize); in nfs_lookupfh() [all …]
|
| /freebsd-12-stable/sys/fs/nfsclient/ |
| D | nfs_clnode.c | 97 ncl_nget(struct mount *mntp, u_int8_t *fhp, int fhsize, struct nfsnode **npp, in ncl_nget() argument 112 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT); in ncl_nget() 114 nfhp = malloc(sizeof (struct nfsfh) + fhsize, in ncl_nget() 116 bcopy(fhp, &nfhp->nfh_fh[0], fhsize); in ncl_nget() 117 nfhp->nfh_len = fhsize; in ncl_nget() 159 if ((fhsize == nmp->nm_fhsize) && in ncl_nget() 160 !bcmp(fhp, nmp->nm_fh, fhsize)) { in ncl_nget() 168 np->n_fhp = malloc(sizeof (struct nfsfh) + fhsize, in ncl_nget() 170 bcopy(fhp, np->n_fhp->nfh_fh, fhsize); in ncl_nget() 171 np->n_fhp->nfh_len = fhsize; in ncl_nget()
|
| D | nfs_clvfsops.c | 242 args->fhsize = oargs->fhsize; in nfs_convert_oargs() 489 nd->root_args.fhsize = nd->root_fhsize; in nfs_mountroot() 863 .fhsize = 0, in nfs_mount() 1227 if (args.fhsize < 0 || args.fhsize > NFSX_V3FHMAX) { in nfs_mount() 1233 args.fhsize); in nfs_mount() 1256 args.fhsize = 0; in nfs_mount() 1261 &args.fhsize) == 0) { in nfs_mount() 1262 if (args.fhsize < 0 || args.fhsize > NFSX_FHMAX) { in nfs_mount() 1267 bcopy(args.fh, nfh, args.fhsize); in nfs_mount() 1269 args.fhsize = 0; in nfs_mount() [all …]
|
| D | nfs_clport.c | 314 nfscl_ngetreopen(struct mount *mntp, u_int8_t *fhp, int fhsize, in nfscl_ngetreopen() argument 326 nfhp = malloc(sizeof (struct nfsfh) + fhsize, in nfscl_ngetreopen() 328 bcopy(fhp, &nfhp->nfh_fh[0], fhsize); in nfscl_ngetreopen() 329 nfhp->nfh_len = fhsize; in nfscl_ngetreopen() 331 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT); in nfscl_ngetreopen()
|
| /freebsd-12-stable/sbin/mount_nfs/ |
| D | mount_nfs.c | 100 long fhsize; member 118 static int fhsize = 0; variable 876 fhsize = nfhret.fhsize; in nfs_tryproto() 877 fh = malloc(fhsize); in nfs_tryproto() 881 bcopy(nfhret.nfh, fh, fhsize); in nfs_tryproto() 884 build_iovec(iov, iovlen, "fh", fh, fhsize); in nfs_tryproto() 1002 np->fhsize = NFS_FHSIZE; in xdr_fh() 1005 if (!xdr_long(xdrsp, &np->fhsize)) in xdr_fh() 1007 if (np->fhsize <= 0 || np->fhsize > NFS3_FHSIZE) in xdr_fh() 1009 if (!xdr_opaque(xdrsp, (caddr_t)np->nfh, np->fhsize)) in xdr_fh()
|
| /freebsd-12-stable/sys/nfsclient/ |
| D | nfsargs.h | 52 int fhsize; /* Size, in bytes, of fh */ member
|
| /freebsd-12-stable/sys/nfs/ |
| D | nfsdiskless.h | 82 int fhsize; /* Size, in bytes, of fh */ member
|
| /freebsd-12-stable/contrib/amd/libamu/ |
| D | mount_fs.c | 788 plog(XLOG_DEBUG, "NA->fhsize = %d", nap->fhsize); in print_nfs23_args() 789 fhlen = nap->fhsize; in print_nfs23_args() 914 nap->fhsize = fhp->v3.am_fh3_length; in compute_nfs23_args() 917 nap->fhsize = FHSIZE; in compute_nfs23_args()
|
| /freebsd-12-stable/sys/contrib/zstd/lib/decompress/ |
| D | zstd_decompress.c | 336 { size_t const fhsize = ZSTD_frameHeaderSize_internal(src, srcSize, format); in ZSTD_getFrameHeader_internal() local 337 if (srcSize < fhsize) return fhsize; in ZSTD_getFrameHeader_internal() 338 zfhPtr->headerSize = (U32)fhsize; in ZSTD_getFrameHeader_internal()
|
| /freebsd-12-stable/sys/contrib/zstd/lib/legacy/ |
| D | zstd_v06.c | 2987 { size_t const fhsize = ZSTDv06_frameHeaderSize(src, srcSize); in ZSTDv06_getFrameParams() local 2988 if (srcSize < fhsize) return fhsize; } in ZSTDv06_getFrameParams()
|
| D | zstd_v07.c | 3165 { size_t const fhsize = ZSTDv07_frameHeaderSize(src, srcSize); in ZSTDv07_getFrameParams() local 3166 if (srcSize < fhsize) return fhsize; } in ZSTDv07_getFrameParams()
|
| /freebsd-12-stable/sys/fs/nfs/ |
| D | nfs_commonsubs.c | 1193 struct nfsvattr *nap, struct nfsfh **nfhpp, fhandle_t *fhp, int fhsize, in nfsv4_loadattr() argument 1584 fhp, fhsize)) in nfsv4_loadattr()
|
| /freebsd-12-stable/sys/fs/nfsserver/ |
| D | nfs_nfsdserv.c | 3893 int error = 0, ret, fhsize = NFSX_MYFH; in nfsrvd_verify() local 3907 error = nfsv4_loadattr(nd, vp, &nva, NULL, &fh, fhsize, NULL, in nfsrvd_verify()
|
| /freebsd-12-stable/contrib/amd/ |
| D | ChangeLog | 12577 * hlfsd/hlfsd.c (main): fill in fhsize field if exists 12580 * amd/ops_{nfs,afs}.c (mount_toplvl): fill in fhsize field if
|