Home
last modified time | relevance | path

Searched refs:sfs (Results 1 – 19 of 19) sorted by relevance

/freebsd/sbin/umount/
H A Dumount.c80 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/contrib/openzfs/tests/zfs-tests/tests/functional/history/
H A Dhistory_003_pos.ksh53 spool=smallpool.$$; sfs=smallfs.$$
55 log_must zfs create $spool/$sfs
61 zfs set compression=off $spool/$sfs
62 zfs set compression=on $spool/$sfs
63 zfs set compression=off $spool/$sfs
64 zfs set compression=on $spool/$sfs
65 zfs set compression=off $spool/$sfs
/freebsd/sys/contrib/openzfs/lib/libspl/os/freebsd/
H A Dmnttab.c98 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 Dgetextmntent.c34 struct statfs sfs; in getextmntent() local
47 if (statfs(path, &sfs) != 0) { in getextmntent()
52 statfs2mnttab(&sfs, entry); in getextmntent()
/freebsd/lib/libc/gen/
H A Dstatvfs.c45 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 Darchive_read_disk_posix.c1527 set_statvfs_transfer_size(struct filesystem *fs, const struct statvfs *sfs) in set_statvfs_transfer_size() argument
1529 fs->xfer_align = sfs->f_frsize > 0 ? (long)sfs->f_frsize : -1; in set_statvfs_transfer_size()
1532 fs->min_xfer_size = sfs->f_iosize > 0 ? (long)sfs->f_iosize : -1; in set_statvfs_transfer_size()
1533 fs->incr_xfer_size = sfs->f_iosize > 0 ? (long)sfs->f_iosize : -1; in set_statvfs_transfer_size()
1535 fs->min_xfer_size = sfs->f_bsize > 0 ? (long)sfs->f_bsize : -1; in set_statvfs_transfer_size()
1536 fs->incr_xfer_size = sfs->f_bsize > 0 ? (long)sfs->f_bsize : -1; in set_statvfs_transfer_size()
1543 set_statfs_transfer_size(struct filesystem *fs, const struct statfs *sfs) in set_statfs_transfer_size() argument
1545 fs->xfer_align = sfs->f_bsize > 0 ? (long)sfs->f_bsize : -1; in set_statfs_transfer_size()
1548 fs->min_xfer_size = sfs->f_iosize > 0 ? (long)sfs->f_iosize : -1; in set_statfs_transfer_size()
1549 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 Dsnapinfo.c47 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 Dreboot.c121 struct statfs sfs; in write_nextboot() local
127 if (statfs("/boot", &sfs) != 0) in write_nextboot()
129 if (strcmp(sfs.f_fstypename, "ufs") == 0) { in write_nextboot()
134 } else if (strcmp(sfs.f_fstypename, "zfs") == 0) { in write_nextboot()
141 slash = strchr(sfs.f_mntfromname, '/'); in write_nextboot()
144 zfsbootcfg(sfs.f_mntfromname, force); in write_nextboot()
/freebsd/lib/libufs/
H A Dtype.c94 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 Dmv.c162 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 Dauditd_lib.c605 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 Dmnttab.h55 extern void statfs2mnttab(struct statfs *sfs, struct mnttab *mp);
/freebsd/sbin/mdmfs/
H A Dmdmfs.c553 struct statfs sfs; in do_mtptsetup() local
559 if (statfs(mtpoint, &sfs) == -1) { in do_mtptsetup()
563 if ((sfs.f_flags & MNT_RDONLY) != 0) { in do_mtptsetup()
/freebsd/sys/kern/
H A Dvfs_default.c817 struct statfs *sfs; in vop_stdallocate() local
854 sfs = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); in vop_stdallocate()
855 error = VFS_STATFS(vp->v_mount, sfs, td); in vop_stdallocate()
857 maxfilesize = sfs->f_maxfilesize; in vop_stdallocate()
858 free(sfs, M_STATFS); in vop_stdallocate()
/freebsd/crypto/krb5/src/util/verto/
H A Dev.c4226 struct statfs sfs; in infy_add() local
4234 else if (!statfs (w->path, &sfs) in infy_add()
4235 && (sfs.f_type == 0x1373 /* devfs */ in infy_add()
4236 || sfs.f_type == 0x4006 /* fat */ in infy_add()
4237 || sfs.f_type == 0x4d44 /* msdos */ in infy_add()
4238 || sfs.f_type == 0xEF53 /* ext2/3 */ in infy_add()
4239 || sfs.f_type == 0x72b6 /* jffs2 */ in infy_add()
4240 || sfs.f_type == 0x858458f6 /* ramfs */ in infy_add()
4241 || sfs.f_type == 0x5346544e /* ntfs */ in infy_add()
4242 || sfs.f_type == 0x3153464a /* jfs */ in infy_add()
[all …]
/freebsd/lib/libbe/
H A Dbe.c59 struct statfs sfs; in be_locate_rootfs() local
69 if (statfs("/", &sfs) == 0) { in be_locate_rootfs()
70 statfs2mnttab(&sfs, &entry); in be_locate_rootfs()
/freebsd/sys/ufs/ffs/
H A Dffs_alloc.c3030 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/makefs/
H A Dffs.c487 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/usr.sbin/services_mkdb/
H A Dservices755 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