Home
last modified time | relevance | path

Searched refs:fsp (Results 1 – 13 of 13) sorted by relevance

/src/usr.sbin/edquota/
H A Dedquota.c530 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 …]
/src/sys/fs/nfsclient/
H A Dnfs_clport.c966 nfscl_loadfsinfo(struct nfsmount *nmp, struct nfsfsinfo *fsp, in nfscl_loadfsinfo() argument
970 if ((nmp->nm_wsize == 0 || fsp->fs_wtpref < nmp->nm_wsize) && in nfscl_loadfsinfo()
971 fsp->fs_wtpref >= NFS_FABLKSIZE) in nfscl_loadfsinfo()
972 nmp->nm_wsize = (fsp->fs_wtpref + NFS_FABLKSIZE - 1) & in nfscl_loadfsinfo()
974 if (fsp->fs_wtmax < nmp->nm_wsize && fsp->fs_wtmax > 0) { in nfscl_loadfsinfo()
975 nmp->nm_wsize = fsp->fs_wtmax & ~(NFS_FABLKSIZE - 1); in nfscl_loadfsinfo()
977 nmp->nm_wsize = fsp->fs_wtmax; in nfscl_loadfsinfo()
981 if ((nmp->nm_rsize == 0 || fsp->fs_rtpref < nmp->nm_rsize) && in nfscl_loadfsinfo()
982 fsp->fs_rtpref >= NFS_FABLKSIZE) in nfscl_loadfsinfo()
983 nmp->nm_rsize = (fsp->fs_rtpref + NFS_FABLKSIZE - 1) & in nfscl_loadfsinfo()
[all …]
H A Dnfs_clrpcops.c4994 nfsrpc_statfs(vnode_t vp, struct nfsstatfs *sbp, struct nfsfsinfo *fsp, in nfsrpc_statfs() argument
5026 NULL, NULL, sbp, fsp, NULL, 0, NULL, leasep, NULL, in nfsrpc_statfs()
5169 nfsrpc_fsinfo(vnode_t vp, struct nfsfsinfo *fsp, struct ucred *cred, in nfsrpc_fsinfo() argument
5186 fsp->fs_rtmax = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5187 fsp->fs_rtpref = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5188 fsp->fs_rtmult = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5189 fsp->fs_wtmax = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5190 fsp->fs_wtpref = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5191 fsp->fs_wtmult = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5192 fsp->fs_dtpref = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
[all …]
/src/lib/libufs/
H A Dsblock.c196 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()
/src/sbin/swapon/
H A Dswapon.c74 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()
/src/usr.sbin/quot/
H A Dquot.c312 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()
/src/sys/contrib/openzfs/config/
H A Dkernel-fs-context.m420 static struct fs_context *fsp __attribute__ ((unused));
21 fsp = vfs_dup_fs_context(&fs);
/src/sys/fs/nfs/
H A Dnfs_commonsubs.c1328 struct nfsfsinfo *fsp, NFSACL_T *aclp, int compare, int *retcmpp, in nfsv4_loadattr() argument
1392 if (fsp != NULL) { in nfsv4_loadattr()
1393 fsp->fs_rtmax = 8192; in nfsv4_loadattr()
1394 fsp->fs_rtpref = 8192; in nfsv4_loadattr()
1395 fsp->fs_maxname = NFS_MAXNAMLEN; in nfsv4_loadattr()
1396 fsp->fs_wtmax = 8192; in nfsv4_loadattr()
1397 fsp->fs_wtpref = 8192; in nfsv4_loadattr()
1398 fsp->fs_wtmult = NFS_FABLKSIZE; in nfsv4_loadattr()
1399 fsp->fs_dtpref = 8192; in nfsv4_loadattr()
1400 fsp->fs_maxfilesize = 0xffffffffffffffffull; in nfsv4_loadattr()
[all …]
/src/sys/ufs/ffs/
H A Dffs_subr.c152 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 …]
/src/sbin/savecore/
H A Dsavecore.c1339 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()
/src/usr.sbin/mountd/
H A Dmountd.c2461 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 …]
/src/sys/dev/fdc/
H A Dfdc.c1491 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()
/src/stand/libsa/
H A Dufs.c149 int ffs_sbget(void *devfd, struct fs **fsp, off_t sblock, int flags,