Home
last modified time | relevance | path

Searched refs:fs (Results 101 – 125 of 1553) sorted by relevance

12345678910>>...63

/freebsd/bin/cp/
H A Dutils.c103 struct stat sb, *fs; in copy_file() local
109 fs = entp->fts_statp; in copy_file()
233 if (pflag && setfile(fs, to_fd)) in copy_file()
316 setfile(struct stat *fs, int fd) in setfile() argument
328 tspec[0] = fs->st_atim; in setfile()
329 tspec[1] = fs->st_mtim; in setfile()
349 if (!gotstat || fs->st_uid != ts.st_uid || fs->st_gid != ts.st_gid) in setfile()
350 if (fdval ? fchown(fd, fs->st_uid, fs->st_gid) : in setfile()
351 (islink ? lchown(to.p_path, fs->st_uid, fs->st_gid) : in setfile()
352 chown(to.p_path, fs->st_uid, fs->st_gid))) { in setfile()
[all …]
/freebsd/contrib/kyua/engine/
H A Dkyuafile.cpp57 namespace fs = utils::fs;
97 static fs::path
98 relativize(const fs::path& root, const fs::path& file) in relativize()
102 if (root == fs::path(".")) in relativize()
119 const fs::path _source_root;
122 const fs::path _build_root;
125 const fs::path _relative_filename;
183 parser(const fs::path& source_root_, const fs::path& build_root_, in parser()
251 fs::path
670 const fs::path&
[all …]
/freebsd/contrib/kyua/store/
H A Dtransaction_test.cpp49 namespace fs = utils::fs;
63 const fs::path test_db("test.db"); in check_get_put_context()
65 if (fs::exists(test_db)) in check_get_put_context()
66 fs::unlink(test_db); in check_get_put_context()
124 .add_required_file(fs::path("/file1/yes")) in ATF_TEST_CASE_BODY()
125 .add_required_file(fs::path("/file2/foo")) in ATF_TEST_CASE_BODY()
126 .add_required_program(fs::path("/bin/ls")) in ATF_TEST_CASE_BODY()
127 .add_required_program(fs::path("cp")) in ATF_TEST_CASE_BODY()
136 "atf", fs::path("the/binary"), fs::path("/some/root"), "the-suite") in ATF_TEST_CASE_BODY()
144 fs::path("test.db")); in ATF_TEST_CASE_BODY()
[all …]
H A Dschema_inttest.cpp51 namespace fs = utils::fs;
70 static fs::path
117 "plain", fs::path("foo_test"), fs::path("/test/suite/root"), in check_action_2()
124 "plain", fs::path("subdir/another_test"), fs::path("/test/suite/root"), in check_action_2()
138 "plain", fs::path("subdir/bar_test"), fs::path("/test/suite/root"), in check_action_2()
146 "plain", fs::path("top_test"), fs::path("/test/suite/root"), in check_action_2()
154 "plain", fs::path("last_test"), fs::path("/test/suite/root"), in check_action_2()
233 "atf", fs::path("complex_test"), fs::path("/usr/tests"), in check_action_3()
268 "atf", fs::path("simple_test"), fs::path("/usr/tests"), in check_action_3()
345 "plain", fs::path("subdir/another_test"), fs::path("/usr/tests"), in check_action_4()
[all …]
H A Dread_transaction_test.cpp52 namespace fs = utils::fs;
67 fs::path("test.db")); in ATF_TEST_CASE_BODY()
84 fs::path("test.db")); in ATF_TEST_CASE_BODY()
94 fs::path("test.db")); in ATF_TEST_CASE_BODY()
111 fs::path("test-bad-name.db")); in ATF_TEST_CASE_BODY()
124 fs::path("test-bad-name.db")); in ATF_TEST_CASE_BODY()
163 fs::path("test.db")); in ATF_TEST_CASE_BODY()
179 fs::path("test.db")); in ATF_TEST_CASE_BODY()
199 "plain", fs::path("a/prog1"), fs::path("/the/root"), "suite1") in ATF_TEST_CASE_BODY()
213 "plain", fs::path("b/prog2"), fs::path("/the/root"), "suite2") in ATF_TEST_CASE_BODY()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/rsend/
H A Drsend_012_pos.ksh140 rand_set_prop $fs atime "on" "off"
142 rand_set_prop $fs compression "on" "off" "lzjb" "gzip" \
145 rand_set_prop $fs copies "1" "2" "3"
146 rand_set_prop $fs devices "on" "off"
147 rand_set_prop $fs exec "on" "off"
148 rand_set_prop $fs quota "512M" "1024M"
149 rand_set_prop $fs recordsize "512" "2K" "8K" "32K" "128K"
150 rand_set_prop $fs setuid "on" "off"
151 rand_set_prop $fs snapdir "hidden" "visible"
152 rand_set_prop $fs xattr "on" "off"
[all …]
/freebsd/contrib/kyua/utils/process/
H A Dchild_test.cpp62 namespace fs = utils::fs;
518 fs::path("unused.out"), fs::path("stderr")); in ATF_TEST_CASE_BODY()
533 fs::path("unused.out"), fs::path("unused.err")); in ATF_TEST_CASE_BODY()
609 ATF_REQUIRE(!fs::exists(fs::path("a.txt"))); in ATF_TEST_CASE_BODY()
610 ATF_REQUIRE(!fs::exists(fs::path("b.txt"))); in ATF_TEST_CASE_BODY()
624 ATF_REQUIRE(!fs::exists(fs::path("raise-error"))); in ATF_TEST_CASE_BODY()
625 ATF_REQUIRE(!fs::exists(fs::path("created"))); in ATF_TEST_CASE_BODY()
639 ATF_REQUIRE(fs::exists(fs::path("created"))); in ATF_TEST_CASE_BODY()
640 ATF_REQUIRE(!fs::exists(fs::path("raise-error"))); in ATF_TEST_CASE_BODY()
673 fs::path("root/helpers"), args, fs::path("out"), fs::path("err")); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/usr.sbin/cxgbetool/
H A Dcxgbetool.c868 filters_show_ipaddr(t->fs.type, t->fs.val.dip, t->fs.mask.dip); in do_show_one_filter_info()
869 filters_show_ipaddr(t->fs.type, t->fs.val.sip, t->fs.mask.sip); in do_show_one_filter_info()
885 t->fs.dmac[0], t->fs.dmac[1], in do_show_one_filter_info()
886 t->fs.dmac[2], t->fs.dmac[3], in do_show_one_filter_info()
887 t->fs.dmac[4], t->fs.dmac[5], in do_show_one_filter_info()
893 t->fs.smac[0], t->fs.smac[1], in do_show_one_filter_info()
894 t->fs.smac[2], t->fs.smac[3], in do_show_one_filter_info()
895 t->fs.smac[4], t->fs.smac[5], in do_show_one_filter_info()
1348 (t.fs.eport || t.fs.newdmac || t.fs.newsmac || t.fs.newvlan || in set_filter()
1355 *t.fs.nat_dip || *t.fs.nat_sip || t.fs.nat_dport || t.fs.nat_sport)) { in set_filter()
[all …]
/freebsd/tools/test/stress2/tools/
H A Dzapsb.c34 char *fs, sblock[SBLOCKSIZE]; in main() local
35 struct fs *sbp; in main()
41 fs = *++argv; in main()
44 if ((fd = open(fs, O_RDWR, 0)) < 0) in main()
45 err(1, "%s", fs); in main()
48 err(1, "%s", fs); in main()
50 errx(1, "%s: can't read superblock", fs); in main()
51 sbp = (struct fs *)sblock; in main()
56 sbp->fs_bsize >= (int)sizeof(struct fs)) in main()
70 err(1, "%s", fs); in main()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount_all_mountpoints.ksh57 fs=0
60 fs=$fs/$i
62 filesystems+=($fs)
67 fs=${filesystems[$i]}
68 setup_filesystem "$DISKS" "$TESTPOOL" "$fs" "$path/$i" ctr
97 fs=$TESTPOOL/${filesystems[$(($fscount - $i - 1))]}
99 zfs set mountpoint=$mnt $fs
115 for fs in ${filesystems[@]}; do
116 cleanup_filesystem "$TESTPOOL" "$fs"
135 for fs in ${filesystems[@]}; do
[all …]
H A Dzfs_mount_007_pos.ksh78 typeset fs=$1
115 val=$(get_prop $prop $fs)
125 fs=$TESTPOOL/$TESTFS
129 orig_val=$(get_prop $property $fs)
132 reverse_opt=$(get_reverse_option $fs $property)
133 log_must zfs unmount $fs
134 log_must zfs mount -o $reverse_opt $fs
136 cur_val=$(get_prop $property $fs)
150 log_must zfs unmount $fs
151 log_must zfs mount $fs
[all …]
H A Dzfs_mount_009_neg.ksh52 for fs in $multifs ; do
53 datasets="$datasets $TESTPOOL/$fs"
60 typeset fs
62 for fs in $multifs ; do
64 "$fs" \
65 "${TEST_BASE_DIR%%/}/testroot$$/$TESTPOOL/$fs"
72 typeset fs
86 typeset fs
88 for fs in $multifs ; do
89 log_must unmounted $TESTPOOL/$fs
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_clone/
H A Dzfs_clone_010_pos.ksh67 for fs in $datasets; do
100 for fs in $datasets; do
101 if [[ $fs == $ds ]]; then
109 expected_clone=$fs
126 for fs in $datasets; do
127 expected_clone=$fs/$TESTCLONE.$i
176 for fs in $datasets; do
211 fs=$TESTPOOL/$TESTFS1
218 log_must zfs create $fs
219 log_must zfs snapshot $fs@snap
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/reservation/
H A Dreservation_021_neg.ksh37 fs=$TESTPOOL/$TESTFS/${0##*/}.$$
41 destroy_dataset "$fs" "-f"
53 log_must zfs create $fs
54 resv=$(get_prop refreservation $fs)
58 log_mustnot zfs set refreservation=auto $fs
59 resv=$(get_prop refreservation $fs)
63 log_must zfs set refreservation=$fs_size $fs
64 resv=$(get_prop refreservation $fs)
68 log_mustnot zfs set refreservation=auto $fs
69 resv=$(get_prop refreservation $fs)
/freebsd/tests/sys/cddl/zfs/tests/mount/
H A Dsetup.ksh39 fs=$TESTPOOL/$TESTFS.$i
47 log_must $ZFS create $fs
48 log_must $ZFS set mountpoint=$dir $fs
50 TESTFSS="$TESTFSS $fs"
52 log_note Make sure file system $fs was mounted
53 mounted $fs || log_fail File system $fs is not mounted
56 log_must $ZFS unmount $fs
58 log_note Make sure file system $fs is unmounted
59 unmounted $fs || log_fail File system $fs is not unmounted
/freebsd/sbin/fsck_ffs/
H A Dgjournal.c65 struct fs *fs; in gjournal_check() local
75 fs = &sblock; in gjournal_check()
77 if (fs->fs_unrefs == 0) { in gjournal_check()
83 for (cg = 0; cg < fs->fs_ncg; cg++) { in gjournal_check()
87 cdevname, cg, fs->fs_ncg, cg * 100 / fs->fs_ncg); in gjournal_check()
92 cg * 100 / fs->fs_ncg); in gjournal_check()
110 for (cino = 0; cino < fs->fs_ipg; cino++) { in gjournal_check()
111 ino = fs->fs_ipg * cg + cino; in gjournal_check()
142 fs->fs_unrefs--; in gjournal_check()
156 if (fs->fs_unrefs == 0) in gjournal_check()
/freebsd/usr.sbin/quotaon/
H A Dquotaon.c58 static int quotaonoff(struct fstab *fs, int, int);
64 struct fstab *fs; in main() local
101 while ((fs = getfsent()) != NULL) { in main()
102 if (strcmp(fs->fs_vfstype, "ufs") || in main()
103 strcmp(fs->fs_type, FSTAB_RW)) in main()
107 errs += quotaonoff(fs, offmode, GRPQUOTA); in main()
109 errs += quotaonoff(fs, offmode, USRQUOTA); in main()
116 errs += quotaonoff(fs, offmode, GRPQUOTA); in main()
118 errs += quotaonoff(fs, offmode, USRQUOTA); in main()
141 quotaonoff(struct fstab *fs, int offmode, int type) in quotaonoff() argument
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_mount/
H A Dzfs_mount_010_neg.ksh58 if ! ismounted $fs; then
59 log_must $ZFS mount $fs
66 fs=$TESTPOOL/$TESTFS
67 if ! ismounted $fs; then
68 log_must $ZFS mount $fs
71 log_mustnot $ZFS mount $fs
73 mpt=$(get_prop mountpoint $fs)
74 log_must $ZFS umount $fs
77 log_mustnot $ZFS mount $fs
H A Dzfs_mount_009_neg.ksh61 for fs in $multifs ; do
62 datasets="$datasets $TESTPOOL/$fs"
70 typeset fs
72 for fs in $multifs ; do
74 "$fs" \
75 "${TEST_BASE_DIR%%/}/testroot${TESTCASE_ID}/$TESTPOOL/$fs"
82 typeset fs
96 typeset fs
98 for fs in $multifs ; do
99 log_must unmounted $TESTPOOL/$fs
/freebsd/stand/libsa/
H A Dufs.c164 struct fs *fs = fp->f_fs; in read_inode() local
169 if (fs == NULL) in read_inode()
178 fsbtodb(fs, ino_to_fsba(fs, inumber)), fs->fs_bsize, in read_inode()
220 struct fs *fs = fp->f_fs; in block_map() local
322 struct fs *fs = fp->f_fs; in buf_write_file() local
397 struct fs *fs = fp->f_fs; in buf_read_file() local
506 struct fs *fs; in ufs_open() local
545 fp->f_fs = fs; in ufs_open()
648 struct fs *fs = fp->f_fs; in ufs_open() local
907 char *fs; in ufs_mount() local
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zfs_list/
H A Dzfs_list_007_pos.ksh63 typeset -i fs=0
71 (( fs=0 ))
72 while (( fs<${#fs_type[*]} )); do
74 [[ "${fs_type[$fs]}" == "volume" || "${fs_type[$fs]}" == "snapshot" ]]; then
75 log_must eval "zfs list -H -d $dp -o name -t ${fs_type[$fs]} $DEPTH_FS > $DEPTH_OUTPUT"
78 log_mustnot zfs list -rH -o name -t ${fs_type[$fs]} $DEPTH_FS | grep -E "$eg_opt"
80 log_must eval "zfs list -H -d $dp -o name -t ${fs_type[$fs]} $DEPTH_FS > $DEPTH_OUTPUT"
81 …log_must eval "zfs list -rH -o name -t ${fs_type[$fs]} $DEPTH_FS | grep -E '$eg_opt' > $EXPECT_OUT…
84 (( fs+=1 ))
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unmount/
H A Dzfs_unmount_007_neg.ksh53 for fs in $multifs ; do
54 datasets="$datasets $TESTPOOL/$fs"
62 typeset fs
64 for fs in $multifs ; do
66 "$fs" \
67 "${TEST_BASE_DIR%%/}/testroot$$/$TESTPOOL/$fs"
74 typeset fs
87 typeset fs
89 for fs in $multifs ; do
90 log_must mounted $TESTPOOL/$fs
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_unmount/
H A Dzfs_unmount_007_neg.ksh62 for fs in $multifs ; do
63 datasets="$datasets $TESTPOOL/$fs"
71 typeset fs
73 for fs in $multifs ; do
75 "$fs" \
76 "${TEST_BASE_DIR%%/}/testroot${TESTCASE_ID}/$TESTPOOL/$fs"
83 typeset fs
96 typeset fs
98 for fs in $multifs ; do
99 log_must mounted $TESTPOOL/$fs
/freebsd/sys/fs/ext2fs/
H A Dext2_extattr.c202 fs = ip->i_e2fs; in ext2_extattr_inode_list()
205 fsbtodb(fs, ino_to_fsba(fs, ip->i_number)), in ext2_extattr_inode_list()
213 EXT2_INODE_SIZE(fs) * ino_to_fsbo(fs, ip->i_number)); in ext2_extattr_inode_list()
276 fs = ip->i_e2fs; in ext2_extattr_block_list()
343 fs = ip->i_e2fs; in ext2_extattr_inode_get()
346 fsbtodb(fs, ino_to_fsba(fs, ip->i_number)), in ext2_extattr_inode_get()
354 EXT2_INODE_SIZE(fs) * ino_to_fsbo(fs, ip->i_number)); in ext2_extattr_inode_get()
551 fsbtodb(fs, ino_to_fsba(fs, ip->i_number)), in ext2_extattr_inode_delete()
559 EXT2_INODE_SIZE(fs) * ino_to_fsbo(fs, ip->i_number)); in ext2_extattr_inode_delete()
917 fsbtodb(fs, ino_to_fsba(fs, ip->i_number)), in ext2_extattr_inode_set()
[all …]
/freebsd/usr.sbin/fstyp/
H A Dext2fs.c55 e2sb_t *fs; in fstyp_ext2fs() local
58 fs = (e2sb_t *)read_buf(fp, EXT2FS_SB_OFFSET, 512); in fstyp_ext2fs()
59 if (fs == NULL) in fstyp_ext2fs()
63 if (fs->s_magic == EXT2_SUPER_MAGIC && in fstyp_ext2fs()
64 fs->s_rev_level == EXT2_DYNAMIC_REV) { in fstyp_ext2fs()
68 free(fs); in fstyp_ext2fs()
72 s_volume_name = fs->s_volume_name; in fstyp_ext2fs()
74 s_volume_name[sizeof(fs->s_volume_name) - 1] = '\0'; in fstyp_ext2fs()
80 free(fs); in fstyp_ext2fs()

12345678910>>...63