Home
last modified time | relevance | path

Searched refs:fs (Results 26 – 50 of 305) sorted by relevance

12345678910>>...13

/dragonfly/lib/libfsid/
H A Dufs.c45 static struct fs *fs; in ufs_probe() local
50 fs = (struct fs *)&buffer; in ufs_probe()
52 if (fs->fs_magic != FS_MAGIC || fs->fs_bsize > MAXBSIZE || in ufs_probe()
53 (unsigned)fs->fs_bsize < sizeof(struct fs)) { in ufs_probe()
63 static struct fs *fs; in ufs_volname() local
68 fs = (struct fs *)&buffer; in ufs_volname()
70 if (fs->fs_magic != FS_MAGIC || fs->fs_bsize > MAXBSIZE || in ufs_volname()
71 (unsigned)fs->fs_bsize < sizeof(struct fs) || in ufs_volname()
72 fs->fs_volname[0] == '\0') { in ufs_volname()
76 fs->fs_volname[MAXVOLLEN - 1] = '\0'; in ufs_volname()
[all …]
H A Dext2.c49 static struct ext2fs *fs; in ext2_probe() local
54 fs = (struct ext2fs *)&buffer; in ext2_probe()
56 if (fs->e2fs_magic == E2FS_MAGIC) in ext2_probe()
65 static struct ext2fs *fs; in ext2_volname() local
70 fs = (struct ext2fs *)&buffer; in ext2_volname()
72 if (fs->e2fs_magic != E2FS_MAGIC || fs->e2fs_vname[0] == '\0') in ext2_volname()
75 fs->e2fs_vname[sizeof(fs->e2fs_vname) - 1] = '\0'; in ext2_volname()
77 return fs->e2fs_vname; in ext2_volname()
H A Dhammer.c44 static struct hammer_volume_ondisk *fs; in hammer_probe() local
49 fs = (struct hammer_volume_ondisk *)&buffer; in hammer_probe()
51 if (fs->vol_signature != HAMMER_FSBUF_VOLUME) in hammer_probe()
60 static struct hammer_volume_ondisk *fs; in hammer_volname() local
65 fs = (struct hammer_volume_ondisk *)&buffer; in hammer_volname()
67 if (fs->vol_signature != HAMMER_FSBUF_VOLUME || in hammer_volname()
68 fs->vol_label[0] == '\0') in hammer_volname()
71 fs->vol_label[sizeof(fs->vol_label) - 1] = '\0'; in hammer_volname()
73 return fs->vol_label; in hammer_volname()
/dragonfly/contrib/gcc-4.7/libgcc/
H A Dunwind-dw2.c433 fs->saw_z = 1; in extract_cie_info()
917 fs->regs.prev = NULL; in execute_cfa_program()
936 fs->pc += (insn & 0x3f) * fs->code_align; in execute_cfa_program()
964 fs->pc += read_1u (insn_ptr) * fs->code_align; in execute_cfa_program()
968 fs->pc += read_2u (insn_ptr) * fs->code_align; in execute_cfa_program()
972 fs->pc += read_4u (insn_ptr) * fs->code_align; in execute_cfa_program()
1092 fs->regs.cfa_offset *= fs->data_align; in execute_cfa_program()
1098 fs->regs.cfa_offset *= fs->data_align; in execute_cfa_program()
1172 memset (fs, 0, sizeof (*fs)); in uw_frame_state_for()
1209 if (fs->saw_z) in uw_frame_state_for()
[all …]
/dragonfly/sys/vfs/ufs/
H A Dffs_inode.c75 struct fs *fs; in ffs_update() local
85 fs = ip->i_fs; in ffs_update()
86 if (fs->fs_ronly) in ffs_update()
105 fsbtodoff(fs, ino_to_fsba(fs, ip->i_number)), in ffs_update()
145 struct fs *fs; in ffs_truncate() local
154 fs = oip->i_fs; in ffs_truncate()
174 if (fs->fs_ronly) in ffs_truncate()
280 fragroundup(fs, blkoff(fs, length)) < fs->fs_bsize) { in ffs_truncate()
311 lastblock = lblkno(fs, length + fs->fs_bsize - 1) - 1; in ffs_truncate()
469 struct fs *fs = ip->i_fs; in ffs_indirtrunc() local
[all …]
/dragonfly/usr.sbin/makefs/ffs/
H A Dffs_balloc.c88 struct fs *fs = ip->i_fs; in ffs_balloc_ufs1() local
97 lbn = lblkno(fs, offset); in ffs_balloc_ufs1()
103 assert(size <= fs->fs_bsize); in ffs_balloc_ufs1()
116 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1()
155 osize = fragroundup(fs, blkoff(fs, ip->i_ffs1_size)); in ffs_balloc_ufs1()
188 nsize = fs->fs_bsize; in ffs_balloc_ufs1()
340 struct fs *fs = ip->i_fs; in ffs_balloc_ufs2() local
349 lbn = lblkno(fs, offset); in ffs_balloc_ufs2()
355 assert(size <= fs->fs_bsize); in ffs_balloc_ufs2()
407 osize = fragroundup(fs, blkoff(fs, ip->i_ffs2_size)); in ffs_balloc_ufs2()
[all …]
H A Dffs_subr.c50 ffs_fragacct_swap(struct fs *fs, int fragmap, uint32_t fraglist[], int cnt, int needswap) in ffs_fragacct_swap() argument
86 ffs_isblock(struct fs *fs, u_char *cp, int32_t h) in ffs_isblock() argument
90 switch ((int)fs->fs_fragshift) { in ffs_isblock()
104 (int)fs->fs_fragshift); in ffs_isblock()
114 ffs_isfreeblock(struct fs *fs, u_char *cp, int32_t h) in ffs_isfreeblock() argument
117 switch ((int)fs->fs_fragshift) { in ffs_isfreeblock()
128 (int)fs->fs_fragshift); in ffs_isfreeblock()
136 ffs_clrblock(struct fs *fs, u_char *cp, int32_t h) in ffs_clrblock() argument
154 (int)fs->fs_fragshift); in ffs_clrblock()
162 ffs_setblock(struct fs *fs, u_char *cp, int32_t h) in ffs_setblock() argument
[all …]
H A Dffs_extern.h61 void ffs_clusteracct(struct fs *, struct cg *, int32_t, int);
67 void ffs_sb_swap(struct fs*, struct fs *);
73 void ffs_cg_swap(struct cg *, struct cg *, struct fs *);
76 void ffs_fragacct(struct fs *, int, int32_t[], int, int);
77 int ffs_isblock(struct fs *, u_char *, int32_t);
78 int ffs_isfreeblock(struct fs *, u_char *, int32_t);
79 void ffs_clrblock(struct fs *, u_char *, int32_t);
80 void ffs_setblock(struct fs *, u_char *, int32_t);
/dragonfly/sys/vfs/ext2fs/
H A Dext2_balloc.c75 struct m_ext2fs *fs; in ext2_balloc() local
87 fs = ip->i_e2fs; in ext2_balloc()
113 error = bread(vp, lblktodoff(fs, lbn), fs->e2fs_bsize, in ext2_balloc()
137 bp = getblk(vp, lblktodoff(fs, lbn), fs->e2fs_bsize, 0, 0); in ext2_balloc()
173 fs->e2fs_bsize, 0, 0); in ext2_balloc()
192 (int)fs->e2fs_bsize, &bp); in ext2_balloc()
221 fs->e2fs_bsize, 0, 0); in ext2_balloc()
252 lblkno(fs, bp->b_loffset)); in ext2_balloc()
263 nbp = getblk(vp, lblktodoff(fs, lbn), fs->e2fs_bsize, 0, 0); in ext2_balloc()
288 lblktodoff(fs, lbn), (int)fs->e2fs_bsize, in ext2_balloc()
[all …]
H A Dext2_subr.c81 struct m_ext2fs *fs; in ext2_blkatoff() local
87 fs = ip->i_e2fs; in ext2_blkatoff()
88 lbn = lblkno(fs, offset); in ext2_blkatoff()
89 bsize = blksize(fs, ip, lbn); in ext2_blkatoff()
146 run = fs->e2fs_contigsumsize; in ext2_clusteracct()
152 if (fs->e2fs_contigsumsize <= 0) in ext2_clusteracct()
158 if (end > fs->e2fs_fpg) in ext2_clusteracct()
159 end = fs->e2fs_fpg; in ext2_clusteracct()
198 if (i > fs->e2fs_contigsumsize) in ext2_clusteracct()
199 i = fs->e2fs_contigsumsize; in ext2_clusteracct()
[all …]
H A Dext2_inode.c71 struct m_ext2fs *fs; in ext2_update() local
82 fs = ip->i_e2fs; in ext2_update()
83 if (fs->e2fs_ronly) in ext2_update()
86 fsbtodoff(fs, ino_to_fsba(fs, ip->i_number)), in ext2_update()
92 EXT2_INODE_SIZE(fs) * ino_to_fsbo(fs, ip->i_number))); in ext2_update()
151 bp = getblk(vp, lblktodoff(fs, lbn), (int)fs->e2fs_bsize, 0, 0); in ext2_indirtrunc()
234 struct m_ext2fs *fs; in ext2_ind_truncate() local
243 fs = oip->i_e2fs; in ext2_ind_truncate()
310 lastblock = lblkno(fs, length + fs->e2fs_bsize - 1) - 1; in ext2_ind_truncate()
313 lastiblock[TRIPLE] = lastiblock[DOUBLE] - NINDIR(fs) * NINDIR(fs); in ext2_ind_truncate()
[all …]
/dragonfly/stand/lib/
H A Dufs.c129 struct fs *fs = fp->f_fs; in read_inode() local
143 fsbtodb(fs, ino_to_fsba(fs, inumber)), fs->fs_bsize, in read_inode()
185 struct fs *fs = fp->f_fs; in block_map() local
292 struct fs *fs = fp->f_fs; in buf_read_file() local
406 struct fs *fs; in ufs_open() local
429 fs->fs_bsize > MAXBSIZE || fs->fs_bsize < sizeof(struct fs)) { in ufs_open()
543 struct fs *fs = fp->f_fs; in ufs_open() local
725 ffs_oldfscompat(struct fs *fs) in ffs_oldfscompat() argument
729 fs->fs_npsect = max(fs->fs_npsect, fs->fs_nsect); /* XXX */ in ffs_oldfscompat()
741 fs->fs_qbmask = ~fs->fs_bmask; /* XXX */ in ffs_oldfscompat()
[all …]
/dragonfly/contrib/gcc-8.0/libgcc/
H A Dunwind-dw2.c468 fs->saw_z = 1; in extract_cie_info()
952 fs->regs.prev = NULL; in execute_cfa_program()
971 fs->pc += (insn & 0x3f) * fs->code_align; in execute_cfa_program()
1004 fs->pc += read_1u (insn_ptr) * fs->code_align; in execute_cfa_program()
1008 fs->pc += read_2u (insn_ptr) * fs->code_align; in execute_cfa_program()
1012 fs->pc += read_4u (insn_ptr) * fs->code_align; in execute_cfa_program()
1151 fs->regs.cfa_offset *= fs->data_align; in execute_cfa_program()
1157 fs->regs.cfa_offset *= fs->data_align; in execute_cfa_program()
1250 memset (fs, 0, sizeof (*fs)); in uw_frame_state_for()
1287 if (fs->saw_z) in uw_frame_state_for()
[all …]
/dragonfly/contrib/gdb-7/gdb/
H A Ddwarf2-frame.c331 fs->regs.reg[reg] = fs->initial.reg[reg]; in dwarf2_restore_rule()
423 fs->pc += (insn & 0x3f) * fs->code_align; in execute_cfa_program()
455 fs->pc += utmp * fs->code_align; in execute_cfa_program()
460 fs->pc += utmp * fs->code_align; in execute_cfa_program()
465 fs->pc += utmp * fs->code_align; in execute_cfa_program()
919 fs.initial = fs.regs; in dwarf2_compile_cfa_to_ax()
952 fs.regs.cfa_exp + fs.regs.cfa_exp_len, in dwarf2_compile_cfa_to_ax()
1070 fs->initial = fs->regs; in dwarf2_frame_cache()
1193 &fs->regs.reg[fs->retaddr_column]; in dwarf2_frame_cache()
1202 if (fs->retaddr_column < fs->regs.num_regs in dwarf2_frame_cache()
[all …]
/dragonfly/bin/cp/
H A Dutils.c56 struct stat *fs; in copy_file() local
71 fs = entp->fts_statp; in copy_file()
136 if (S_ISREG(fs->st_mode) && fs->st_size > 0 && in copy_file()
162 if (munmap(p, fs->st_size) < 0) { in copy_file()
213 if (pflag && setfile(fs, to_fd)) in copy_file()
277 setfile(struct stat *fs, int fd) in setfile() argument
309 if (!gotstat || fs->st_uid != ts.st_uid || fs->st_gid != ts.st_gid) in setfile()
310 if (fdval ? fchown(fd, fs->st_uid, fs->st_gid) : in setfile()
311 (islink ? lchown(to.p_path, fs->st_uid, fs->st_gid) : in setfile()
312 chown(to.p_path, fs->st_uid, fs->st_gid))) { in setfile()
[all …]
/dragonfly/sbin/dump/
H A Doptr.c265 allocfsent(struct fstab *fs) in allocfsent() argument
276 new->fs_freq = fs->fs_freq; in allocfsent()
290 struct fstab *fs; in dump_getfstab() local
303 fs = allocfsent(fs); in dump_getfstab()
306 pf->pf_fstab = fs; in dump_getfstab()
322 struct fstab *fs; in fstabsearch() local
326 fs = pf->pf_fstab; in fstabsearch()
329 return (fs); in fstabsearch()
332 return (fs); in fstabsearch()
336 return (fs); in fstabsearch()
[all …]
/dragonfly/sbin/badsect/
H A Dbadsect.c61 struct fs sblock, *fs; variable
121 fs = &sblock; in main()
122 rdfs(SBOFF, SBSIZE, (char *)fs); in main()
123 dev_bsize = fs->fs_fsize / fsbtodb(fs, 1); in main()
134 diskbn = dbtofsb(fs, number); in main()
155 fsbn = dbtofsb(fs, blkno); in chkuse()
160 if (fsbn + cnt > fs->fs_size) { in chkuse()
164 cg = dtog(fs, fsbn); in chkuse()
165 if (fsbn < cgdmin(fs, cg)) { in chkuse()
178 rdfs(fsbtodb(fs, cgtod(fs, cg)), (int)sblock.fs_cgsize, in chkuse()
[all …]
/dragonfly/sbin/clri/
H A Dclri.c60 struct fs *sbp; in main()
67 char *fs, sblock[SBSIZE]; in main() local
72 fs = *++argv; in main()
76 err(1, "%s", fs); in main()
78 err(1, "%s", fs); in main()
82 sbp = (struct fs *)sblock; in main()
85 fs, sbp->fs_magic, FS_MAGIC); in main()
102 err(1, "%s", fs); in main()
104 err(1, "%s", fs); in main()
116 err(1, "%s", fs); in main()
[all …]
/dragonfly/contrib/gcc-8.0/libgcc/soft-fp/
H A Dop-1.h82 #define _FP_FRAC_OVERP_1(fs, X) (X##_f & _FP_OVERFLOW_##fs) argument
83 #define _FP_FRAC_CLEAR_OVERP_1(fs, X) (X##_f &= ~_FP_OVERFLOW_##fs) argument
84 #define _FP_FRAC_HIGHBIT_DW_1(fs, X) (X##_f & _FP_HIGHBIT_DW_##fs) argument
96 #define _FP_UNPACK_RAW_1(fs, X, val) \ argument
108 #define _FP_UNPACK_RAW_1_P(fs, X, val) \ argument
112 = (union _FP_UNION_##fs *) (val); \
122 #define _FP_PACK_RAW_1(fs, val, X) \ argument
135 #define _FP_PACK_RAW_1_P(fs, val, X) \ argument
139 = (union _FP_UNION_##fs *) (val); \
259 ? R##_e--, _FP_WFRACBITS_##fs \
[all …]
/dragonfly/contrib/gcc-4.7/libgcc/soft-fp/
H A Dop-1.h73 #define _FP_FRAC_OVERP_1(fs,X) (X##_f & _FP_OVERFLOW_##fs) argument
74 #define _FP_FRAC_CLEAR_OVERP_1(fs,X) (X##_f &= ~_FP_OVERFLOW_##fs) argument
88 #define _FP_UNPACK_RAW_1(fs, X, val) \ argument
99 union _FP_UNION_##fs *_flo = \
100 (union _FP_UNION_##fs *)(val); \
111 #define _FP_PACK_RAW_1(fs, val, X) \ argument
113 union _FP_UNION_##fs _flo; \
124 union _FP_UNION_##fs *_flo = \
207 : _FP_WFRACBITS_##fs - 1); \
247 _nl = X##_f << _FP_WFRACBITS_##fs; \
[all …]
/dragonfly/libexec/rpc.rquotad/
H A Drquotad.c40 static int hasquota(struct fstab *fs, char **qfnamep);
190 struct fstab *fs; in initfs() local
194 while ((fs = getfsent())) { in initfs()
195 if (strcmp(fs->fs_vfstype, "ufs")) in initfs()
197 if (!hasquota(fs, &qfpathname)) in initfs()
204 strcpy(fs_current->fs_file, fs->fs_file); in initfs()
226 struct fs_stat *fs; in getfsquota() local
234 for (fs = fs_begin; fs != NULL; fs = fs->fs_next) { in getfsquota()
236 if (fs->st_dev != st_path.st_dev) in getfsquota()
278 hasquota(struct fstab *fs, char **qfnamep) in hasquota() argument
[all …]
/dragonfly/sbin/tunefs/
H A Dtunefs.c58 struct fs sb;
81 struct fstab *fs; in main() local
91 fs = getfsfile(special); in main()
92 if (fs) { in main()
97 special = fs->fs_spec; in main()
279 if (mount("ufs", fs->fs_file, in main()
298 getsb(struct fs *fs, const char *file) in getsb() argument
306 if (fs->fs_magic != FS_MAGIC) in getsb()
308 dev_bsize = fs->fs_fsize / fsbtodb(fs, 1); in getsb()
312 putsb(struct fs *fs, const char *file, int all) in putsb() argument
[all …]
/dragonfly/usr.sbin/makefs/
H A Dffs.c493 fs->bsize, fs->fsize, fs->cpg, fs->density); in ffs_dump_fsinfo()
495 fs->nsectors, fs->rpm, fs->minfree); in ffs_dump_fsinfo()
497 fs->maxcontig, fs->maxbpg); in ffs_dump_fsinfo()
509 struct fs *fs; in ffs_create_image() local
1134 struct fs *fs; in ffs_write_inode() local
1151 fs = (struct fs *)fsopts->superblock; in ffs_write_inode()
1158 ffs_rdfs(fsbtodb(fs, cgtod(fs, cg)), (int)fs->fs_cgsize, &sbbuf, in ffs_write_inode()
1175 if (fs->fs_cs(fs, cg).cs_nifree == 0) in ffs_write_inode()
1182 fs->fs_cs(fs, cg).cs_nifree--; in ffs_write_inode()
1186 fs->fs_cs(fs, cg).cs_ndir++; in ffs_write_inode()
[all …]
/dragonfly/usr.sbin/fstyp/
H A Dext2fs.c55 e2sb_t *fs; in fstyp_ext2fs() local
58 fs = (e2sb_t *)read_buf(fp, EXT2FS_SB_OFFSET, 512); in fstyp_ext2fs()
59 if (fs == NULL) in fstyp_ext2fs()
63 if (fs->s_magic == EXT2_SUPER_MAGIC && in fstyp_ext2fs()
64 fs->s_rev_level == EXT2_DYNAMIC_REV) { in fstyp_ext2fs()
68 free(fs); in fstyp_ext2fs()
72 s_volume_name = fs->s_volume_name; in fstyp_ext2fs()
74 s_volume_name[sizeof(fs->s_volume_name) - 1] = '\0'; in fstyp_ext2fs()
80 free(fs); in fstyp_ext2fs()
/dragonfly/contrib/zstd/programs/
H A Ddibio.c240 fileStats fs; in DiB_fileStats() local
242 memset(&fs, 0, sizeof(fs)); in DiB_fileStats()
249 fs.totalSizeToLoad += cappedChunkSize * nbSamples; in DiB_fileStats()
250 fs.oneSampleTooLarge |= (chunkSize > 2*SAMPLESIZE_MAX); in DiB_fileStats()
251 fs.nbSamples += nbSamples; in DiB_fileStats()
254 return fs; in DiB_fileStats()
281 size_t* const sampleSizes = (size_t*)malloc(fs.nbSamples * sizeof(size_t)); in DiB_trainFromFiles()
293 if (fs.oneSampleTooLarge) { in DiB_trainFromFiles()
298 if (fs.nbSamples < 5) { in DiB_trainFromFiles()
304 if (fs.totalSizeToLoad < (unsigned long long)maxDictSize * 8) { in DiB_trainFromFiles()
[all …]

12345678910>>...13