Home
last modified time | relevance | path

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

12345678910>>...23

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfs.h146 struct fs struct
253 #define fs_postbl(fs, cylno) \ argument
254 (((fs)->fs_postblformat == FS_42POSTBLFMT) \
255 ? ((fs)->fs_opostbl[cylno]) \
256 : ((short *)((char *)(fs) + (fs)->fs_postbloff) + (cylno) * (fs)->fs_nrpos))
257 #define fs_rotbl(fs) \ argument
258 (((fs)->fs_postblformat == FS_42POSTBLFMT) \
259 ? ((fs)->fs_space) \
260 : ((u_char *)((char *)(fs) + (fs)->fs_rotbloff)))
267 #define fs_cs(fs, indx) \ argument
[all …]
H A Dufs2.h244 struct fs { struct
354 #define fsbtodb(fs, b) ((b) << (fs)->fs_fsbtodb) argument
355 #define dbtofsb(fs, b) ((b) >> (fs)->fs_fsbtodb) argument
361 #define cgbase(fs, c) ((ufs2_daddr_t)((fs)->fs_fpg * (c))) argument
362 #define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode blk */ argument
363 #define cgstart(fs, c) \ argument
364 ((fs)->fs_magic == FS_UFS2_MAGIC ? cgbase(fs, c) : \
365 (cgbase(fs, c) + (fs)->fs_old_cgoffset * ((c) & ~((fs)->fs_old_cgmask))))
373 #define ino_to_cg(fs, x) ((x) / (fs)->fs_ipg) argument
374 #define ino_to_fsba(fs, x) \ argument
[all …]
H A Dufs.h62 struct fs { struct
208 #define INOPB(fs) ((fs)->fs_inopb) argument
209 #define itoo(fs, x) ((x) % (grub_uint32_t)INOPB(fs)) argument
210 #define itog(fs, x) ((x) / (grub_uint32_t)(fs)->fs_ipg) argument
211 #define itod(fs, x) ((grub_daddr32_t)(cgimin(fs, itog(fs, x)) + \ argument
212 (blkstofrags((fs), \
213 ((x) % (grub_uint32_t)(fs)->fs_ipg / (grub_uint32_t)INOPB(fs))))))
216 #define UFS_NINDIR(fs) ((fs)->fs_nindir) /* # of indirects */ argument
217 #define blkoff(fs, loc) ((int)((loc & ~(fs)->fs_bmask))) argument
218 #define lblkno(fs, loc) ((grub_int32_t)((loc) >> (fs)->fs_bshift)) argument
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlcode.c36 void luaK_nil (FuncState *fs, int from, int n) { in luaK_nil() argument
39 if (fs->pc > fs->lasttarget) { /* no jumps to current position? */ in luaK_nil()
40 previous = &fs->f->code[fs->pc-1]; in luaK_nil()
54 luaK_codeABC(fs, OP_LOADNIL, from, n - 1, 0); /* else no optimization */ in luaK_nil()
58 int luaK_jump (FuncState *fs) { in luaK_jump() argument
59 int jpc = fs->jpc; /* save list of jumps to here */ in luaK_jump()
61 fs->jpc = NO_JUMP; in luaK_jump()
62 j = luaK_codeAsBx(fs, OP_JMP, 0, NO_JUMP); in luaK_jump()
63 luaK_concat(fs, &j, jpc); /* keep them on hold */ in luaK_jump()
68 void luaK_ret (FuncState *fs, int first, int nret) { in luaK_ret() argument
[all …]
H A Dlparser.c61 lua_assert(ls->fs != NULL || ls->t.token == TK_EOS); in anchor_token()
82 static l_noret errorlimit (FuncState *fs, int limit, const char *what) { in errorlimit() argument
83 lua_State *L = fs->ls->L; in errorlimit()
85 int line = fs->f->linedefined; in errorlimit()
91 luaX_syntaxerror(fs->ls, msg); in errorlimit()
95 static void checklimit (FuncState *fs, int v, int l, const char *what) { in checklimit() argument
96 if (v > l) errorlimit(fs, l, what); in checklimit()
155 init_exp(e, VK, luaK_stringK(ls->fs, s)); in codestring()
165 FuncState *fs = ls->fs; in registerlocalvar() local
166 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 …]
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_fs.h236 struct fs { struct
406 #define fs_postbl(fs, cylno) \ argument
407 (((fs)->fs_postblformat != FS_DYNAMICPOSTBLFMT) \
408 ? ((fs)->fs_opostbl[cylno]) \
409 : ((short *)((char *)(fs) + \
410 (fs)->fs_postbloff) \
411 + (cylno) * (fs)->fs_nrpos))
414 #define fs_rotbl(fs) \ argument
415 (((fs)->fs_postblformat != FS_DYNAMICPOSTBLFMT) \
416 ? ((fs)->fs_space) \
[all …]
/illumos-gate/usr/src/boot/sys/ufs/ffs/
H A Dfs.h260 struct fs { struct
370 CTASSERT(sizeof(struct fs) == 1376);
432 #define ACTIVECGNUM(fs, cg) ((fs)->fs_active[(cg) / (NBBY * sizeof(int))]) argument
434 #define ACTIVESET(fs, cg) do { \ argument
435 if ((fs)->fs_active) \
436 ACTIVECGNUM((fs), (cg)) |= ACTIVECGOFF((cg)); \
438 #define ACTIVECLEAR(fs, cg) do { \ argument
439 if ((fs)->fs_active) \
440 ACTIVECGNUM((fs), (cg)) &= ~ACTIVECGOFF((cg)); \
449 #define CGSIZE(fs) \ argument
[all …]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_alloc.c107 struct fs *fs; in alloc() local
117 fs = ufsvfsp->vfs_fs; in alloc()
118 if ((unsigned)size > fs->fs_bsize || fragoff(fs, size) != 0) { in alloc()
121 ip->i_dev, fs->fs_bsize, size, fs->fs_fsmnt); in alloc()
124 if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0) in alloc()
126 if (freespace(fs, ufsvfsp) <= 0 && in alloc()
138 if (bpref >= fs->fs_size) in alloc()
141 cg = (int)itog(fs, ip->i_number); in alloc()
143 cg = dtog(fs, bpref); in alloc()
167 cmn_err(CE_NOTE, "alloc: %s: file system full", fs->fs_fsmnt); in alloc()
[all …]
H A Dufs_subr.c196 struct fs *fs; in ufs_update() local
273 fs = ufsp->vfs_fs; in ufs_update()
291 if ((fs->fs_ronly == 0) && in ufs_update()
292 (fs->fs_clean != FSBAD) && in ufs_update()
293 (fs->fs_clean != FSSUSPEND)) { in ufs_update()
305 if (fs->fs_fmod == 0) { in ufs_update()
310 if (fs->fs_ronly != 0) { in ufs_update()
314 "fs = %s update: ro fs mod\n", fs->fs_fsmnt); in ufs_update()
324 fs->fs_fmod = 0; in ufs_update()
577 struct fs *fs; in ufs_sync_indir() local
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Ddosfs.c112 #define bytblk(fs, n) ((n) >> (fs)->bshift) argument
113 #define blkbyt(fs, b) ((b) << (fs)->bshift) argument
114 #define secblk(fs, s) ((s) >> ((fs)->bshift - SSHIFT)) argument
115 #define blksec(fs, b) ((b) << ((fs)->bshift - SSHIFT)) argument
118 #define blkoff(fs, b) (secbyt((fs)->lsndta) + blkbyt(fs, (b) - LOCLUS)) argument
121 #define blklsn(fs, b) ((fs)->lsndta + blksec(fs, (b) - LOCLUS)) argument
129 #define okclus(fs, c) ((c) >= LOCLUS && (c) <= (fs)->xclus) argument
149 dos_read_fatblk(DOS_FS *fs, struct open_file *fd, uint_t blknum) in dos_read_fatblk() argument
156 max_offset_in_fat = secbyt((daddr_t)fs->spf); in dos_read_fatblk()
164 err = ioget(fd, fs->lsnfat + bytsec(offset_in_fat), in dos_read_fatblk()
[all …]
/illumos-gate/usr/src/man/man4fs/
H A DMakefile20 MANSECT= 4fs
22 MANFILES= bootfs.4fs \
23 ctfs.4fs \
24 dcfs.4fs \
25 dev.4fs \
26 devfs.4fs \
27 fd.4fs \
28 hsfs.4fs \
29 lofs.4fs \
30 objfs.4fs \
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib204 typeset fs=$3
209 verify_fs_create $user $perm $fs
213 verify_fs_destroy $user $perm $fs
217 verify_fs_snapshot $user $perm $fs
221 verify_fs_rollback $user $perm $fs
225 verify_fs_clone $user $perm $fs
229 verify_fs_rename $user $perm $fs
233 verify_fs_mount $user $perm $fs
237 verify_fs_share $user $perm $fs
241 verify_fs_mountpoint $user $perm $fs
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Dsend_spill_block.ksh41 rm -f $BACKDIR/fs@*
42 destroy_dataset $POOL/fs "-rR"
50 log_must zfs create $POOL/fs
51 log_must zfs set xattr=sa $POOL/fs
52 log_must zfs set dnodesize=legacy $POOL/fs
53 log_must zfs set recordsize=128k $POOL/fs
67 log_must zfs snapshot $POOL/fs@snap1
81 log_must mkfile 32768 /$POOL/fs/file1
82 log_must mkfile 1048576 /$POOL/fs/file2
83 log_must truncate -s 0 /$POOL/fs/file3
[all …]
H A Dsend_realloc_dnode_size.ksh47 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 if datasetexists $POOL/fs ; then
53 log_must zfs destroy -rR $POOL/fs
64 log_must zfs create -o dnodesize=1k $POOL/fs
65 log_must mk_files 200 262144 0 $POOL/fs
66 log_must zfs snapshot $POOL/fs@a
71 rm /$POOL/fs/*
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsirand/
H A Dfsirand.c60 struct fs *fs; in main() local
96 fs = (struct fs *)fsbuf; in main()
97 if ((n = read(fd, (char *)fs, SBSIZE)) != SBSIZE) { in main()
103 if ((fs->fs_magic != FS_MAGIC) && in main()
104 (fs->fs_magic != MTB_UFS_MAGIC)) { in main()
109 if (fs->fs_magic == FS_MAGIC && in main()
110 (fs->fs_version != UFS_EFISTYLE4NONEFI_VERSION_2 && in main()
111 fs->fs_version != UFS_VERSION_MIN)) { in main()
114 fs->fs_version); in main()
117 if (fs->fs_magic == MTB_UFS_MAGIC && in main()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/projectquota/
H A Dprojectquota_009_pos.ksh51 for ds in $TESTPOOL/fs $TESTPOOL/fs-rename $TESTPOOL/fs-clone; do
65 -o projectobjquota@$PRJID2=$PQUOTA_OBJLIMIT $TESTPOOL/fs
67 log_must zfs snapshot $TESTPOOL/fs@snap
71 log_must check_quota "projectquota@$PRJID1" $TESTPOOL/fs@snap "$PQUOTA_LIMIT"
72 log_must check_quota "projectobjquota@$PRJID2" $TESTPOOL/fs@snap \
79 $TESTPOOL/fs@snap $TESTPOOL/fs-clone
84 log_must check_quota "projectquota@$PRJID1" $TESTPOOL/fs-clone "$PQUOTA_LIMIT"
85 log_must check_quota "projectobjquota@$PRJID2" $TESTPOOL/fs-clone \
92 log_must zfs promote $TESTPOOL/fs-clone
97 log_must check_quota "projectquota@$PRJID1" $TESTPOOL/fs-clone "$PQUOTA_LIMIT"
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/userquota/
H A Duserquota_011_pos.ksh51 for ds in $TESTPOOL/fs $TESTPOOL/fs-rename $TESTPOOL/fs-clone; do
66 -o groupquota@$QGROUP=$GQUOTA_SIZE $TESTPOOL/fs
68 log_must zfs snapshot $TESTPOOL/fs@snap
72 log_must check_quota "userquota@$QUSER1" $TESTPOOL/fs@snap "$UQUOTA_SIZE"
73 log_must check_quota "groupquota@$QGROUP" $TESTPOOL/fs@snap "$GQUOTA_SIZE"
79 $TESTPOOL/fs@snap $TESTPOOL/fs-clone
84 log_must check_quota "userquota@$QUSER1" $TESTPOOL/fs-clone "$UQUOTA_SIZE"
85 log_must check_quota "groupquota@$QGROUP" $TESTPOOL/fs-clone "$GQUOTA_SIZE"
91 log_must zfs promote $TESTPOOL/fs-clone
96 log_must check_quota "userquota@$QUSER1" $TESTPOOL/fs-clone "$UQUOTA_SIZE"
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass5.c50 struct fs *fs = &sblock; in pass5() local
68 newcg->cg_niblk = fs->fs_ipg; in pass5()
70 if (fs->fs_postblformat != FS_DYNAMICPOSTBLFMT) { in pass5()
72 fs->fs_postblformat); in pass5()
93 newcg->cg_boff = newcg->cg_btotoff + fs->fs_cpg * sizeof (daddr32_t); in pass5()
95 fs->fs_cpg * fs->fs_nrpos * sizeof (uint16_t); in pass5()
98 inomapsize = howmany(fs->fs_ipg, NBBY); in pass5()
100 blkmapsize = howmany(fs->fs_fpg, NBBY); in pass5()
119 j = blknum(fs, (uint64_t)fs->fs_size + fs->fs_frag - 1); in pass5()
120 for (i = fs->fs_size; i < j; i++) in pass5()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs/
H A Dzfs_002_pos.ksh54 for ds in $fs1 $fs $ctr; do
75 fs=$ctr/$TESTFS
77 snap=$fs@$TESTSNAP
81 typeset cmds=("create $fs" "list $fs" "snapshot $snap" "set snapdir=hidden $fs" \
82 "get snapdir $fs" "rollback $snap" "inherit snapdir $fs" \
83 "rename $fs $fs-new" "rename $fs-new $fs" "unmount $fs" \
84 "mount $fs" "share $fs" "unshare $fs" "send $snap \>$streamf" \
86 "promote $fs" "destroy -rRf $fs")
/illumos-gate/usr/src/test/zfs-tests/tests/functional/mount/
H A Dumount_unlinked_drain.ksh36 for fs in $(seq 1 3); do
37 mounted $TESTDIR.$fs || zfs mount $TESTPOOL/$TESTFS.$fs
38 rm -f $TESTDIR.$fs/file-*
39 zfs set xattr=on $TESTPOOL/$TESTFS.$fs
76 for fs in 1 2 3; do
80 log_must mounted $TESTDIR.$fs
82 log_must zfs set xattr=$xa $TESTPOOL/$TESTFS.$fs
86 log_must mkfile 128k $TESTDIR.$fs/file-$fn
89 log_must xattrtest -f 175 -x 3 -r -k -p $TESTDIR.$fs
93 log_must unlinked_size_is 0 $TESTPOOL $TESTPOOL/$TESTFS.$fs
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/channel_program/synctask_core/
H A Dtst.get_count_and_limit.ksh27 fs=$TESTPOOL/testchild
28 snap=$fs@$TESTSNAP
32 datasetexists $fs && log_must zfs destroy -R $fs
33 log_must rm -rf $fs/foo
34 log_must rm -rf $fs/bar
39 log_must zfs create $fs
40 log_must zfs create $fs/foo
41 create_snapshot $fs $TESTSNAP
44 ans, src = zfs.get_prop("$fs", "snapshot_limit")
48 ans, src = zfs.get_prop("$fs", "snapshot_count")
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount.kshlib52 typeset fs=${3##/}
57 if [[ -z $pool || -z $fs || -z $mntpoint ]]; then
58 log_note "Missing parameter: (\"$pool\", \"$fs\", \"$mntpoint\")"
78 datasetexists $pool/$fs && \
79 log_must cleanup_filesystem $pool $fs
87 'ctr') log_must zfs create -o mountpoint=$mntpoint $pool/$fs
89 'vol') log_must zfs create -V $VOLSIZE $pool/$fs
91 *) log_must zfs create -o mountpoint=$mntpoint $pool/$fs
102 typeset fs=${2##/}
105 if [[ -z $pool || -z $fs ]]; then
[all …]
H A Dzfs_mount_007_pos.ksh75 typeset fs=$1
99 val=$(get_prop $prop $fs) || log_fail "get_prop $prop $fs"
109 fs=$TESTPOOL/$TESTFS
113 orig_val=$(get_prop $property $fs)
114 (($? != 0)) && log_fail "get_prop $property $fs"
117 reverse_opt=$(get_reverse_option $fs $property)
118 log_must zfs mount -o remount,$reverse_opt $fs
120 cur_val=$(get_prop $property $fs)
121 (($? != 0)) && log_fail "get_prop $property $fs"
135 log_must zfs unmount $fs
[all …]
/illumos-gate/usr/src/pkg/manifests/
H A Dsystem-kernel.man4fs.inc17 file path=usr/share/man/man4fs/bootfs.4fs
18 file path=usr/share/man/man4fs/ctfs.4fs
19 file path=usr/share/man/man4fs/dcfs.4fs
20 file path=usr/share/man/man4fs/dev.4fs
21 file path=usr/share/man/man4fs/devfs.4fs
22 file path=usr/share/man/man4fs/fd.4fs
23 file path=usr/share/man/man4fs/hsfs.4fs
24 file path=usr/share/man/man4fs/lofs.4fs
25 file path=usr/share/man/man4fs/objfs.4fs
26 file path=usr/share/man/man4fs/sharefs.4fs
[all …]

12345678910>>...23