/freebsd/sys/ufs/ffs/ |
H A D | ffs_subr.c | 44 #include <ufs/ffs/fs.h> 47 uint32_t ffs_calc_sbhash(struct fs *); 71 #include <ufs/ffs/fs.h> 82 ffs_verify_dinode_ckhash(struct fs *fs, struct ufs2_dinode *dip) in ffs_verify_dinode_ckhash() argument 89 if (dip->di_mode == 0 || (fs->fs_metackhash & CK_INODE) == 0) in ffs_verify_dinode_ckhash() 108 ffs_update_dinode_ckhash(struct fs *fs, struct ufs2_dinode *dip) in ffs_update_dinode_ckhash() argument 111 if (dip->di_mode == 0 || (fs->fs_metackhash & CK_INODE) == 0) in ffs_update_dinode_ckhash() 126 static int readsuper(void *, struct fs **, off_t, int, 128 static void ffs_oldfscompat_read(struct fs *, ufs2_daddr_t); 129 static int validate_sblock(struct fs *, int); [all …]
|
H A D | ffs_alloc.c | 98 #include <ufs/ffs/fs.h> 109 static void ffs_blkfree_cg(struct ufsmount *, struct fs *, 115 static void ffs_checkcgintegrity(struct fs *, uint64_t, int); 125 static ufs1_daddr_t ffs_mapsearch(struct fs *, struct cg *, ufs2_daddr_t, int); 158 struct fs *fs; in ffs_alloc() local 169 fs = ump->um_fs; in ffs_alloc() 172 if ((uint64_t)size > fs->fs_bsize || fragoff(fs, size) != 0) { in ffs_alloc() 173 printf("dev = %s, bsize = %ld, size = %d, fs = %s\n", in ffs_alloc() 174 devtoname(ump->um_dev), (long)fs->fs_bsize, size, in ffs_alloc() 175 fs->fs_fsmnt); in ffs_alloc() [all …]
|
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lcode.c | 38 void luaK_nil (FuncState *fs, int from, int n) { in luaK_nil() argument 41 if (fs->pc > fs->lasttarget) { /* no jumps to current position? */ in luaK_nil() 42 previous = &fs->f->code[fs->pc-1]; in luaK_nil() 56 luaK_codeABC(fs, OP_LOADNIL, from, n - 1, 0); /* else no optimization */ in luaK_nil() 60 int luaK_jump (FuncState *fs) { in luaK_jump() argument 61 int jpc = fs->jpc; /* save list of jumps to here */ in luaK_jump() 63 fs->jpc = NO_JUMP; in luaK_jump() 64 j = luaK_codeAsBx(fs, OP_JMP, 0, NO_JUMP); in luaK_jump() 65 luaK_concat(fs, &j, jpc); /* keep them on hold */ in luaK_jump() 70 void luaK_ret (FuncState *fs, int first, int nret) { in luaK_ret() argument [all …]
|
H A D | lparser.c | 59 lua_assert(ls->fs != NULL || ls->t.token == TK_EOS); in anchor_token() 80 static l_noret errorlimit (FuncState *fs, int limit, const char *what) { in errorlimit() argument 81 lua_State *L = fs->ls->L; in errorlimit() 83 int line = fs->f->linedefined; in errorlimit() 89 luaX_syntaxerror(fs->ls, msg); in errorlimit() 93 static void checklimit (FuncState *fs, int v, int l, const char *what) { in checklimit() argument 94 if (v > l) errorlimit(fs, l, what); in checklimit() 153 init_exp(e, VK, luaK_stringK(ls->fs, s)); in codestring() 163 FuncState *fs = ls->fs; in registerlocalvar() local 164 Proto *f = fs->f; in registerlocalvar() [all …]
|
H A D | lcode.h | 39 #define getcode(fs,e) ((fs)->f->code[(e)->u.info]) argument 41 #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) argument 43 #define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET) argument 45 #define luaK_jumpto(fs,t) luaK_patchlist(fs, luaK_jump(fs), t) argument 47 LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); 48 LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); 49 LUAI_FUNC int luaK_codek (FuncState *fs, int reg, int k); 50 LUAI_FUNC void luaK_fixline (FuncState *fs, int line); 51 LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); 52 LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); [all …]
|
/freebsd/bin/mv/tests/ |
H A D | mv_test.sh | 9 atf_check mkdir fs 10 atf_check mount -t tmpfs -o size=1m tmp fs 14 umount fs || true 62 for FS in "" "fs/" ; do 64 atf_check mv fa ${FS}fb 65 mv_checkfile fa ${FS}fb 80 for FS in "" "fs/" ; do 83 atf_check mkdir -p ${FS}1/2/3 84 atf_check mv fa fb ${FS}1/2/3 85 mv_checkfile fa ${FS}1/2/3/fa [all …]
|
/freebsd/sys/vm/ |
H A D | vm_fault.c | 176 static void vm_fault_dontneed(const struct faultstate *fs, vm_offset_t vaddr, 178 static void vm_fault_prefault(const struct faultstate *fs, vm_offset_t addra, 243 vm_fault_unlock_map(struct faultstate *fs) in vm_fault_unlock_map() argument 246 if (fs->lookup_still_valid) { in vm_fault_unlock_map() 247 vm_map_lookup_done(fs->map, fs->entry); in vm_fault_unlock_map() 248 fs->lookup_still_valid = false; in vm_fault_unlock_map() 253 vm_fault_unlock_vp(struct faultstate *fs) in vm_fault_unlock_vp() argument 256 if (fs->vp != NULL) { in vm_fault_unlock_vp() 257 vput(fs->vp); in vm_fault_unlock_vp() 258 fs->vp = NULL; in vm_fault_unlock_vp() [all …]
|
/freebsd/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 53 #include <ufs/ffs/fs.h> 66 static int32_t ffs_mapsearch(struct fs *, struct cg *, daddr_t, int); 91 struct fs *fs = ip->i_fs; in ffs_alloc() local 96 if (size > fs->fs_bsize || fragoff(fs, size) != 0) { in ffs_alloc() 98 fs->fs_bsize, size); in ffs_alloc() 100 if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0) in ffs_alloc() 102 if (bpref >= fs->fs_size) in ffs_alloc() 105 cg = ino_to_cg(fs, ip->i_number); in ffs_alloc() 107 cg = dtog(fs, bpref); in ffs_alloc() 151 struct fs *fs; in ffs_blkpref_ufs1() local [all …]
|
/freebsd/contrib/kyua/utils/fs/ |
H A D | operations_test.cpp | 29 #include "utils/fs/operations.hpp" 54 #include "utils/fs/directory.hpp" 55 #include "utils/fs/exceptions.hpp" 56 #include "utils/fs/path.hpp" 62 namespace fs = utils::fs; 91 const fs::path lookup_path = fs::path(dir) / name; in lookup() 109 const fs::path source("f1.txt"); in ATF_TEST_CASE_BODY() 110 const fs::path target("f2.txt"); in ATF_TEST_CASE_BODY() 113 fs::copy(source, target); in ATF_TEST_CASE_BODY() 121 const fs::path source("f1.txt"); in ATF_TEST_CASE_BODY() [all …]
|
H A D | lua_module_test.cpp | 29 #include "utils/fs/lua_module.hpp" 37 #include "utils/fs/operations.hpp" 38 #include "utils/fs/path.hpp" 40 namespace fs = utils::fs; 48 fs::open_fs(state); in ATF_TEST_CASE_BODY() 49 lutok::do_string(state, "return fs.basename", 0, 1, 0); in ATF_TEST_CASE_BODY() 51 lutok::do_string(state, "return fs.dirname", 0, 1, 0); in ATF_TEST_CASE_BODY() 53 lutok::do_string(state, "return fs.join", 0, 1, 0); in ATF_TEST_CASE_BODY() 63 fs::open_fs(state); in ATF_TEST_CASE_BODY() 65 lutok::do_string(state, "return fs.basename('/my/test//file_foobar')", in ATF_TEST_CASE_BODY() [all …]
|
H A D | directory_test.cpp | 29 #include "utils/fs/directory.hpp" 36 #include "utils/fs/exceptions.hpp" 37 #include "utils/fs/operations.hpp" 38 #include "utils/fs/path.hpp" 40 namespace fs = utils::fs; 46 const fs::directory_entry entry("name"); in ATF_TEST_CASE_BODY() 54 const fs::directory_entry entry1("name"); in ATF_TEST_CASE_BODY() 55 const fs::directory_entry entry2("other-name"); in ATF_TEST_CASE_BODY() 68 const fs::directory_entry entry1("name"); in ATF_TEST_CASE_BODY() 69 const fs::directory_entry entry2("other-name"); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_alloc.c | 50 #include <fs/ext2fs/fs.h> 51 #include <fs/ext2fs/inode.h> 52 #include <fs/ext2fs/ext2_mount.h> 53 #include <fs/ext2fs/ext2fs.h> 54 #include <fs/ext2fs/ext2_extern.h> 103 struct m_ext2fs *fs; in ext2_alloc() local 109 fs = ip->i_e2fs; in ext2_alloc() 113 if ((u_int)size > fs->e2fs_bsize || blkoff(fs, size) != 0) { in ext2_alloc() 114 vn_printf(ip->i_devvp, "bsize = %lu, size = %d, fs = %s\n", in ext2_alloc() 115 (long unsigned int)fs->e2fs_bsize, size, fs->e2fs_fsmnt); in ext2_alloc() [all …]
|
H A D | ext2_csum.c | 45 #include <fs/ext2fs/fs.h> 46 #include <fs/ext2fs/ext2fs.h> 47 #include <fs/ext2fs/ext2_dinode.h> 48 #include <fs/ext2fs/inode.h> 49 #include <fs/ext2fs/ext2_dir.h> 50 #include <fs/ext2fs/htree.h> 51 #include <fs/ext2fs/ext2_extattr.h> 52 #include <fs/ext2fs/ext2_extern.h> 75 ext2_sb_csum_set_seed(struct m_ext2fs *fs) in ext2_sb_csum_set_seed() argument 78 if (EXT2_HAS_INCOMPAT_FEATURE(fs, EXT2F_INCOMPAT_CSUM_SEED)) in ext2_sb_csum_set_seed() [all …]
|
/freebsd/lib/libufs/ |
H A D | cgroup.c | 39 #include <ufs/ffs/fs.h> 55 struct fs *fs; in cgballoc() local 58 fs = &disk->d_fs; in cgballoc() 61 for (bno = 0; bno < fs->fs_fpg / fs->fs_frag; bno++) in cgballoc() 62 if (ffs_isblock(fs, blksfree, bno)) in cgballoc() 66 fs->fs_cs(fs, cgp->cg_cgx).cs_nbfree--; in cgballoc() 67 ffs_clrblock(fs, blksfree, (long)bno); in cgballoc() 68 ffs_clusteracct(fs, cgp, bno, -1); in cgballoc() 70 fs->fs_cstotal.cs_nbfree--; in cgballoc() 71 fs->fs_fmod = 1; in cgballoc() [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/delegate/ |
H A D | delegate_common.kshlib | 206 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/contrib/lua/src/ |
H A D | lcode.c | 41 static int codesJ (FuncState *fs, OpCode o, int sj, int k); 74 static TValue *const2val (FuncState *fs, const expdesc *e) { in const2val() argument 76 return &fs->ls->dyd->actvar.arr[e->u.info].k; in const2val() 84 int luaK_exp2const (FuncState *fs, const expdesc *e, TValue *v) { in luaK_exp2const() argument 98 setsvalue(fs->ls->L, v, e->u.strval); in luaK_exp2const() 102 setobj(fs->ls->L, v, const2val(fs, e)); in luaK_exp2const() 116 static Instruction *previousinstruction (FuncState *fs) { in previousinstruction() argument 118 if (fs->pc > fs->lasttarget) in previousinstruction() 119 return &fs->f->code[fs->pc - 1]; /* previous instruction */ in previousinstruction() 131 void luaK_nil (FuncState *fs, int from, int n) { in luaK_nil() argument [all …]
|
H A D | lcode.h | 48 #define luaK_codeABC(fs,o,a,b,c) luaK_codeABCk(fs,o,a,b,c,0) argument 55 #define getinstruction(fs,e) ((fs)->f->code[(e)->u.info]) argument 58 #define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET) argument 60 #define luaK_jumpto(fs,t) luaK_patchlist(fs, luaK_jump(fs), t) argument 62 LUAI_FUNC int luaK_code (FuncState *fs, Instruction i); 63 LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); 64 LUAI_FUNC int luaK_codeAsBx (FuncState *fs, OpCode o, int A, int Bx); 65 LUAI_FUNC int luaK_codeABCk (FuncState *fs, OpCode o, int A, 68 LUAI_FUNC int luaK_exp2const (FuncState *fs, const expdesc *e, TValue *v); 69 LUAI_FUNC void luaK_fixline (FuncState *fs, int line); [all …]
|
H A D | lparser.c | 74 static l_noret errorlimit (FuncState *fs, int limit, const char *what) { in errorlimit() argument 75 lua_State *L = fs->ls->L; in errorlimit() 77 int line = fs->f->linedefined; in errorlimit() 83 luaX_syntaxerror(fs->ls, msg); in errorlimit() 87 static void checklimit (FuncState *fs, int v, int l, const char *what) { in checklimit() argument 88 if (v > l) errorlimit(fs, l, what); in checklimit() 175 static int registerlocalvar (LexState *ls, FuncState *fs, TString *varname) { in registerlocalvar() argument 176 Proto *f = fs->f; in registerlocalvar() 178 luaM_growvector(ls->L, f->locvars, fs->ndebugvars, f->sizelocvars, in registerlocalvar() 182 f->locvars[fs->ndebugvars].varname = varname; in registerlocalvar() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/ |
H A D | delegate_common.kshlib | 193 typeset fs=$3 197 verify_fs_create $user $perm $fs 200 verify_fs_destroy $user $perm $fs 203 verify_fs_snapshot $user $perm $fs 206 verify_fs_rollback $user $perm $fs 209 verify_fs_clone $user $perm $fs 212 verify_fs_rename $user $perm $fs 215 verify_fs_mount $user $perm $fs 218 verify_fs_share $user $perm $fs 221 verify_fs_mountpoint $user $perm $fs [all …]
|
/freebsd/stand/libsa/ |
H A D | dosfs.c | 146 #define bytsec(fs, n) ((n) >> (fs)->sshift) argument 147 #define secbyt(fs, s) ((s) << (fs)->sshift) argument 148 #define depsec(fs) (1 << (fs)->dshift) argument 149 #define entsec(fs, e) ((e) >> (fs)->dshift) argument 150 #define bytblk(fs, n) ((n) >> (fs)->bshift) argument 151 #define blkbyt(fs, b) ((b) << (fs)->bshift) argument 152 #define secblk(fs, s) ((s) >> ((fs)->bshift - (fs)->sshift)) argument 153 #define blksec(fs, b) ((b) << ((fs)->bshift - (fs)->sshift)) argument 156 #define blkoff(fs, b) (secbyt(fs, (fs)->lsndta) + \ argument 157 blkbyt(fs, (b) - LOCLUS)) [all …]
|
/freebsd/sys/kern/ |
H A D | Make.tags.inc | 17 ${SYS}/fs/autofs/*.[ch] \ 18 ${SYS}/fs/cd9660/*.[ch] \ 19 ${SYS}/fs/cuse/*.[ch] \ 20 ${SYS}/fs/deadfs/*.[ch] \ 21 ${SYS}/fs/devfs/*.[ch] \ 22 ${SYS}/fs/ext2fs/*.[ch] \ 23 ${SYS}/fs/fdescfs/*.[ch] \ 24 ${SYS}/fs/fifofs/*.[ch] \ 25 ${SYS}/fs/fuse/*.[ch] \ 26 ${SYS}/fs/msdosfs/*.[ch] \ [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | send_realloc_dnode_size.ksh | 47 rm -f $BACKDIR/fs-dn-legacy 48 rm -f $BACKDIR/fs-dn-1k 49 rm -f $BACKDIR/fs-dn-2k 50 rm -f $BACKDIR/fs-attr 52 datasetexists $POOL/fs && destroy_dataset $POOL/fs -rR 59 log_must zfs create -o dnodesize=1k $POOL/fs 60 log_must mk_files 200 262144 0 $POOL/fs 61 log_must zfs snapshot $POOL/fs@a 66 rm /$POOL/fs/* 68 log_must zfs unmount $POOL/fs [all …]
|
H A D | send_encrypted_hierarchy.ksh | 52 "-o keyformat=passphrase $POOL/$FS" 53 log_must zfs snapshot $POOL/$FS@snap 54 log_must zfs clone $POOL/$FS@snap $POOL/clone 55 log_must zfs create $POOL/$FS/child 59 log_must eval "zfs send -wR $POOL@before > $BACKDIR/fs-before-R" 60 log_must eval "zfs receive -d -F $POOL2 < $BACKDIR/fs-before-R" 61 dstds=$(get_dst_ds $POOL/$FS $POOL2) 62 log_must cmp_ds_subs $POOL/$FS $dstds 64 log_must verify_encryption_root $POOL2/$FS $POOL2/$FS 65 log_must verify_keylocation $POOL2/$FS "prompt" [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/ |
H A D | events_001_pos.ksh | 64 -e "sysevent.fs.zfs.pool_create" \ 65 -e "sysevent.fs.zfs.history_event" \ 66 -e "sysevent.fs.zfs.config_sync" \ 71 -e "sysevent.fs.zfs.history_event" \ 76 -e "sysevent.fs.zfs.config_sync" \ 77 -e "sysevent.fs.zfs.vdev_add" \ 80 -e "sysevent.fs.zfs.vdev_remove_aux" \ 85 -e "sysevent.fs.zfs.config_sync" \ 86 -e "sysevent.fs.zfs.vdev_add" \ 89 -e "sysevent.fs.zfs.vdev_remove_dev" \ [all …]
|
/freebsd/tools/diag/prtblknos/ |
H A D | prtblknos.c | 28 #include <ufs/ffs/fs.h> 46 void prtblknos(struct fs *fs, union dinode *dp); 48 static const char *distance(struct fs *, ufs2_daddr_t, ufs2_daddr_t); 49 static void printblk(struct fs *, ufs_lbn_t, ufs2_daddr_t, int, ufs_lbn_t); 50 static void indirprt(struct fs *, int, ufs_lbn_t, ufs_lbn_t, ufs2_daddr_t, 54 prtblknos(struct fs *fs, union dinode *dp) in prtblknos() argument 61 if (fs->fs_magic == FS_UFS1_MAGIC) { in prtblknos() 95 if (size < fs->fs_maxsymlinklen) { in prtblknos() 97 (fs->fs_magic == FS_UFS1_MAGIC) ? in prtblknos() 119 lastlbn = howmany(size, fs->fs_bsize); in prtblknos() [all …]
|