Searched refs:fs (Results 151 - 175 of 1478) sorted by relevance

1234567891011>>

/freebsd-current/contrib/llvm-project/lld/Common/
H A DFilesystem.cpp45 if (!sys::fs::exists(path) || !sys::fs::is_regular_file(path))
71 if (!sys::fs::createUniqueFile(path + "%%%%%%%%.tmp", tmpName)) {
72 if (!sys::fs::rename(path, tmpName))
75 sys::fs::remove(tmpName);
77 sys::fs::remove(path);
87 std::error_code ec = sys::fs::openFileForRead(path, fd);
88 sys::fs::remove(path);
138 std::make_unique<raw_fd_ostream>(file, ec, sys::fs::OpenFlags::OF_None);
152 std::unique_ptr<raw_fd_ostream> fs local
[all...]
/freebsd-current/tests/sys/cddl/zfs/tests/delegate/
H A Ddelegate_common.kshlib206 typeset fs=$3
211 verify_fs_create $user $perm $fs
215 verify_fs_destroy $user $perm $fs
219 verify_fs_snapshot $user $perm $fs
223 verify_fs_rollback $user $perm $fs
227 verify_fs_clone $user $perm $fs
231 verify_fs_rename $user $perm $fs
235 verify_fs_mount $user $perm $fs
239 verify_fs_share $user $perm $fs
243 verify_fs_mountpoint $user $perm $fs
[all...]
/freebsd-current/usr.sbin/makefs/ffs/
H A Dffs_balloc.c47 #include <ufs/ffs/fs.h>
82 struct fs *fs = ip->i_fs; local
89 const int needswap = UFS_FSNEEDSWAP(fs);
91 lbn = lblkno(fs, offset);
92 size = blkoff(fs, offset) + bufsize;
97 assert(size <= fs->fs_bsize);
107 lastlbn = lblkno(fs, ip->i_ffs1_size);
110 osize = blksize(fs, ip, nb);
111 if (osize < fs
339 struct fs *fs = ip->i_fs; local
[all...]
/freebsd-current/sys/ufs/ffs/
H A Dffs_snapshot.c70 #include <ufs/ffs/fs.h>
85 ffs_snapblkfree(struct fs *fs, argument
135 static int expunge_ufs1(struct vnode *, struct inode *, struct fs *,
136 int (*)(struct vnode *, ufs1_daddr_t *, ufs1_daddr_t *, struct fs *,
139 ufs1_daddr_t, ufs_lbn_t, ufs_lbn_t, ufs_lbn_t, ufs_lbn_t, struct fs *,
140 int (*)(struct vnode *, ufs1_daddr_t *, ufs1_daddr_t *, struct fs *,
143 struct fs *, ufs_lbn_t, int);
145 struct fs *, ufs_lbn_t, int);
147 struct fs *, ufs_lbn_
206 struct fs *copy_fs = NULL, *fs, *bpfs; local
916 struct fs *fs; local
1027 expunge_ufs1(struct vnode *snapvp, struct inode *cancelip, struct fs *fs, int (*acctfunc)(struct vnode *, ufs1_daddr_t *, ufs1_daddr_t *, struct fs *, ufs_lbn_t, int), int expungetype, int clearmode) argument
1122 indiracct_ufs1(struct vnode *snapvp, struct vnode *cancelvp, int level, ufs1_daddr_t blkno, ufs_lbn_t lbn, ufs_lbn_t rlbn, ufs_lbn_t remblks, ufs_lbn_t blksperindir, struct fs *fs, int (*acctfunc)(struct vnode *, ufs1_daddr_t *, ufs1_daddr_t *, struct fs *, ufs_lbn_t, int), int expungetype) argument
1197 fullacct_ufs1(struct vnode *vp, ufs1_daddr_t *oldblkp, ufs1_daddr_t *lastblkp, struct fs *fs, ufs_lbn_t lblkno, int exptype) argument
1215 snapacct_ufs1(struct vnode *vp, ufs1_daddr_t *oldblkp, ufs1_daddr_t *lastblkp, struct fs *fs, ufs_lbn_t lblkno, int expungetype) argument
1268 mapacct_ufs1(struct vnode *vp, ufs1_daddr_t *oldblkp, ufs1_daddr_t *lastblkp, struct fs *fs, ufs_lbn_t lblkno, int expungetype) argument
1294 ffs_blkfree(ITOUMP(ip), fs, vp, blkno, fs->fs_bsize, inum, local
1309 expunge_ufs2(struct vnode *snapvp, struct inode *cancelip, struct fs *fs, int (*acctfunc)(struct vnode *, ufs2_daddr_t *, ufs2_daddr_t *, struct fs *, ufs_lbn_t, int), int expungetype, int clearmode) argument
1406 indiracct_ufs2(struct vnode *snapvp, struct vnode *cancelvp, int level, ufs2_daddr_t blkno, ufs_lbn_t lbn, ufs_lbn_t rlbn, ufs_lbn_t remblks, ufs_lbn_t blksperindir, struct fs *fs, int (*acctfunc)(struct vnode *, ufs2_daddr_t *, ufs2_daddr_t *, struct fs *, ufs_lbn_t, int), int expungetype) argument
1481 fullacct_ufs2(struct vnode *vp, ufs2_daddr_t *oldblkp, ufs2_daddr_t *lastblkp, struct fs *fs, ufs_lbn_t lblkno, int exptype) argument
1499 snapacct_ufs2(struct vnode *vp, ufs2_daddr_t *oldblkp, ufs2_daddr_t *lastblkp, struct fs *fs, ufs_lbn_t lblkno, int expungetype) argument
1552 mapacct_ufs2(struct vnode *vp, ufs2_daddr_t *oldblkp, ufs2_daddr_t *lastblkp, struct fs *fs, ufs_lbn_t lblkno, int expungetype) argument
1579 ffs_blkfree(ITOUMP(ip), fs, vp, blkno, fs->fs_bsize, inum, local
1593 struct fs *fs; local
1643 struct fs *fs; local
1767 ffs_snapblkfree(struct fs *fs, struct vnode *devvp, ufs2_daddr_t bno, long size, ino_t inum, __enum_uint8(vtype) vtype, struct workhead *wkhd) argument
1989 struct fs *fs = ump->um_fs; local
2162 struct fs *fs; local
2270 struct fs *fs; local
2524 struct fs *fs; local
[all...]
H A Dffs_vfsops.c70 #include <ufs/ffs/fs.h>
86 static void ffs_oldfscompat_read(struct fs *, struct ufsmount *,
164 struct fs *fs; local
170 fs = ITOFS(ip);
171 lbn = lblkno(fs, offset);
172 bsize = blksize(fs, ip, lbn);
180 *res = (char *)bp->b_data + blkoff(fs, offset);
190 ffs_load_inode(struct buf *bp, struct inode *ip, struct fs *fs, ino_ argument
237 struct fs *fs; local
348 struct fs *fs; local
757 struct fs *fs, *newfs; local
912 struct fs *fs; local
1276 ffs_oldfscompat_read(struct fs *fs, struct ufsmount *ump, ufs2_daddr_t sblockloc) argument
1335 ffs_oldfscompat_write(struct fs *fs, struct ufsmount *ump) argument
1363 struct fs *fs; local
1562 struct fs *fs; local
1680 struct fs *fs; local
1831 struct fs *fs; local
2067 struct fs *fs; local
2155 struct fs *fs; local
2189 struct fs *fs; local
[all...]
/freebsd-current/contrib/kyua/utils/
H A Dstream.hpp32 /// Note that file-manipulation utilities live in utils::fs instead. The
44 #include "utils/fs/path_fwd.hpp"
49 std::auto_ptr< std::ostream > open_ostream(const utils::fs::path&);
51 std::string read_file(const utils::fs::path&);
/freebsd-current/contrib/kyua/utils/process/
H A Doperations.hpp38 #include "utils/fs/path_fwd.hpp"
45 void exec(const utils::fs::path&, const args_vector&) throw() UTILS_NORETURN;
46 void exec_unsafe(const utils::fs::path&, const args_vector&) UTILS_NORETURN;
H A Disolation.hpp38 #include "utils/fs/path_fwd.hpp"
50 const utils::fs::path&);
53 const utils::fs::path&);
/freebsd-current/contrib/kyua/engine/
H A Dplain.cpp43 #include "utils/fs/path.hpp"
50 namespace fs = utils::fs;
76 const fs::path& /* stdout_path */,
77 const fs::path& /* stderr_path */) const
97 const fs::path& /* control_directory */) const
120 const fs::path& /* control_directory */,
121 const fs::path& /* stdout_path */,
122 const fs::path& /* stderr_path */) const
H A Dfilters.hpp46 #include "utils/fs/path.hpp"
61 utils::fs::path test_program;
66 test_filter(const utils::fs::path&, const std::string&);
72 bool matches_test_program(const utils::fs::path&) const;
73 bool matches_test_case(const utils::fs::path&, const std::string&) const;
104 bool match_test_program(const utils::fs::path&) const;
105 match match_test_case(const utils::fs::path&, const std::string&) const;
125 bool match_test_program(const utils::fs::path&) const;
126 bool match_test_case(const utils::fs::path&, const std::string&);
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/
H A Dtst.rollback_mult.ksh22 fs=$TESTPOOL/$TESTFS
39 log_must zfs unmount $fs
41 log_must_program_sync $TESTPOOL - $fs $snap2 <<-EOF
43 fs = arg["argv"][1]
45 err = zfs.sync.rollback(fs)
50 err = zfs.sync.rollback(fs)
52 msg = "rolling back " .. fs .. " err=" .. err
56 log_must zfs mount $fs
/freebsd-current/tests/sys/pjdfstest/tests/
H A Dconf6 fs=$(mount -p | awk '$2 == "'$mountpoint'" { print toupper($3) }')
/freebsd-current/tests/sys/cddl/zfs/tests/reservation/
H A Dreservation_018_pos.ksh59 fs=$TESTPOOL/$TESTFS
62 space_avail=$(get_prop available $fs)
63 reserv_val=$(get_prop reservation $fs)
66 log_must $ZFS set reservation=$reservsize $fs
/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zfs_receive/
H A Dzfs_receive_007_neg.ksh39 # 1. Create pool and fs.
40 # 2. Create some files in fs and take snapshots.
69 fs=$TESTPOOL/$TESTFS
70 snap1=$fs@snap1
71 snap2=$fs@snap2
74 datasetexists $fs || log_must $ZFS create $fs
76 mntpnt=$(get_prop mountpoint $fs) || log_fail "get_prop mountpoint $fs"
86 log_mustnot eval "$ZFS receive -F $fs <
[all...]
/freebsd-current/sys/fs/procfs/
H A Dprocfs_note.c41 #include <fs/pseudofs/pseudofs.h>
42 #include <fs/procfs/procfs.h>
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend_realloc_encrypted_files.ksh46 rm -f $BACKDIR/fs@*
48 destroy_dataset $POOL/fs "-rR"
59 -o keylocation=file://$keyfile $POOL/fs
62 log_must zfs snapshot $POOL/fs@snap${last_snap}
63 log_must eval "zfs send -wp $POOL/fs@snap${last_snap} \
64 >$BACKDIR/fs@snap${last_snap}"
65 log_must eval "zfs recv $POOL/newfs < $BACKDIR/fs@snap${last_snap}"
83 rand_set_prop $POOL/fs checksum "off" "fletcher4" "sha256"
84 rand_set_prop $POOL/fs compression "${compress_prop_vals[@]}"
85 rand_set_prop $POOL/fs recordsiz
[all...]
H A Dsend_doall.ksh37 rm -f $BACKDIR/fs@*
38 destroy_dataset $POOL/fs "-rR"
44 log_must zfs create $POOL/fs
45 log_must zfs create $POOL/fs/child
49 log_must mkfile 16384 "/$POOL/fs/file$i" "/$POOL/fs/child/file$i"
50 log_must zfs snapshot -r $POOL/fs@snap$i
54 log_must eval "send_doall $POOL/fs@snap3 >$BACKDIR/fs@snap3"
55 log_must eval "zfs recv $POOL/newfs < $BACKDIR/fs
[all...]
/freebsd-current/contrib/kyua/store/
H A Dmigrate.cpp42 #include "utils/fs/exceptions.hpp"
43 #include "utils/fs/operations.hpp"
44 #include "utils/fs/path.hpp"
55 namespace fs = utils::fs;
76 get_schema_version(const fs::path& file)
100 migrate_schema_step(const fs::path& file,
104 const optional< fs::path > old_database = none)
114 const fs::path migration = store::detail::migration_file(version_from,
146 chunk_database(const fs
[all...]
/freebsd-current/contrib/kyua/utils/sqlite/
H A Dexceptions.hpp38 #include "utils/fs/path_fwd.hpp"
49 utils::optional< utils::fs::path > _db_filename;
52 explicit error(const utils::optional< utils::fs::path >&,
56 const utils::optional< utils::fs::path >& db_filename(void) const;
66 explicit api_error(const utils::optional< utils::fs::path >&,
82 explicit invalid_column_error(const utils::optional< utils::fs::path >&,
/freebsd-current/contrib/kyua/integration/helpers/
H A Drace.cpp46 #include "utils/fs/operations.hpp"
47 #include "utils/fs/path.hpp"
52 namespace fs = utils::fs;
69 const fs::path shared_path(shared_file.get());
71 if (fs::exists(shared_path)) {
97 fs::unlink(shared_path);
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount_014_neg.ksh32 fs=$TESTPOOL/$TESTFS
44 force_unmount $fs
47 log_mustnot mount.zfs $fs $mntpoint
56 log_mustnot $helper $fs $NONEXISTFSNAME
57 log_mustnot $helper $fs /dev/null
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_share/
H A Dzfs_share_003_pos.ksh50 set -A fs \
57 while (( i < ${#fs[*]} )); do
58 log_must zfs inherit -r sharenfs ${fs[((i + 1))]}
59 log_must unshare_fs ${fs[i]}
103 while (( i < ${#fs[*]} )); do
104 test_legacy_share ${fs[i]} ${fs[((i + 1))]}
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_promote/
H A Dzfs_promote_005_pos.ksh36 # The original fs was unmounted, 'zfs promote' still should succeed.
39 # 1. Create pool, fs and snapshot.
40 # 2. Create clone of fs.
41 # 3. Unmount fs, then verify 'zfs promote' clone still succeed.
53 log_must zfs promote $fs
59 log_assert "The original fs was unmounted, 'zfs promote' still should succeed."
62 fs=$TESTPOOL/$TESTFS
64 fssnap=$fs@fssnap
68 log_must zfs unmount $fs
71 log_must zfs promote $fs
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/projectquota/
H A Dprojectspace_002_pos.ksh40 # 1. set zfs projectquota to a fs
41 # 2. write some data to the fs with specified project and size
75 for fs in "$QFS" "$snapfs"; do
76 log_note "check the quota size in zfs projectspace $fs"
77 log_must eval "zfs projectspace $fs | grep $PRJID1 | grep 100M"
79 log_note "check the project used size in zfs projectspace $fs"
80 log_must eval "zfs projectspace $fs | grep $PRJID1 | grep 50\\.\*M"
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/userquota/
H A Duserspace_002_pos.ksh41 # 1. set zfs userquota to a fs
42 # 2. write some data to the fs with specified user and size
71 for fs in "$QFS" "$snapfs"; do
72 log_note "check the quota size in zfs userspace $fs"
73 log_must eval "zfs userspace $fs | grep $QUSER1 | grep 100M"
75 log_note "check the user used size in zfs userspace $fs"
76 log_must eval "zfs userspace $fs | grep $QUSER1 | grep 50\\.\*M"

Completed in 380 milliseconds

1234567891011>>