| /freebsd/usr.sbin/edquota/ |
| H A D | edquota.c | 531 char *fsp, line1[BUFSIZ], line2[BUFSIZ]; in readprivs() local 544 if ((fsp = strtok(line1, " \t:")) == NULL) { in readprivs() 549 warnx("%s: %s: bad format", fsp, &fsp[strlen(fsp) + 1]); in readprivs() 575 warnx("%s:%s: bad format", fsp, cp); in readprivs() 585 warnx("%s: %s: bad format", fsp, line2); in readprivs() 611 warnx("%s: %s: bad format cnt %d", fsp, &cp[7], cnt); in readprivs() 621 if (strcmp(fsp, qup->fsname)) in readprivs() 651 warnx("%s: cannot change current allocation", fsp); in readprivs() 709 char *fsp, bunits[10], iunits[10], line1[BUFSIZ]; in readtimes() local 722 if ((fsp = strtok(line1, " \t:")) == NULL) { in readtimes() [all …]
|
| /freebsd/sys/fs/nfsclient/ |
| H A D | nfs_clport.c | 990 nfscl_loadfsinfo(struct nfsmount *nmp, struct nfsfsinfo *fsp, in nfscl_loadfsinfo() argument 994 if ((nmp->nm_wsize == 0 || fsp->fs_wtpref < nmp->nm_wsize) && in nfscl_loadfsinfo() 995 fsp->fs_wtpref >= NFS_FABLKSIZE) in nfscl_loadfsinfo() 996 nmp->nm_wsize = (fsp->fs_wtpref + NFS_FABLKSIZE - 1) & in nfscl_loadfsinfo() 998 if (fsp->fs_wtmax < nmp->nm_wsize && fsp->fs_wtmax > 0) { in nfscl_loadfsinfo() 999 nmp->nm_wsize = fsp->fs_wtmax & ~(NFS_FABLKSIZE - 1); in nfscl_loadfsinfo() 1001 nmp->nm_wsize = fsp->fs_wtmax; in nfscl_loadfsinfo() 1005 if ((nmp->nm_rsize == 0 || fsp->fs_rtpref < nmp->nm_rsize) && in nfscl_loadfsinfo() 1006 fsp->fs_rtpref >= NFS_FABLKSIZE) in nfscl_loadfsinfo() 1007 nmp->nm_rsize = (fsp->fs_rtpref + NFS_FABLKSIZE - 1) & in nfscl_loadfsinfo() [all …]
|
| H A D | nfs_clrpcops.c | 4955 nfsrpc_statfs(vnode_t vp, struct nfsstatfs *sbp, struct nfsfsinfo *fsp, in nfsrpc_statfs() argument 4987 NULL, NULL, sbp, fsp, NULL, 0, NULL, leasep, NULL, in nfsrpc_statfs() 5130 nfsrpc_fsinfo(vnode_t vp, struct nfsfsinfo *fsp, struct ucred *cred, in nfsrpc_fsinfo() argument 5147 fsp->fs_rtmax = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() 5148 fsp->fs_rtpref = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() 5149 fsp->fs_rtmult = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() 5150 fsp->fs_wtmax = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() 5151 fsp->fs_wtpref = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() 5152 fsp->fs_wtmult = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() 5153 fsp->fs_dtpref = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() [all …]
|
| /freebsd/lib/libufs/ |
| H A D | sblock.c | 196 sbget(int devfd, struct fs **fsp, off_t sblockloc, int flags) in sbget() argument 200 error = ffs_sbget(&devfd, fsp, sblockloc, flags, "user", use_pread); in sbget() 212 sbsearch(int devfd, struct fs **fsp, int flags) in sbsearch() argument 216 error = ffs_sbsearch(&devfd, fsp, flags, "user", use_pread); in sbsearch()
|
| /freebsd/sbin/swapon/ |
| H A D | swapon.c | 74 struct fstab *fsp; in main() local 173 while ((fsp = getfsent()) != NULL) { in main() 174 if (strcmp(fsp->fs_type, FSTAB_SW) != 0) in main() 176 if (strstr(fsp->fs_mntops, "noauto") != NULL) in main() 179 strstr(fsp->fs_mntops, "late") && in main() 183 strstr(fsp->fs_mntops, "late") == NULL && in main() 186 Eflag |= (strstr(fsp->fs_mntops, "trimonce") != NULL); in main() 187 swfile = swap_on_off(fsp->fs_spec, 1, in main() 188 fsp->fs_mntops); in main()
|
| /freebsd/usr.sbin/quot/ |
| H A D | quot.c | 312 struct fsizes *fp, **fsp; in dofsizes() local 321 for (fsp = &fsizes; (fp = *fsp); fsp = &fp->fsz_next) { in dofsizes() 328 fp->fsz_next = *fsp; in dofsizes() 329 *fsp = fp; in dofsizes()
|
| /freebsd/sys/contrib/openzfs/config/ |
| H A D | kernel-fs-context.m4 | 20 static struct fs_context *fsp __attribute__ ((unused)); 21 fsp = vfs_dup_fs_context(&fs);
|
| /freebsd/sys/fs/nfs/ |
| H A D | nfs_commonsubs.c | 1346 struct nfsfsinfo *fsp, NFSACL_T *aclp, int compare, int *retcmpp, in nfsv4_loadattr() argument 1410 if (fsp != NULL) { in nfsv4_loadattr() 1411 fsp->fs_rtmax = 8192; in nfsv4_loadattr() 1412 fsp->fs_rtpref = 8192; in nfsv4_loadattr() 1413 fsp->fs_maxname = NFS_MAXNAMLEN; in nfsv4_loadattr() 1414 fsp->fs_wtmax = 8192; in nfsv4_loadattr() 1415 fsp->fs_wtpref = 8192; in nfsv4_loadattr() 1416 fsp->fs_wtmult = NFS_FABLKSIZE; in nfsv4_loadattr() 1417 fsp->fs_dtpref = 8192; in nfsv4_loadattr() 1418 fsp->fs_maxfilesize = 0xffffffffffffffffull; in nfsv4_loadattr() [all …]
|
| /freebsd/sys/ufs/ffs/ |
| H A D | ffs_subr.c | 152 ffs_sbget(void *devfd, struct fs **fsp, off_t sblock, int flags, in ffs_sbget() argument 165 *fsp = NULL; in ffs_sbget() 178 *fsp = fs; in ffs_sbget() 242 *fsp = fs; in ffs_sbget() 251 readsuper(void *devfd, struct fs **fsp, off_t sblockloc, int flags, in readsuper() argument 258 error = (*readfunc)(devfd, sblockloc, (void **)fsp, SBLOCKSIZE); in readsuper() 261 fs = *fsp; in readsuper() 799 ffs_sbsearch(void *devfd, struct fs **fsp, int reqflags, in ffs_sbsearch() argument 820 error = ffs_sbget(devfd, fsp, UFS_STDSB, flags, filltype, readfunc); in ffs_sbsearch() 836 if (ffs_sbget(devfd, fsp, UFS_STDSB, flags, filltype, readfunc) == 0) in ffs_sbsearch() [all …]
|
| /freebsd/sbin/savecore/ |
| H A D | savecore.c | 1339 struct fstab *fsp; in enum_dumpdevs() local 1356 fsp = getfsent(); in enum_dumpdevs() 1357 if (fsp == NULL) in enum_dumpdevs() 1359 if (strcmp(fsp->fs_vfstype, "swap") != 0 && in enum_dumpdevs() 1360 strcmp(fsp->fs_vfstype, "dump") != 0) in enum_dumpdevs() 1370 argv[argc] = strdup(fsp->fs_spec); in enum_dumpdevs()
|
| /freebsd/usr.sbin/mountd/ |
| H A D | mountd.c | 2461 delete_export(struct iovec *iov, int iovlen, struct statfs *fsp, char *errmsg) in delete_export() argument 2465 if (getvfsbyname(fsp->f_fstypename, &vfc) != 0) { in delete_export() 2467 fsp->f_fstypename); in delete_export() 2475 if (!(fsp->f_flags & MNT_EXPORTED)) in delete_export() 2485 iov[1].iov_base = fsp->f_fstypename; in delete_export() 2486 iov[1].iov_len = strlen(fsp->f_fstypename) + 1; in delete_export() 2487 iov[3].iov_base = fsp->f_mntonname; in delete_export() 2488 iov[3].iov_len = strlen(fsp->f_mntonname) + 1; in delete_export() 2489 iov[5].iov_base = fsp->f_mntfromname; in delete_export() 2490 iov[5].iov_len = strlen(fsp->f_mntfromname) + 1; in delete_export() [all …]
|
| /freebsd/sys/dev/fdc/ |
| H A D | fdc.c | 1491 struct fdc_status *fsp; in fd_ioctl() local 1535 fsp = (struct fdc_status *)data; in fd_ioctl() 1538 memcpy(fsp->status, fd->fdc->status, 7 * sizeof(u_int)); in fd_ioctl()
|
| /freebsd/stand/libsa/ |
| H A D | ufs.c | 149 int ffs_sbget(void *devfd, struct fs **fsp, off_t sblock, int flags,
|