Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 25 of 1614) sorted by relevance

12345678910>>...65

/freebsd/sys/ufs/ffs/
H A Dffs_subr.c46 uint32_t ffs_calc_sbhash(struct fs *);
80 ffs_verify_dinode_ckhash(struct fs *fs, struct ufs2_dinode *dip) in ffs_verify_dinode_ckhash() argument
87 if (dip->di_mode == 0 || (fs->fs_metackhash & CK_INODE) == 0) in ffs_verify_dinode_ckhash()
106 ffs_update_dinode_ckhash(struct fs *fs, struct ufs2_dinode *dip) in ffs_update_dinode_ckhash() argument
109 if (dip->di_mode == 0 || (fs->fs_metackhash & CK_INODE) == 0) in ffs_update_dinode_ckhash()
124 static int readsuper(void *, struct fs **, off_t, int,
126 static int validate_sblock(struct fs *, int);
149 ffs_sbget(void *devfd, struct fs **fsp, off_t sblock, int flags, in ffs_sbget()
153 struct fs *fs; in ffs_sbget() local
161 fs = NULL; in ffs_sbget()
[all …]
H A Dfs.h340 struct fs { struct
450 CTASSERT(sizeof(struct fs) == 1376);
556 #define ACTIVECGNUM(fs, cg) ((fs)->fs_active[(cg) / (NBBY * sizeof(uint64_t))]) argument
558 #define ACTIVESET(fs, cg) do { \ argument
559 if ((fs)->fs_active) \
560 ACTIVECGNUM((fs), (cg)) |= ACTIVECGOFF((cg)); \
562 #define ACTIVECLEAR(fs, cg) do { \ argument
563 if ((fs)->fs_active) \
564 ACTIVECGNUM((fs), (cg)) &= ~ACTIVECGOFF((cg)); \
573 #define CGSIZE(fs) \ argument
[all …]
H A Dffs_alloc.c109 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()
174 devtoname(ump->um_dev), (long)fs->fs_bsize, size, in ffs_alloc()
175 fs->fs_fsmnt); in ffs_alloc()
190 if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0) in ffs_alloc()
193 freespace(fs, fs->fs_minfree) - numfrags(fs, size) < 0) in ffs_alloc()
[all …]
/freebsd/sys/vm/
H A Dvm_fault.c176 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 in vm_fault_unlock_vp()
263 vm_fault_deallocate(struct faultstate * fs) vm_fault_deallocate() argument
281 vm_fault_unlock_and_deallocate(struct faultstate * fs) vm_fault_unlock_and_deallocate() argument
289 vm_fault_dirty(struct faultstate * fs,vm_page_t m) vm_fault_dirty() argument
335 vm_fault_soft_fast(struct faultstate * fs) vm_fault_soft_fast() argument
450 vm_fault_restore_map_lock(struct faultstate * fs) vm_fault_restore_map_lock() argument
496 vm_fault_populate(struct faultstate * fs) vm_fault_populate() argument
784 vm_fault_object_ensure_wlocked(struct faultstate * fs) vm_fault_object_ensure_wlocked() argument
804 vm_fault_lock_vnode(struct faultstate * fs,bool objlocked) vm_fault_lock_vnode() argument
857 vm_fault_readahead(struct faultstate * fs) vm_fault_readahead() argument
905 vm_fault_lookup(struct faultstate * fs) vm_fault_lookup() argument
953 vm_fault_relookup(struct faultstate * fs) vm_fault_relookup() argument
1004 vm_fault_cow(struct faultstate * fs) vm_fault_cow() argument
1110 vm_fault_next(struct faultstate * fs) vm_fault_next() argument
1165 vm_fault_zerofill(struct faultstate * fs) vm_fault_zerofill() argument
1199 vm_fault_allocate_oom(struct faultstate * fs) vm_fault_allocate_oom() argument
1230 vm_fault_allocate(struct faultstate * fs) vm_fault_allocate() argument
1310 vm_fault_getpages(struct faultstate * fs,int * behindp,int * aheadp) vm_fault_getpages() argument
1427 vm_fault_busy_sleep(struct faultstate * fs) vm_fault_busy_sleep() argument
1457 vm_fault_object(struct faultstate * fs,int * behindp,int * aheadp) vm_fault_object() argument
1549 struct faultstate fs; vm_fault() local
1833 vm_fault_dontneed(const struct faultstate * fs,vm_offset_t vaddr,int ahead) vm_fault_dontneed() argument
1897 vm_fault_prefault(const struct faultstate * fs,vm_offset_t addra,int backward,int forward,bool obj_locked) vm_fault_prefault() argument
[all...]
/freebsd/usr.sbin/makefs/ffs/
H A Dffs_alloc.c66 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
155 fs = ip->i_fs; in ffs_blkpref_ufs1()
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlcode.c38 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 Dlparser.c59 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 Dlcode.h39 #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/contrib/kyua/utils/fs/
H A Doperations_test.cpp62 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()
122 const fs::path target("f2.txt"); in ATF_TEST_CASE_BODY()
124 ATF_REQUIRE_THROW_RE(fs::error, "Cannot open copy source f1.txt", in ATF_TEST_CASE_BODY()
125 fs::copy(source, target)); in ATF_TEST_CASE_BODY()
136 const fs::path source("f1.txt"); in ATF_TEST_CASE_BODY()
[all …]
H A Doperations.cpp72 namespace fs = utils::fs;
151 static void run_mount_tmpfs(const fs::path&, const uint64_t) UTILS_NORETURN;
161 run_mount_tmpfs(const fs::path& mount_point, const uint64_t size) in run_mount_tmpfs()
241 unmount_with_unmount2(const fs::path& mount_point) in unmount_with_unmount2()
247 throw fs::system_error(F("unmount(%s) failed") % mount_point, in unmount_with_unmount2()
261 unmount_with_umount8(const fs::path& mount_point) in unmount_with_umount8()
268 throw fs::system_error("Cannot fork to execute unmount tool", in unmount_with_umount8()
283 throw fs::system_error("Failed to wait for unmount subprocess", in unmount_with_umount8()
291 throw fs::error(F("Failed to unmount %s; returned exit code %s") in unmount_with_umount8()
294 throw fs::error(F("Failed to unmount %s; unmount tool received signal") in unmount_with_umount8()
[all …]
H A Ddirectory_test.cpp40 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()
81 const fs::directory_entry entry("this is the name"); in ATF_TEST_CASE_BODY()
91 fs::mkdir(fs::path("empty"), 0755); in ATF_TEST_CASE_BODY()
93 std::set< fs::directory_entry > contents; in ATF_TEST_CASE_BODY()
94 const fs::directory dir(fs::path("empty")); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/lua/src/
H A Dlcode.c41 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 Dlparser.c74 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 …]
H A Dlcode.h48 #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 …]
/freebsd/sys/fs/ext2fs/
H A Dext2_alloc.c103 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()
115 (long unsigned int)fs->e2fs_bsize, size, fs->e2fs_fsmnt); in ext2_alloc()
121 if (size == fs->e2fs_bsize && fs->e2fs_fbcount == 0) in ext2_alloc()
124 fs->e2fs_fbcount < fs->e2fs_rbcount) in ext2_alloc()
126 if (bpref >= fs->e2fs_bcount) in ext2_alloc()
129 cg = ino_to_cg(fs, ip->i_number); in ext2_alloc()
131 cg = dtog(fs, bpref); in ext2_alloc()
132 bno = (daddr_t)ext2_hashalloc(ip, cg, bpref, fs->e2fs_bsize, in ext2_alloc()
[all …]
H A Dfs.h102 #define fsbtodb(fs, b) ((daddr_t)(b) << (fs)->e2fs_fsbtodb) argument
103 #define dbtofsb(fs, b) ((b) >> (fs)->e2fs_fsbtodb) argument
106 #define ino_to_cg(fs, x) (((x) - 1) / (fs->e2fs_ipg)) argument
109 #define ino_to_fsba(fs, x) \ argument
110 (e2fs_gd_get_i_tables(&(fs)->e2fs_gd[ino_to_cg((fs), (x))]) + \
111 (((x) - 1) % (fs)->e2fs_ipg) / (fs)->e2fs_ipb)
114 #define ino_to_fsbo(fs, x) ((x-1) % (fs->e2fs_ipb)) argument
120 #define dtog(fs, d) (((d) - le32toh(fs->e2fs->e2fs_first_dblock)) / \ argument
121 EXT2_BLOCKS_PER_GROUP(fs))
122 #define dtogd(fs, d) (((d) - le32toh(fs->e2fs->e2fs_first_dblock)) % \ argument
[all …]
/freebsd/lib/libufs/
H A Dcgroup.c55 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()
72 return (cgbase(fs, cgp->cg_cgx) + blkstofrags(fs, bno)); in cgballoc()
[all …]
H A Dsblock.c49 static int handle_disk_read(struct uufsd *, struct fs *, int);
66 struct fs *fs; in sbread() local
69 error = sbget(disk->d_fd, &fs, disk->d_sblockloc, disk->d_lookupflags); in sbread()
70 return (handle_disk_read(disk, fs, error)); in sbread()
90 struct fs *fs; in sbfind() local
93 error = sbsearch(disk->d_fd, &fs, flags); in sbfind()
94 return (handle_disk_read(disk, fs, error)); in sbfind()
98 handle_disk_read(struct uufsd *disk, struct fs *fs, int error) in handle_disk_read() argument
130 memcpy(&disk->d_fs, fs, fs->fs_sbsize); in handle_disk_read()
131 free(fs); in handle_disk_read()
[all …]
/freebsd/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/libexec/rc/rc.d/
H A Dzfskeys44 local fs="$1"
50 echo "Key prompt for $fs."
51 if zfs load-key -L "$kl" "$fs" < /dev/tty > /dev/tty 2>/dev/tty ; then
52 echo "Key loaded for $fs."
54 echo "Key failed to load for $fs."
57 if [ "$(zfs get -Ho value keystatus "$fs")" = 'available' ]; then
58 echo "Key already loaded for $fs."
59 elif keytest=$(zfs load-key -n -L "$kl" "$fs" 2>&1); then
60 echo "Loading key for $fs from $kl.."
61 if ! keyload=$(timeout $zfskeys_timeout zfs load-key -L "$kl" "$fs" 2>&1) ; then
[all …]
/freebsd/sys/netpfil/ipfw/
H A Dip_dn_glue.c157 struct dn_flow_set *fs ; /* parent flow set */ member
193 struct dn_flow_set fs ; /* used with fixed-rate flows */ member
222 struct dn_flow_set *fs ; /* parent flow set */ member
257 struct dn_flow_set fs ; /* used with fixed-rate flows */ member
384 if (p->pipe_nr == 0 && p->fs.fs_nr == 0) in dn_compat_del()
386 if (p->pipe_nr != 0 && p->fs.fs_nr != 0) in dn_compat_del()
389 if (p8->pipe_nr == 0 && p8->fs.fs_nr == 0) in dn_compat_del()
391 if (p8->pipe_nr != 0 && p8->fs.fs_nr != 0) in dn_compat_del()
400 cmd.a[0] = (is7) ? p->fs.fs_nr : p8->fs.fs_nr; in dn_compat_del()
407 dn_compat_config_queue(struct dn_fs *fs, void* v) in dn_compat_config_queue() argument
[all …]
/freebsd/tools/diag/prtblknos/
H A Dprtblknos.c46 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()
123 frags = fs->fs_frag; in prtblknos()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib193 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 Ddosfs.c123 #define bytblk(fs, n) ((n) >> (fs)->bshift) argument
124 #define blkbyt(fs, b) ((b) << (fs)->bshift) argument
125 #define secblk(fs, s) ((s) >> ((fs)->bshift - SSHIFT)) argument
126 #define blksec(fs, b) ((b) << ((fs)->bshift - SSHIFT)) argument
129 #define blkoff(fs, b) (secbyt((fs)->lsndta) + blkbyt(fs, (b) - LOCLUS)) argument
132 #define blklsn(fs, b) ((fs)->lsndta + blksec(fs, (b) - LOCLUS)) argument
140 #define okclus(fs, c) ((c) >= LOCLUS && (c) <= (fs)->xclus) argument
160 dos_read_fatblk(DOS_FS *fs, struct open_file *fd, u_int blknum) in dos_read_fatblk() argument
167 max_offset_in_fat = secbyt(fs->spf); in dos_read_fatblk()
175 err = ioget(fd, fs->lsnfat + bytsec(offset_in_fat), in dos_read_fatblk()
[all …]
/freebsd/sys/kern/
H A DMake.tags.inc17 ${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 …]

12345678910>>...65