/freebsd/sbin/umount/ |
H A D | umount.c | 80 int umountfs(struct statfs *sfs); 90 struct statfs *mntbuf, *sfs; in main() local 165 sfs = &mntbuf[mntsize]; in main() 166 if (checkvfsname(sfs->f_fstypename, typelist)) in main() 168 if (strcmp(sfs->f_mntonname, "/dev") == 0) in main() 170 if (umountfs(sfs) != 0) in main() 260 struct statfs *sfs; in checkname() local 268 sfs = checkmntlist(mntname); in checkname() 273 if (sfs == NULL) { in checkname() 277 sfs in checkname() 334 umountfs(struct statfs * sfs) umountfs() argument 491 struct statfs *sfs, *foundsfs; getmntentry() local 595 struct statfs *sfs; checkmntlist() local [all...] |
/freebsd/sys/kern/ |
H A D | kern_sendfile.c | 114 sendfile_sync_destroy(struct sendfile_sync *sfs) in sendfile_sync_destroy() argument 116 KASSERT(sfs->count == 0, ("sendfile sync %p still busy", sfs)); in sendfile_sync_destroy() 118 cv_destroy(&sfs->cv); in sendfile_sync_destroy() 119 mtx_destroy(&sfs->mtx); in sendfile_sync_destroy() 120 free(sfs, M_SENDFILE); in sendfile_sync_destroy() 124 sendfile_sync_signal(struct sendfile_sync *sfs) in sendfile_sync_signal() argument 126 mtx_lock(&sfs->mtx); in sendfile_sync_signal() 127 KASSERT(sfs->count > 0, ("sendfile sync %p not busy", sfs)); in sendfile_sync_signal() 128 if (--sfs->count == 0) { in sendfile_sync_signal() 129 if (!sfs->waiting) { in sendfile_sync_signal() [all …]
|
H A D | vfs_default.c | 810 struct statfs *sfs; in vop_stdallocate() local 847 sfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in vop_stdallocate() 848 error = VFS_STATFS(vp->v_mount, sfs, td); in vop_stdallocate() 850 maxfilesize = sfs->f_maxfilesize; in vop_stdallocate() 851 free(sfs, M_STATFS); in vop_stdallocate()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/history/ |
H A D | history_003_pos.ksh | 62 spool=smallpool.$$; sfs=smallfs.$$ 64 log_must zfs create $spool/$sfs 70 zfs set compression=off $spool/$sfs 71 zfs set compression=on $spool/$sfs 72 zfs set compression=off $spool/$sfs 73 zfs set compression=on $spool/$sfs 74 zfs set compression=off $spool/$sfs
|
/freebsd/sys/contrib/openzfs/lib/libspl/os/freebsd/ |
H A D | mnttab.c | 98 statfs2mnttab(struct statfs *sfs, struct mnttab *mp) in statfs2mnttab() argument 102 strlcpy(gfstypename, sfs->f_fstypename, sizeof (gfstypename)); in statfs2mnttab() 105 strlcpy(gmntfromname, sfs->f_mntfromname, sizeof (gmntfromname)); in statfs2mnttab() 108 strlcpy(gmntonname, sfs->f_mntonname, sizeof (gmntonname)); in statfs2mnttab() 111 flags = sfs->f_flags; in statfs2mnttab() 144 struct statfs *sfs; in statfs_init() local 163 sfs = realloc(gsfs, allfs * sizeof (gsfs[0])); in statfs_init() 164 if (sfs != NULL) in statfs_init() 165 gsfs = sfs; in statfs_init()
|
H A D | getmntany.c | 44 struct statfs sfs; in getextmntent() local 57 if (statfs(path, &sfs) != 0) { in getextmntent() 62 statfs2mnttab(&sfs, (struct mnttab *)entry); in getextmntent()
|
/freebsd/lib/libc/gen/ |
H A D | statvfs.c | 45 struct statfs sfs; in fstatvfs() local 49 rv = _fstatfs(fd, &sfs); in fstatvfs() 53 rv = sfs2svfs(&sfs, result); in fstatvfs() 72 struct statfs sfs; in statvfs() local 76 rv = statfs(path, &sfs); in statvfs() 80 sfs2svfs(&sfs, result); in statvfs()
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_disk_posix.c | 1522 set_statvfs_transfer_size(struct filesystem *fs, const struct statvfs *sfs) in set_statvfs_transfer_size() argument 1524 fs->xfer_align = sfs->f_frsize > 0 ? (long)sfs->f_frsize : -1; in set_statvfs_transfer_size() 1527 fs->min_xfer_size = sfs->f_iosize > 0 ? (long)sfs->f_iosize : -1; in set_statvfs_transfer_size() 1528 fs->incr_xfer_size = sfs->f_iosize > 0 ? (long)sfs->f_iosize : -1; in set_statvfs_transfer_size() 1530 fs->min_xfer_size = sfs->f_bsize > 0 ? (long)sfs->f_bsize : -1; in set_statvfs_transfer_size() 1531 fs->incr_xfer_size = sfs->f_bsize > 0 ? (long)sfs->f_bsize : -1; in set_statvfs_transfer_size() 1538 set_statfs_transfer_size(struct filesystem *fs, const struct statfs *sfs) in set_statfs_transfer_size() argument 1540 fs->xfer_align = sfs->f_bsize > 0 ? (long)sfs->f_bsize : -1; in set_statfs_transfer_size() 1543 fs->min_xfer_size = sfs->f_iosize > 0 ? (long)sfs->f_iosize : -1; in set_statfs_transfer_size() 1544 fs->incr_xfer_size = sfs->f_iosize > 0 ? (long)sfs->f_iosize : -1; in set_statfs_transfer_size() [all …]
|
/freebsd/usr.sbin/snapinfo/ |
H A D | snapinfo.c | 47 static int find_snapshot(struct statfs *sfs); 118 find_snapshot(struct statfs *sfs) in find_snapshot() argument 123 if (ufs_disk_fillout(&disk, sfs->f_mntfromname) == -1) in find_snapshot() 132 find_inum(sfs->f_mntonname); in find_snapshot()
|
/freebsd/sbin/reboot/ |
H A D | reboot.c | 118 struct statfs sfs; in write_nextboot() local 123 if (statfs("/boot", &sfs) != 0) in write_nextboot() 125 if (strcmp(sfs.f_fstypename, "ufs") == 0) { in write_nextboot() 130 } else if (strcmp(sfs.f_fstypename, "zfs") == 0) { in write_nextboot() 137 slash = strchr(sfs.f_mntfromname, '/'); in write_nextboot() 140 zfsbootcfg(sfs.f_mntfromname, force); in write_nextboot()
|
/freebsd/lib/libufs/ |
H A D | type.c | 94 struct statfs sfs; in ufs_disk_fillout_blank() local 137 if (statfs(name, &sfs) < 0) { in ufs_disk_fillout_blank() 141 strlcpy(dev, sfs.f_mntfromname, sizeof(dev)); in ufs_disk_fillout_blank()
|
/freebsd/bin/mv/ |
H A D | mv.c | 162 struct statfs sfs; in do_move() local 231 if (!statfs(path, &sfs) && in do_move() 232 !strcmp(path, sfs.f_mntonname)) { in do_move()
|
/freebsd/contrib/openbsm/libauditd/ |
H A D | auditd_lib.c | 605 struct statfs sfs; in auditd_read_dirs() local 633 if (statfs(cur_dir, &sfs) < 0) in auditd_read_dirs() 635 soft = (sfs.f_bfree < (sfs.f_blocks * auditd_minval / 100 )) ? in auditd_read_dirs() 637 hard = (sfs.f_bfree < AUDIT_HARD_LIMIT_FREE_BLOCKS) ? 1 : 0; in auditd_read_dirs()
|
/freebsd/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/ |
H A D | mnttab.h | 81 extern void statfs2mnttab(struct statfs *sfs, struct mnttab *mp);
|
/freebsd/sbin/mdmfs/ |
H A D | mdmfs.c | 562 struct statfs sfs; in do_mtptsetup() local 568 if (statfs(mtpoint, &sfs) == -1) { in do_mtptsetup() 572 if ((sfs.f_flags & MNT_RDONLY) != 0) { in do_mtptsetup()
|
/freebsd/lib/libbe/ |
H A D | be.c | 80 struct statfs sfs; in be_locate_rootfs() local 90 if (statfs("/", &sfs) == 0) { in be_locate_rootfs() 91 statfs2mnttab(&sfs, &entry); in be_locate_rootfs()
|
/freebsd/usr.sbin/makefs/ |
H A D | ffs.c | 487 struct statvfs sfs; in ffs_create_image() 509 if (fstatvfs(fsopts->fd, &sfs) == -1) { in ffs_create_image() 516 bufsize = sfs.f_iosize; in ffs_create_image() 484 struct statvfs sfs; ffs_create_image() local
|
H A D | ffs.c | 487 struct statvfs sfs; in ffs_create_image() local 509 if (fstatvfs(fsopts->fd, &sfs) == -1) { in ffs_create_image() 516 bufsize = sfs.f_iosize; in ffs_create_image()
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_alloc.c | 3030 const struct statfs *sfs; in ffs_getcg() local 3055 sfs = &mp->mnt_stat; in ffs_getcg() 3059 sfs->f_mntfromname, sfs->f_mntonname, (intmax_t)cg, in ffs_getcg() 3070 sfs = &mp->mnt_stat; in ffs_getcg() 3073 sfs->f_mntfromname, sfs->f_mntonname); in ffs_getcg()
|
/freebsd/usr.sbin/services_mkdb/ |
H A D | services | 755 sfs-smp-net 451/tcp #Cray Network Semaphore server 756 sfs-smp-net 451/udp #Cray Network Semaphore server 757 sfs-config 452/tcp #Cray SFS config server 758 sfs-config 452/udp #Cray SFS config server
|