| /netbsd/src/usr.sbin/makefs/ |
| D | ffs.c | 154 ffs_prep_opts(fsinfo_t *fsopts) in ffs_prep_opts() argument 201 fsopts->fs_specific = ffs_opts; in ffs_prep_opts() 202 fsopts->fs_options = copy_opts(ffs_options); in ffs_prep_opts() 206 ffs_cleanup_opts(fsinfo_t *fsopts) in ffs_cleanup_opts() argument 208 free(fsopts->fs_specific); in ffs_cleanup_opts() 209 free(fsopts->fs_options); in ffs_cleanup_opts() 213 ffs_parse_opts(const char *option, fsinfo_t *fsopts) in ffs_parse_opts() argument 215 ffs_opt_t *ffs_opts = fsopts->fs_specific; in ffs_parse_opts() 216 option_t *ffs_options = fsopts->fs_options; in ffs_parse_opts() 222 assert(fsopts != NULL); in ffs_parse_opts() [all …]
|
| D | chfs.c | 57 chfs_prep_opts(fsinfo_t *fsopts) in chfs_prep_opts() argument 75 fsopts->size = 0; in chfs_prep_opts() 76 fsopts->fs_specific = chfs_opts; in chfs_prep_opts() 77 fsopts->fs_options = copy_opts(chfs_options); in chfs_prep_opts() 81 chfs_cleanup_opts(fsinfo_t *fsopts) in chfs_cleanup_opts() argument 83 free(fsopts->fs_specific); in chfs_cleanup_opts() 84 free(fsopts->fs_options); in chfs_cleanup_opts() 88 chfs_parse_opts(const char *option, fsinfo_t *fsopts) in chfs_parse_opts() argument 92 assert(fsopts != NULL); in chfs_parse_opts() 94 return set_option(fsopts->fs_options, option, NULL, 0) != -1; in chfs_parse_opts() [all …]
|
| D | msdos.c | 74 msdos_prep_opts(fsinfo_t *fsopts) in msdos_prep_opts() argument 100 fsopts->fs_specific = msdos_opt; in msdos_prep_opts() 101 fsopts->fs_options = copy_opts(msdos_options); in msdos_prep_opts() 105 msdos_cleanup_opts(fsinfo_t *fsopts) in msdos_cleanup_opts() argument 107 free(fsopts->fs_specific); in msdos_cleanup_opts() 108 free(fsopts->fs_options); in msdos_cleanup_opts() 112 msdos_parse_opts(const char *option, fsinfo_t *fsopts) in msdos_parse_opts() argument 114 struct msdos_options *msdos_opt = fsopts->fs_specific; in msdos_parse_opts() 115 option_t *msdos_options = fsopts->fs_options; in msdos_parse_opts() 120 assert(fsopts != NULL); in msdos_parse_opts() [all …]
|
| D | v7fs.c | 62 v7fs_prep_opts(fsinfo_t *fsopts) in v7fs_prep_opts() argument 73 fsopts->fs_specific = v7fs_opts; in v7fs_prep_opts() 74 fsopts->fs_options = copy_opts(v7fs_options); 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() 85 v7fs_parse_opts(const char *option, fsinfo_t *fsopts) in v7fs_parse_opts() argument 88 return set_option_var(fsopts->fs_options, option, "1", NULL, 0) != -1; in v7fs_parse_opts() 92 v7fs_makefs(const char *image, const char *dir, fsnode *root, fsinfo_t *fsopts) in v7fs_makefs() argument 96 v7fs_opt_t *v7fs_opts = fsopts->fs_specific; in v7fs_makefs() [all …]
|
| D | udf.c | 115 udf_prep_opts(fsinfo_t *fsopts) in udf_prep_opts() argument 139 fsopts->sectorsize = 512; /* minimum allowed sector size */ in udf_prep_opts() 172 fsopts->fs_specific = NULL; in udf_prep_opts() 173 fsopts->fs_options = copy_opts(udf_options); in udf_prep_opts() 178 udf_cleanup_opts(fsinfo_t *fsopts) in udf_cleanup_opts() argument 180 free(fsopts->fs_options); in udf_cleanup_opts() 194 udf_parse_opts(const char *option, fsinfo_t *fsopts) in udf_parse_opts() argument 196 option_t *udf_options = fsopts->fs_options; in udf_parse_opts() 297 fsopts->sectorsize = set_sectorsize; in udf_parse_opts() 299 if (fsopts->maxsize > 0) in udf_parse_opts() [all …]
|
| D | cd9660.c | 262 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/src/usr.sbin/makefs/v7fs/ |
| D | v7fs_estimate.c | 192 determine_fs_size(fsinfo_t *fsopts, struct v7fs_geometry *geom) in determine_fs_size() argument 199 (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() [all …]
|
| D | v7fs_populate.c | 258 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/src/usr.sbin/makefs/chfs/ |
| D | chfs_mkfs.c | 67 buf_write(fsinfo_t *fsopts, const void *buf, size_t len) in buf_write() argument 73 retval = write(fsopts->fd, charbuf, len); in buf_write() 86 padblock(fsinfo_t *fsopts) in padblock() argument 88 chfs_opt_t *chfs_opts = fsopts->fs_specific; in padblock() 90 buf_write(fsopts, ffbuf, MIN(sizeof(ffbuf), in padblock() 96 padword(fsinfo_t *fsopts) in padword() argument 99 buf_write(fsopts, ffbuf, 4 - img_ofs % 4); in padword() 104 pad_block_if_less_than(fsinfo_t *fsopts, int req) in pad_block_if_less_than() argument 106 chfs_opt_t *chfs_opts = fsopts->fs_specific; in pad_block_if_less_than() 109 padblock(fsopts); in pad_block_if_less_than() [all …]
|
| /netbsd/src/usr.sbin/makefs/ffs/ |
| D | mkfs.c | 130 ffs_sb_copy(struct fs *o, const struct fs *i, size_t l, const fsinfo_t *fsopts) in ffs_sb_copy() argument 136 if (fsopts->needswap) in ffs_sb_copy() 141 ffs_mkfs(const char *fsys, const fsinfo_t *fsopts, time_t tstamp) in ffs_mkfs() argument 150 ffs_opt_t *ffs_opts = fsopts->fs_specific; in ffs_mkfs() 154 fssize = fsopts->size / fsopts->sectorsize; in ffs_mkfs() 155 sectorsize = fsopts->sectorsize; in ffs_mkfs() 193 ffs_wtfs(fssize - 1, sectorsize, (char *)&sblock, fsopts); in ffs_mkfs() 532 ffs_sb_copy(&wb.fs, &sblock, sbsize, fsopts); in ffs_mkfs() 537 initcg(cylno, tstamp, fsopts); in ffs_mkfs() 557 if (fsopts->needswap) in ffs_mkfs() [all …]
|