Lines Matching +full:big +full:- +full:endian +full:- +full:desc
3 /*-
4 * SPDX-License-Identifier: BSD-4-Clause
6 * Copyright (c) 2001-2003 Wasabi Systems, Inc.
112 fsoptions.fd = -1; in main()
113 fsoptions.sectorsize = -1; in main()
115 if (fstype->prepare_options) in main()
116 fstype->prepare_options(&fsoptions); in main()
126 if (ch == -1) in main()
130 while ((ch = getopt(argc, argv, "B:b:Dd:f:F:M:m:N:O:o:pR:s:S:t:T:xZ")) != -1) { in main()
136 strcmp(optarg, "big") == 0) { in main()
147 warnx("Invalid endian `%s'.", optarg); in main()
153 len = strlen(optarg) - 1; in main()
175 len = strlen(optarg) - 1; in main()
221 if (! fstype->parse_options(p, &fsoptions)) in main()
234 strsuftoll("roundup-size", optarg, 0, LLONG_MAX); in main()
250 if (fstype->cleanup_options) in main()
251 fstype->cleanup_options(&fsoptions); in main()
255 fstype->prepare_options(&fsoptions); in main()
259 if (get_tstamp(optarg, &stampst) == -1) in main()
285 argc -= optind; in main()
291 /* -x must be accompanied by -F */ in main()
293 errx(1, "-x requires -F mtree-specfile."); in main()
295 /* Accept '-' as meaning "read from standard input". */ in main()
296 if (strcmp(argv[1], "-") == 0) in main()
299 if (stat(argv[1], &sb) == -1) in main()
323 if (stat(argv[i], &sb) == -1) in main()
346 fstype->make_fs(argv[0], subtree, root, &fsoptions); in main()
386 *(type *)options[i].value = (type)strsuftoll(options[i].desc, val, \ in set_option_var()
428 return -1; in set_option_var()
461 if (stat(b, st) != -1) in get_tstamp()
468 return -1; in get_tstamp()
472 st->st_ino = 1; in get_tstamp()
474 st->st_birthtime = in get_tstamp()
476 st->st_mtime = st->st_ctime = st->st_atime = when; in get_tstamp()
487 "Usage: %s [-xZ] [-B endian] [-b free-blocks] [-d debug-mask]\n" in usage()
488 "\t[-F mtree-specfile] [-f free-files] [-M minimum-size] [-m maximum-size]\n" in usage()
489 "\t[-N userdb-dir] [-O offset] [-o fs-options] [-R roundup-size]\n" in usage()
490 "\t[-S sector-size] [-s image-size] [-T <timestamp/file>] [-t fs-type]\n" in usage()
491 "\timage-file directory | manifest [extra-directory ...]\n", in usage()
496 option_t *o = fsoptions->fs_options; in usage()
498 fprintf(stderr, "\n%s specific options:\n", fstype->type); in usage()
503 o[i].name, o[i].desc); in usage()