/freebsd/usr.sbin/edquota/ |
H A D | edquota.c | 530 char *fsp, line1[BUFSIZ], line2[BUFSIZ]; in readprivs() local 543 if ((fsp = strtok(line1, " \t:")) == NULL) { in readprivs() 548 warnx("%s: %s: bad format", fsp, &fsp[strlen(fsp) + 1]); in readprivs() 574 warnx("%s:%s: bad format", fsp, cp); in readprivs() 584 warnx("%s: %s: bad format", fsp, line2); in readprivs() 610 warnx("%s: %s: bad format cnt %d", fsp, &cp[7], cnt); in readprivs() 620 if (strcmp(fsp, qup->fsname)) in readprivs() 650 warnx("%s: cannot change current allocation", fsp); in readprivs() 708 char *fsp, bunits[10], iunits[10], line1[BUFSIZ]; in readtimes() local 721 if ((fsp = strtok(line1, " \t:")) == NULL) { in readtimes() [all …]
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clport.c | 966 nfscl_loadfsinfo(struct nfsmount *nmp, struct nfsfsinfo *fsp) in nfscl_loadfsinfo() argument 969 if ((nmp->nm_wsize == 0 || fsp->fs_wtpref < nmp->nm_wsize) && in nfscl_loadfsinfo() 970 fsp->fs_wtpref >= NFS_FABLKSIZE) in nfscl_loadfsinfo() 971 nmp->nm_wsize = (fsp->fs_wtpref + NFS_FABLKSIZE - 1) & in nfscl_loadfsinfo() 973 if (fsp->fs_wtmax < nmp->nm_wsize && fsp->fs_wtmax > 0) { in nfscl_loadfsinfo() 974 nmp->nm_wsize = fsp->fs_wtmax & ~(NFS_FABLKSIZE - 1); in nfscl_loadfsinfo() 976 nmp->nm_wsize = fsp->fs_wtmax; in nfscl_loadfsinfo() 980 if ((nmp->nm_rsize == 0 || fsp->fs_rtpref < nmp->nm_rsize) && in nfscl_loadfsinfo() 981 fsp->fs_rtpref >= NFS_FABLKSIZE) in nfscl_loadfsinfo() 982 nmp->nm_rsize = (fsp->fs_rtpref + NFS_FABLKSIZE - 1) & in nfscl_loadfsinfo() [all …]
|
H A D | nfs_clrpcops.c | 4848 nfsrpc_statfs(vnode_t vp, struct nfsstatfs *sbp, struct nfsfsinfo *fsp, in nfsrpc_statfs() argument 4876 NULL, NULL, sbp, fsp, NULL, 0, NULL, leasep, NULL, in nfsrpc_statfs() 5002 nfsrpc_fsinfo(vnode_t vp, struct nfsfsinfo *fsp, struct ucred *cred, in nfsrpc_fsinfo() argument 5019 fsp->fs_rtmax = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() 5020 fsp->fs_rtpref = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() 5021 fsp->fs_rtmult = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() 5022 fsp->fs_wtmax = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() 5023 fsp->fs_wtpref = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() 5024 fsp->fs_wtmult = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo() 5025 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 | 72 struct fstab *fsp; in main() 171 while ((fsp = getfsent()) != NULL) { in main() 172 if (strcmp(fsp->fs_type, FSTAB_SW) != 0) in main() 174 if (strstr(fsp->fs_mntops, "noauto") != NULL) in main() 177 strstr(fsp->fs_mntops, "late") && in main() 181 strstr(fsp->fs_mntops, "late") == NULL && in main() 184 Eflag |= (strstr(fsp->fs_mntops, "trimonce") != NULL); in main() 185 swfile = swap_on_off(fsp->fs_spec, 1, in main() 186 fsp->fs_mntops); in main() 73 struct fstab *fsp; main() local
|
/freebsd/sys/fs/nfs/ |
H A D | nfs_commonsubs.c | 1285 struct nfsfsinfo *fsp, NFSACL_T *aclp, int compare, int *retcmpp, in nfsv4_loadattr() argument 1345 if (fsp != NULL) { in nfsv4_loadattr() 1346 fsp->fs_rtmax = 8192; in nfsv4_loadattr() 1347 fsp->fs_rtpref = 8192; in nfsv4_loadattr() 1348 fsp->fs_maxname = NFS_MAXNAMLEN; in nfsv4_loadattr() 1349 fsp->fs_wtmax = 8192; in nfsv4_loadattr() 1350 fsp->fs_wtpref = 8192; in nfsv4_loadattr() 1351 fsp->fs_wtmult = NFS_FABLKSIZE; in nfsv4_loadattr() 1352 fsp->fs_dtpref = 8192; in nfsv4_loadattr() 1353 fsp->fs_maxfilesize = 0xffffffffffffffffull; in nfsv4_loadattr() [all …]
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_subr.c | 149 ffs_sbget(void *devfd, struct fs **fsp, off_t sblock, int flags, in ffs_sbget() argument 162 *fsp = NULL; in ffs_sbget() 175 *fsp = fs; in ffs_sbget() 239 *fsp = fs; in ffs_sbget() 248 readsuper(void *devfd, struct fs **fsp, off_t sblockloc, int flags, in readsuper() argument 255 error = (*readfunc)(devfd, sblockloc, (void **)fsp, SBLOCKSIZE); in readsuper() 258 fs = *fsp; in readsuper() 636 ffs_sbsearch(void *devfd, struct fs **fsp, int reqflags, in ffs_sbsearch() argument 657 error = ffs_sbget(devfd, fsp, UFS_STDSB, flags, filltype, readfunc); in ffs_sbsearch() 673 if (ffs_sbget(devfd, fsp, UFS_STDSB, flags, filltype, readfunc) == 0) in ffs_sbsearch() [all …]
|
/freebsd/usr.sbin/quot/ |
H A D | quot.c | 377 struct fsizes *fp, **fsp; in dofsizes() local 407 for (fsp = &fsizes; (fp = *fsp); fsp = &fp->fsz_next) { in dofsizes() 415 fp->fsz_next = *fsp; in dofsizes() 416 *fsp = fp; in dofsizes()
|
/freebsd/sbin/savecore/ |
H A D | savecore.c | 1336 struct fstab *fsp; in enum_dumpdevs() local 1353 fsp = getfsent(); in enum_dumpdevs() 1354 if (fsp == NULL) in enum_dumpdevs() 1356 if (strcmp(fsp->fs_vfstype, "swap") != 0 && in enum_dumpdevs() 1357 strcmp(fsp->fs_vfstype, "dump") != 0) in enum_dumpdevs() 1367 argv[argc] = strdup(fsp->fs_spec); in enum_dumpdevs()
|
/freebsd/usr.sbin/mountd/ |
H A D | mountd.c | 2408 delete_export(struct iovec *iov, int iovlen, struct statfs *fsp, char *errmsg) in delete_export() argument 2412 if (getvfsbyname(fsp->f_fstypename, &vfc) != 0) { in delete_export() 2414 fsp->f_fstypename); in delete_export() 2422 if (!(fsp->f_flags & MNT_EXPORTED)) in delete_export() 2432 iov[1].iov_base = fsp->f_fstypename; in delete_export() 2433 iov[1].iov_len = strlen(fsp->f_fstypename) + 1; in delete_export() 2434 iov[3].iov_base = fsp->f_mntonname; in delete_export() 2435 iov[3].iov_len = strlen(fsp->f_mntonname) + 1; in delete_export() 2436 iov[5].iov_base = fsp->f_mntfromname; in delete_export() 2437 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 | 151 int ffs_sbget(void *devfd, struct fs **fsp, off_t sblock, int flags,
|