Home
last modified time | relevance | path

Searched refs:fsopts (Results 1 – 10 of 10) sorted by relevance

/netbsd/usr.sbin/makefs/
H A Dchfs.c75 fsopts->size = 0; in chfs_prep_opts()
92 assert(fsopts != NULL); in chfs_parse_opts()
105 assert(fsopts != NULL); in chfs_makefs()
129 padblock(fsopts); in chfs_makefs()
134 fsopts->fd = -1; in chfs_makefs()
145 assert(fsopts != NULL); in chfs_validate()
164 assert(fsopts != NULL); in chfs_create_image()
171 return fsopts->fd; in chfs_create_image()
176 fsinfo_t *fsopts) in chfs_populate_dir() argument
183 assert(fsopts != NULL); in chfs_populate_dir()
[all …]
H A Dffs.c307 ffs_write_superblock(fsopts->superblock, fsopts); in ffs_makefs()
371 (long long)fsopts->size, (long long)fsopts->inodes); in ffs_validate()
374 fsopts->size += fsopts->freeblocks; in ffs_validate()
375 fsopts->inodes += fsopts->freefiles; in ffs_validate()
378 fsopts->inodes * (100 + fsopts->freefilepc) / 100; in ffs_validate()
381 fsopts->size * (100 + fsopts->freeblockpc) / 100; in ffs_validate()
409 fsopts->size = fsopts->minsize; in ffs_validate()
412 fsopts->size = roundup(fsopts->size, ffs_opts->bsize); in ffs_validate()
416 ffs_opts->density = fsopts->size / fsopts->inodes + 1; in ffs_validate()
425 if (fsopts->maxsize > 0 && fsopts->size > fsopts->maxsize) { in ffs_validate()
[all …]
H A Dmsdos.c107 free(fsopts->fs_specific); in msdos_cleanup_opts()
108 free(fsopts->fs_options); in msdos_cleanup_opts()
120 assert(fsopts != NULL); in msdos_parse_opts()
158 assert(fsopts != NULL); in msdos_makefs()
160 fsopts->size = fsopts->maxsize; in msdos_makefs()
162 fsopts->offset + fsopts->size); in msdos_makefs()
166 fsopts->sectorsize = 512; in msdos_makefs()
184 vp.fs = fsopts; in msdos_makefs()
226 assert(fsopts != NULL); in msdos_populate_dir()
238 fsopts->curinode++; in msdos_populate_dir()
[all …]
H A Dv7fs.c62 v7fs_prep_opts(fsinfo_t *fsopts) in v7fs_prep_opts() argument
73 fsopts->fs_specific = v7fs_opts; in v7fs_prep_opts()
78 v7fs_cleanup_opts(fsinfo_t *fsopts) in v7fs_cleanup_opts() argument
80 free(fsopts->fs_specific); in v7fs_cleanup_opts()
81 free(fsopts->fs_options); in v7fs_cleanup_opts()
96 v7fs_opt_t *v7fs_opts = fsopts->fs_specific; in v7fs_makefs()
108 v7fs_estimate(dir, root, fsopts); in v7fs_makefs()
110 image, (long long)fsopts->size, (long)fsopts->inodes); in v7fs_makefs()
124 fsopts->fd = fd; in v7fs_makefs()
131 if (fsopts->needswap) in v7fs_makefs()
[all …]
H A Dudf.c180 free(fsopts->fs_options); in udf_cleanup_opts()
295 if (fsopts->maxsize > 0) in udf_parse_opts()
297 if (fsopts->minsize > 0) in udf_parse_opts()
299 fsopts->size = fsopts->minsize = fsopts->maxsize = stdsize; in udf_parse_opts()
302 if (fsopts->maxsize > 0) in udf_parse_opts()
304 if (fsopts->minsize > 0) in udf_parse_opts()
1128 n = fsopts->minsize / fsopts->sectorsize; in udf_enumerate_and_estimate()
1155 if (fsopts->size) { in udf_enumerate_and_estimate()
1190 fsopts->fd = dev_fd; in udf_makefs()
1212 (long)fsopts->inodes); in udf_makefs()
[all …]
H A Dcd9660.c262 cd9660_prep_opts(fsinfo_t *fsopts) in cd9660_prep_opts() argument
329 fsopts->fs_specific = diskStructure; in cd9660_prep_opts()
330 fsopts->fs_options = copy_opts(cd9660_options); in cd9660_prep_opts()
336 cd9660_cleanup_opts(fsinfo_t *fsopts) in cd9660_cleanup_opts() argument
338 free(fsopts->fs_specific); in cd9660_cleanup_opts()
339 free(fsopts->fs_options); in cd9660_cleanup_opts()
375 cd9660_parse_opts(const char *option, fsinfo_t *fsopts) in cd9660_parse_opts() argument
378 iso9660_disk *diskStructure = fsopts->fs_specific; in cd9660_parse_opts()
379 option_t *cd9660_options = fsopts->fs_options; in cd9660_parse_opts()
489 fsinfo_t *fsopts) in cd9660_makefs() argument
[all …]
/netbsd/usr.sbin/makefs/v7fs/
H A Dv7fs_estimate.c199 (long long)fsopts->size, (long long)fsopts->inodes, fsopts->fd, in determine_fs_size()
200 fsopts->superblock, fsopts->onlyspec); in determine_fs_size()
203 (long long)fsopts->minsize, (long long)fsopts->maxsize, in determine_fs_size()
204 (long long)fsopts->freefiles, fsopts->freefilepc, in determine_fs_size()
205 (long long)fsopts->freeblocks, fsopts->freeblockpc, in determine_fs_size()
206 fsopts->sectorsize); in determine_fs_size()
208 if ((fsopts->sectorsize > 0) && (fsopts->sectorsize != V7FS_BSIZE)) in determine_fs_size()
210 fsopts->sectorsize); in determine_fs_size()
213 if (fsopts->freefiles) { in determine_fs_size()
224 if (fsopts->freeblocks) { in determine_fs_size()
[all …]
H A Dv7fs_populate.c258 v7fs_populate(const char *dir, fsnode *root, fsinfo_t *fsopts, in v7fs_populate() argument
261 v7fs_opt_t *v7fs_opts = fsopts->fs_specific; in v7fs_populate()
280 fsopts->superblock = &fs->superblock; /* not used. */ in v7fs_populate()
/netbsd/usr.sbin/makefs/chfs/
H A Dchfs_mkfs.c86 padblock(fsinfo_t *fsopts) in padblock() argument
96 padword(fsinfo_t *fsopts) in padword() argument
109 padblock(fsopts); in pad_block_if_less_than()
110 write_eb_header(fsopts); in pad_block_if_less_than()
115 write_eb_header(fsinfo_t *fsopts) in write_eb_header() argument
121 opts = fsopts->fs_specific; in write_eb_header()
186 padword(fsopts); in write_vnode()
222 padword(fsopts); in write_dirent()
235 opts = fsopts->fs_specific; in write_file()
303 buf_write(fsopts, buf, len); in write_data()
[all …]
/netbsd/usr.sbin/makefs/ffs/
H A Dmkfs.c136 if (fsopts->needswap) in ffs_sb_copy()
154 fssize = fsopts->size / fsopts->sectorsize; in ffs_mkfs()
537 initcg(cylno, tstamp, fsopts); in ffs_mkfs()
557 if (fsopts->needswap) in ffs_mkfs()
584 sbsize, writebuf, fsopts); in ffs_write_superblock()
595 if (fsopts->needswap) in ffs_write_superblock()
762 if (fsopts->needswap) in initcg()
778 fsopts); in initcg()
806 offset = bno * (off_t)fsopts->sectorsize + fsopts->offset; in ffs_rdfs()
810 n = read(fsopts->fd, bf, size); in ffs_rdfs()
[all …]