Home
last modified time | relevance | path

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

12345678910>>...25

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfs.h358 (cgbase(fs, c) + (fs)->fs_cgoffset * ((c) & ~((fs)->fs_cgmask)))
360 #define cgtod(fs, c) (cgstart(fs, c) + (fs)->fs_cblkno) /* cg block */ argument
374 (blkstofrags((fs), (((x) % (fs)->fs_ipg) / INOPB(fs))))))
392 (((bno) * NSPF(fs) % (fs)->fs_spc / (fs)->fs_nsect * (fs)->fs_trackskew + \
393 (bno) * NSPF(fs) % (fs)->fs_spc % (fs)->fs_nsect * (fs)->fs_interleave) % \
394 (fs)->fs_nsect * (fs)->fs_nrpos / (fs)->fs_npsect)
445 #define NSPB(fs) ((fs)->fs_nspf << (fs)->fs_fragshift) argument
446 #define NSPF(fs) ((fs)->fs_nspf) argument
451 #define INOPB(fs) ((fs)->fs_inopb) argument
452 #define INOPF(fs) ((fs)->fs_inopb >> (fs)->fs_fragshift) argument
[all …]
H A Dufs2.h354 #define fsbtodb(fs, b) ((b) << (fs)->fs_fsbtodb) argument
362 #define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode blk */ argument
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
376 (blkstofrags((fs), (((x) % (fs)->fs_ipg) / INOPB(fs))))))
377 #define ino_to_fsbo(fs, x) ((x) % INOPB(fs)) argument
396 (((size) + (fs)->fs_qfmask) & (fs)->fs_fmask)
417 : (fragroundup(fs, blkoff(fs, (size)))))
423 #define INOPB(fs) ((fs)->fs_inopb) argument
424 #define INOPF(fs) ((fs)->fs_inopb >> (fs)->fs_fragshift) 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
216 #define UFS_NINDIR(fs) ((fs)->fs_nindir) /* # of indirects */ argument
217 #define blkoff(fs, loc) ((int)((loc & ~(fs)->fs_bmask))) argument
221 #define blkstofrags(fs, b) ((b) << (fs)->fs_fragshift) argument
224 #define cgbase(fs, c) ((grub_daddr32_t)((fs)->fs_fpg * (c))) argument
225 #define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode block */ argument
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlcode.c40 previous = &fs->f->code[fs->pc-1]; in luaK_nil()
94 fs->lasttarget = fs->pc; in luaK_getlabel()
163 patchlistaux(fs, fs->jpc, fs->pc, NO_REG, fs->pc); in dischargejpc()
193 luaK_concat(fs, &fs->jpc, list); in luaK_patchtohere()
221 f->lineinfo[fs->pc] = fs->ls->lastline; in luaK_code()
312 fs->nk++; in addk()
353 sethvalue(fs->ls->L, &k, fs->h); in nilK()
364 SETARG_A(getcode(fs, e), fs->freereg); in luaK_setreturns()
462 discharge2reg(fs, e, fs->freereg-1); in discharge2anyreg()
495 exp2reg(fs, e, fs->freereg - 1); in luaK_exp2nextreg()
[all …]
H A Dlparser.c165 FuncState *fs = ls->fs; in registerlocalvar() local
178 FuncState *fs = ls->fs; in new_localvar() local
205 FuncState *fs = ls->fs; in adjustlocalvars() local
216 getlocvar(fs, --fs->nactvar)->endpc = fs->pc; in removevars()
298 FuncState *fs = ls->fs; in singlevar() local
310 FuncState *fs = ls->fs; in adjust_assign() local
341 FuncState *fs = ls->fs; in closegoto() local
500 FuncState *fs = ls->fs; in addprototype() local
531 ls->fs = fs; in open_func()
556 FuncState *fs = ls->fs; in close_func() local
[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
50 LUAI_FUNC void luaK_fixline (FuncState *fs, int line);
52 LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n);
53 LUAI_FUNC void luaK_checkstack (FuncState *fs, int n);
54 LUAI_FUNC int luaK_stringK (FuncState *fs, TString *s);
61 LUAI_FUNC int luaK_exp2RK (FuncState *fs, expdesc *e);
69 LUAI_FUNC int luaK_jump (FuncState *fs);
[all …]
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_fs.h563 (cgbase(fs, c) + (fs)->fs_cgoffset * ((c) & ~((fs)->fs_cgmask)))
567 #define cgtod(fs, c) (cgstart(fs, c) + (fs)->fs_cblkno) /* cg block */ argument
569 #define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode blk */ argument
571 #define cgdmin(fs, c) (cgstart(fs, c) + (fs)->fs_dblkno) /* 1st data */ argument
603 ((bno) * NSPF(fs) / (fs)->fs_spc)
614 (fs)->fs_nrpos) / (fs)->fs_nsect
716 #define NSPB(fs) ((fs)->fs_nspf << (fs)->fs_fragshift) argument
717 #define NSPF(fs) ((fs)->fs_nspf) argument
722 #define INOPB(fs) ((fs)->fs_inopb) argument
723 #define INOPF(fs) ((fs)->fs_inopb >> (fs)->fs_fragshift) argument
[all …]
/illumos-gate/usr/src/boot/sys/ufs/ffs/
H A Dfs.h529 #define cgdata(fs, c) (cgdmin(fs, c) + (fs)->fs_metaspace) /* data zone */ argument
531 #define cgdmin(fs, c) (cgstart(fs, c) + (fs)->fs_dblkno) /* 1st data */ argument
532 #define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode blk */ argument
533 #define cgsblock(fs, c) (cgstart(fs, c) + (fs)->fs_sblkno) /* super blk */ argument
534 #define cgtod(fs, c) (cgstart(fs, c) + (fs)->fs_cblkno) /* cg block */ argument
548 (blkstofrags((fs), ((((ino_t)(x)) % (fs)->fs_ipg) / INOPB(fs))))))
555 #define dtog(fs, d) ((d) / (fs)->fs_fpg) argument
622 #define NINDIR(fs) ((fs)->fs_nindir) argument
651 lbn_offset(struct fs *fs, int level) in lbn_offset() argument
663 #define INOPB(fs) ((fs)->fs_inopb) argument
[all …]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_alloc.c107 struct fs *fs; in alloc() local
186 struct fs *fs; in realloccg() local
298 struct fs *fs; in ufs_ialloc() local
478 struct fs *fs = dp->i_fs; in dirpref() local
537 struct fs *fs; in blkpref() local
625 struct fs *fs = ip->i_fs; in free() local
752 fs->fs_cs(fs, cg).cs_nffree -= fs->fs_frag; in free()
773 struct fs *fs = ip->i_fs; in ufs_ifree() local
847 struct fs *fs; in hashalloc() local
1113 struct fs *fs; in alloccgblk() local
[all …]
H A Dufs_subr.c196 struct fs *fs; in ufs_update() local
577 struct fs *fs; in ufs_sync_indir() local
641 clbn = NDADDR + NINDIR(fs) + (NINDIR(fs) * NINDIR(fs)); in ufs_sync_indir()
680 struct fs *fs; in ufs_indirblk_sync() local
875 struct fs *fs = ufsvfsp->vfs_fs; in ufs_checkclean() local
1026 struct fs *fs = ufsvfsp->vfs_fs; in ufs_notclean() local
1124 struct fs *fs = ufsvfsp->vfs_fs; in ufs_sbwrite() local
1370 fs->fs_cstotal.cs_ndir += fs->fs_cs(fs, i).cs_ndir; in ufs_getsummaryinfo()
1371 fs->fs_cstotal.cs_nbfree += fs->fs_cs(fs, i).cs_nbfree; in ufs_getsummaryinfo()
1372 fs->fs_cstotal.cs_nifree += fs->fs_cs(fs, i).cs_nifree; in ufs_getsummaryinfo()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Ddosfs.c117 #define blkoff(fs, b) (secbyt((fs)->lsndta) + blkbyt(fs, (b) - LOCLUS)) argument
120 #define blklsn(fs, b) ((fs)->lsndta + blksec(fs, (b) - LOCLUS)) argument
271 f->fs = fs; in dos_open()
380 DOS_FS *fs = f->fs; in dos_close() local
510 if (!(fs->spc = bs->bpb.spc) || fs->spc & (fs->spc - 1)) in parsebs()
512 fs->bsize = secbyt(fs->spc); in parsebs()
513 fs->bshift = ffs(fs->bsize) - 1; in parsebs()
529 fs->lsndir = fs->lsnfat + fs->spf * bs->bpb.fats; in parsebs()
530 fs->lsndta = fs->lsndir + entsec(fs->dirents); in parsebs()
535 if ((fs->xclus = secblk(fs, sc - fs->lsndta) + 1) < LOCLUS) in parsebs()
[all …]
H A Dext2fs.c151 ino_to_bgo(fs, ino) / (fs)->fs_ipb))
152 #define ino_to_bo(fs, ino) (ino_to_bgo(fs, ino) % (fs)->fs_ipb) argument
371 fs->fs_bsize = 1 << fs->fs_bshift; in ext2fs_open()
372 fs->fs_bmask = fs->fs_bsize - 1; in ext2fs_open()
375 fs->fs_fsize = 1 << fs->fs_fshift; in ext2fs_open()
376 fs->fs_fmask = fs->fs_fsize - 1; in ext2fs_open()
382 fs->fs_isize = fs->fs_fd.fd_isize; in ext2fs_open()
383 fs->fs_firstino = fs->fs_fd.fd_firstino; in ext2fs_open()
385 fs->fs_imask = fs->fs_isize - 1; in ext2fs_open()
386 fs->fs_ipb = fs->fs_bsize / fs->fs_isize; in ext2fs_open()
[all …]
/illumos-gate/usr/src/man/man4fs/
H A DMakefile20 MANSECT= 4fs
23 ctfs.4fs \
24 dcfs.4fs \
25 dev.4fs \
27 fd.4fs \
28 hsfs.4fs \
36 ufs.4fs
40 stdout.4fs
42 stderr.4fs := LINKSRC = fd.4fs
43 stdin.4fs := LINKSRC = fd.4fs
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib203 typeset fs=$3
409 typeset fs=$3
565 typeset fs=$3
648 typeset fs=$3
682 typeset fs=$3
722 typeset fs=$3
756 typeset fs=$3
801 typeset fs=$3
884 typeset fs=$3
925 typeset fs=$3
[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
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
98 log_must mkfile 32768 /$POOL/fs/file11
119 log_must mkfile 32768 /$POOL/fs/file21
[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
71 rm /$POOL/fs/*
73 log_must zfs unmount $POOL/fs
75 log_must zfs mount $POOL/fs
83 rm /$POOL/fs/*
85 log_must zfs unmount $POOL/fs
87 log_must zfs mount $POOL/fs
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsirand/
H A Dfsirand.c62 struct fs *fs; in main() local
98 fs = (struct fs *)fsbuf; in main()
105 if ((fs->fs_magic != FS_MAGIC) && in main()
111 if (fs->fs_magic == FS_MAGIC && in main()
116 fs->fs_version); in main()
124 fs->fs_version); in main()
128 (void) printf("fsid: %x %x\n", fs->fs_id[0], fs->fs_id[1]); in main()
136 imax = fs->fs_ipg * fs->fs_ncg; in main()
138 bno = itod(fs, inum); in main()
183 fs->fs_id[0] = timeval.tv_sec; 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
72 log_must check_quota "projectobjquota@$PRJID2" $TESTPOOL/fs@snap \
79 $TESTPOOL/fs@snap $TESTPOOL/fs-clone
85 log_must check_quota "projectobjquota@$PRJID2" $TESTPOOL/fs-clone \
92 log_must zfs promote $TESTPOOL/fs-clone
102 log_must zfs send $TESTPOOL/fs-clone@snap | zfs receive $TESTPOOL/fs-rev
108 log_must check_quota "projectobjquota@$PRJID2" $TESTPOOL/fs-rev \
112 log_must zfs rename $TESTPOOL/fs-rev $TESTPOOL/fs-rename
[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
91 log_must zfs promote $TESTPOOL/fs-clone
100 log_must zfs send $TESTPOOL/fs-clone@snap | zfs receive $TESTPOOL/fs-rev
105 log_must check_quota "userquota@$QUSER1" $TESTPOOL/fs-rev "$UQUOTA_SIZE"
109 log_must zfs rename $TESTPOOL/fs-rev $TESTPOOL/fs-rename
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass5.c50 struct fs *fs = &sblock; in pass5() local
95 fs->fs_cpg * fs->fs_nrpos * sizeof (uint16_t); in pass5()
119 j = blknum(fs, (uint64_t)fs->fs_size + fs->fs_frag - 1); in pass5()
168 newcg->cg_ncyl = fs->fs_ncyl - (fs->fs_cpg * c); in pass5()
237 d += fs->fs_frag, i += fs->fs_frag) { in pass5()
251 cg_blks(fs, newcg, j)[cbtorpos(fs, i)]++; in pass5() local
276 cs = &fs->fs_cs(fs, c); in pass5()
345 cg->cg_cgx * fs->fs_ipg, "FILE", excessdirs, fs->fs_ipg)) { in pass5()
361 cg->cg_cgx * fs->fs_fpg, "FRAG", 0, fs->fs_fpg)) { in pass5()
377 fs->fs_cpg * fs->fs_nrpos * sizeof (int16_t)) != 0); 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
102 log_must zfs umount $TESTPOOL/$TESTFS.$fs
103 log_must unmounted $TESTDIR.$fs
104 log_must zfs mount $TESTPOOL/$TESTFS.$fs
105 log_must mounted $TESTDIR.$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
63 log_must zfs set snapshot_limit=10 $fs
75 log_must zfs set filesystem_limit=8 $fs
[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
78 datasetexists $pool/$fs && \
79 log_must cleanup_filesystem $pool $fs
102 typeset fs=${2##/}
105 if [[ -z $pool || -z $fs ]]; then
110 if datasetexists "$pool/$fs" ; then
111 mtpt=$(get_prop mountpoint "$pool/$fs")
112 log_must zfs destroy -r $pool/$fs
127 typeset fs
[all …]
/illumos-gate/usr/src/uts/sparc/udfs/
H A DMakefile66 LDFLAGS += -N fs/specfs
96 -cstyle -p ../../common/fs/udfs/udf_bmap.c
97 -cstyle -p ../../common/fs/udfs/udf_dir.c
99 -cstyle -p ../../common/fs/udfs/udf_subr.c
102 -keywords ../../common/fs/udfs/udf_alloc.c
103 -keywords ../../common/fs/udfs/udf_bmap.c
104 -keywords ../../common/fs/udfs/udf_dir.c
106 -keywords ../../common/fs/udfs/udf_subr.c
110 -keywords ../../common/sys/fs/udf_inode.h
112 -hdrchk ../../common/sys/fs/udf_inode.h
[all …]

12345678910>>...25