Home | History | Annotate | Download | only in makefs

Lines Matching defs:chfs_opts

59 	chfs_opt_t *chfs_opts = ecalloc(1, sizeof(*chfs_opts));
62 { 'p', "pagesize", &chfs_opts->pagesize, OPT_INT32,
64 { 'e', "eraseblock", &chfs_opts->eraseblock, OPT_INT32,
66 { 'm', "mediatype", &chfs_opts->mediatype, OPT_INT32,
71 chfs_opts->pagesize = -1;
72 chfs_opts->eraseblock = -1;
73 chfs_opts->mediatype = -1;
76 fsopts->fs_specific = chfs_opts;
142 chfs_opt_t *chfs_opts;
147 chfs_opts = fsopts->fs_specific;
149 if (chfs_opts->pagesize == -1) {
150 chfs_opts->pagesize = DEFAULT_PAGESIZE;
152 if (chfs_opts->eraseblock == -1) {
153 chfs_opts->eraseblock = DEFAULT_ERASEBLOCK;
155 if (chfs_opts->mediatype == -1) {
156 chfs_opts->mediatype = DEFAULT_MEDIATYPE;