Lines Matching refs:fsopts
65 v7fs_prep_opts(fsinfo_t *fsopts)
76 fsopts->fs_specific = v7fs_opts;
77 fsopts->fs_options = copy_opts(v7fs_options);
81 v7fs_cleanup_opts(fsinfo_t *fsopts)
83 free(fsopts->fs_specific);
84 free(fsopts->fs_options);
88 v7fs_parse_opts(const char *option, fsinfo_t *fsopts)
91 return set_option_var(fsopts->fs_options, option, "1", NULL, 0) != -1;
95 v7fs_makefs(const char *image, const char *dir, fsnode *root, fsinfo_t *fsopts)
99 v7fs_opt_t *v7fs_opts = fsopts->fs_specific;
111 v7fs_estimate(dir, root, fsopts);
113 image, (long long)fsopts->size, (long)fsopts->inodes);
118 if (lseek(fd, fsopts->size - 1, SEEK_SET) == -1) {
127 fsopts->fd = fd;
134 if (fsopts->needswap)
139 if (fsopts->needswap)
149 v7fs_mount.sectors = fsopts->size >> V7FS_BSHIFT;
150 if (v7fs_newfs(&v7fs_mount, fsopts->inodes) != 0) {
154 if (v7fs_populate(dir, root, fsopts, &v7fs_mount) != 0) {