OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [tags/] [eco32-0.22/] [disk/] [tools/] [fs-NetBSD/] [makefs/] [makefs.c] - Diff between revs 17 and 21

Only display areas with differences | Details | Blame | View Log

Rev 17 Rev 21
/*      $NetBSD: makefs.c,v 1.31 2012/01/28 02:35:46 christos Exp $     */
/*      $NetBSD: makefs.c,v 1.31 2012/01/28 02:35:46 christos Exp $     */
 
 
/*
/*
 * Copyright (c) 2001-2003 Wasabi Systems, Inc.
 * Copyright (c) 2001-2003 Wasabi Systems, Inc.
 * All rights reserved.
 * All rights reserved.
 *
 *
 * Written by Luke Mewburn for Wasabi Systems, Inc.
 * Written by Luke Mewburn for Wasabi Systems, Inc.
 *
 *
 * Redistribution and use in source and binary forms, with or without
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * modification, are permitted provided that the following conditions
 * are met:
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *    must display the following acknowledgement:
 *      This product includes software developed for the NetBSD Project by
 *      This product includes software developed for the NetBSD Project by
 *      Wasabi Systems, Inc.
 *      Wasabi Systems, Inc.
 * 4. The name of Wasabi Systems, Inc. may not be used to endorse
 * 4. The name of Wasabi Systems, Inc. may not be used to endorse
 *    or promote products derived from this software without specific prior
 *    or promote products derived from this software without specific prior
 *    written permission.
 *    written permission.
 *
 *
 * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
 * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 * POSSIBILITY OF SUCH DAMAGE.
 */
 */
 
 
#if HAVE_NBTOOL_CONFIG_H
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#include "nbtool_config.h"
#endif
#endif
 
 
#include <sys/cdefs.h>
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
#if defined(__RCSID) && !defined(__lint)
__RCSID("$NetBSD: makefs.c,v 1.31 2012/01/28 02:35:46 christos Exp $");
__RCSID("$NetBSD: makefs.c,v 1.31 2012/01/28 02:35:46 christos Exp $");
#endif  /* !__lint */
#endif  /* !__lint */
 
 
#include <assert.h>
#include <assert.h>
#include <ctype.h>
#include <ctype.h>
#include <errno.h>
#include <errno.h>
#include <limits.h>
#include <limits.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#include <time.h>
#include <time.h>
#include <sys/time.h>
#include <sys/time.h>
 
 
#include "common.h"
#include "common.h"
#include "makefs.h"
#include "makefs.h"
#include "mtree.h"
#include "mtree.h"
 
 
/*
/*
 * list of supported file systems and dispatch functions
 * list of supported file systems and dispatch functions
 */
 */
typedef struct {
typedef struct {
        const char      *type;
        const char      *type;
        void            (*prepare_options)(fsinfo_t *);
        void            (*prepare_options)(fsinfo_t *);
        int             (*parse_options)(const char *, fsinfo_t *);
        int             (*parse_options)(const char *, fsinfo_t *);
        void            (*cleanup_options)(fsinfo_t *);
        void            (*cleanup_options)(fsinfo_t *);
        void            (*make_fs)(const char *, const char *, fsnode *,
        void            (*make_fs)(const char *, const char *, fsnode *,
                                fsinfo_t *);
                                fsinfo_t *);
} fstype_t;
} fstype_t;
 
 
static fstype_t fstypes[] = {
static fstype_t fstypes[] = {
        { "ffs", ffs_prep_opts, ffs_parse_opts, ffs_cleanup_opts, ffs_makefs },
        { "ffs", ffs_prep_opts, ffs_parse_opts, ffs_cleanup_opts, ffs_makefs },
        { .type = NULL  },
        { .type = NULL  },
};
};
 
 
u_int           debug;
u_int           debug;
struct timespec start_time;
struct timespec start_time;
 
 
static  fstype_t *get_fstype(const char *);
static  fstype_t *get_fstype(const char *);
static  void    usage(void);
static  void    usage(void);
int             main(int, char *[]);
int             main(int, char *[]);
 
 
static const char *progname = NULL;
static const char *progname = NULL;
 
 
void setprogname(const char *name) {
void setprogname(const char *name) {
  progname = name;
  progname = name;
}
}
 
 
const char *getprogname(void) {
const char *getprogname(void) {
  return progname;
  return progname;
}
}
 
 
long getValue(const char *desc, const char *val, long min, long max) {
long getValue(const char *desc, const char *val, long min, long max) {
  long result;
  long result;
  char *endp;
  char *endp;
 
 
  result = strtol(val, &endp, 0);
  result = strtol(val, &endp, 0);
  if (*endp != '\0') {
  if (*endp != '\0') {
    if (strcmp(endp, "b") == 0) {
    if (strcmp(endp, "b") == 0) {
      result *= 512;
      result *= 512;
    } else
    } else
    if (strcmp(endp, "k") == 0) {
    if (strcmp(endp, "k") == 0) {
      result *= 1024;
      result *= 1024;
    } else
    } else
    if (strcmp(endp, "m") == 0) {
    if (strcmp(endp, "m") == 0) {
      result *= 1048576;
      result *= 1048576;
    } else
    } else
    if (strcmp(endp, "w") == 0) {
    if (strcmp(endp, "w") == 0) {
      result *= sizeof(int);
      result *= sizeof(int);
    } else {
    } else {
      errx(1, "%s, unknown suffix '%s'", desc, endp);
      errx(1, "%s, unknown suffix '%s'", desc, endp);
    }
    }
  }
  }
  if (result < min || result > max) {
  if (result < min || result > max) {
    errx(1, "%s, value out of range", desc);
    errx(1, "%s, value out of range", desc);
  }
  }
  return result;
  return result;
}
}
 
 
u_int nodetoino(u_int type) {
u_int nodetoino(u_int type) {
  switch (type) {
  switch (type) {
    case F_BLOCK:
    case F_BLOCK:
      return S_IFBLK;
      return S_IFBLK;
    case F_CHAR:
    case F_CHAR:
      return S_IFCHR;
      return S_IFCHR;
    case F_DIR:
    case F_DIR:
      return S_IFDIR;
      return S_IFDIR;
    case F_FIFO:
    case F_FIFO:
      return S_IFIFO;
      return S_IFIFO;
    case F_FILE:
    case F_FILE:
      return S_IFREG;
      return S_IFREG;
    case F_LINK:
    case F_LINK:
      return S_IFLNK;
      return S_IFLNK;
    default:
    default:
      printf("unknown type %d", type);
      printf("unknown type %d", type);
      abort();
      abort();
  }
  }
}
}
 
 
const char *inotype(u_int type) {
const char *inotype(u_int type) {
  switch (type & S_IFMT) {
  switch (type & S_IFMT) {
    case S_IFBLK:
    case S_IFBLK:
      return "block";
      return "block";
    case S_IFCHR:
    case S_IFCHR:
      return "char";
      return "char";
    case S_IFDIR:
    case S_IFDIR:
      return "dir";
      return "dir";
    case S_IFIFO:
    case S_IFIFO:
      return "fifo";
      return "fifo";
    case S_IFREG:
    case S_IFREG:
      return "file";
      return "file";
    case S_IFLNK:
    case S_IFLNK:
      return "link";
      return "link";
    default:
    default:
      return "unknown";
      return "unknown";
  }
  }
}
}
 
 
int setup_getid(const char *dir) {
int setup_getid(const char *dir) {
  return 0;
  return 0;
}
}
 
 
int
int
main(int argc, char *argv[])
main(int argc, char *argv[])
{
{
        struct timeval   start;
        struct timeval   start;
        fstype_t        *fstype;
        fstype_t        *fstype;
        fsinfo_t         fsoptions;
        fsinfo_t         fsoptions;
        fsnode          *root;
        fsnode          *root;
        int              ch, i, len;
        int              ch, i, len;
        char            *specfile;
        char            *specfile;
 
 
        setprogname(argv[0]);
        setprogname(argv[0]);
 
 
        debug = 0;
        debug = 0;
        if ((fstype = get_fstype(DEFAULT_FSTYPE)) == NULL)
        if ((fstype = get_fstype(DEFAULT_FSTYPE)) == NULL)
                errx(1, "Unknown default fs type `%s'.", DEFAULT_FSTYPE);
                errx(1, "Unknown default fs type `%s'.", DEFAULT_FSTYPE);
 
 
                /* set default fsoptions */
                /* set default fsoptions */
        (void)memset(&fsoptions, 0, sizeof(fsoptions));
        (void)memset(&fsoptions, 0, sizeof(fsoptions));
        fsoptions.fd = -1;
        fsoptions.fd = -1;
        fsoptions.sectorsize = -1;
        fsoptions.sectorsize = -1;
 
 
        if (fstype->prepare_options)
        if (fstype->prepare_options)
                fstype->prepare_options(&fsoptions);
                fstype->prepare_options(&fsoptions);
 
 
        specfile = NULL;
        specfile = NULL;
        if (gettimeofday(&start, NULL) == -1)
        if (gettimeofday(&start, NULL) == -1)
                err(1, "Unable to get system time");
                err(1, "Unable to get system time");
 
 
        start_time.tv_sec = start.tv_sec;
        start_time.tv_sec = start.tv_sec;
        start_time.tv_nsec = start.tv_usec * 1000;
        start_time.tv_nsec = start.tv_usec * 1000;
 
 
        while ((ch = getopt(argc, argv, "B:b:d:f:F:M:m:N:o:s:S:t:x")) != -1) {
        while ((ch = getopt(argc, argv, "B:b:d:f:F:M:m:N:o:s:S:t:x")) != -1) {
                switch (ch) {
                switch (ch) {
 
 
                case 'B':
                case 'B':
                        if (strcmp(optarg, "be") == 0 ||
                        if (strcmp(optarg, "be") == 0 ||
                            strcmp(optarg, "4321") == 0 ||
                            strcmp(optarg, "4321") == 0 ||
                            strcmp(optarg, "big") == 0) {
                            strcmp(optarg, "big") == 0) {
#if BYTE_ORDER == LITTLE_ENDIAN
#if BYTE_ORDER == LITTLE_ENDIAN
                                fsoptions.needswap = 1;
                                fsoptions.needswap = 1;
#endif
#endif
                        } else if (strcmp(optarg, "le") == 0 ||
                        } else if (strcmp(optarg, "le") == 0 ||
                            strcmp(optarg, "1234") == 0 ||
                            strcmp(optarg, "1234") == 0 ||
                            strcmp(optarg, "little") == 0) {
                            strcmp(optarg, "little") == 0) {
#if BYTE_ORDER == BIG_ENDIAN
#if BYTE_ORDER == BIG_ENDIAN
                                fsoptions.needswap = 1;
                                fsoptions.needswap = 1;
#endif
#endif
                        } else {
                        } else {
                                warnx("Invalid endian `%s'.", optarg);
                                warnx("Invalid endian `%s'.", optarg);
                                usage();
                                usage();
                        }
                        }
                        break;
                        break;
 
 
                case 'b':
                case 'b':
                        len = strlen(optarg) - 1;
                        len = strlen(optarg) - 1;
                        if (optarg[len] == '%') {
                        if (optarg[len] == '%') {
                                optarg[len] = '\0';
                                optarg[len] = '\0';
                                fsoptions.freeblockpc =
                                fsoptions.freeblockpc =
                                    getValue("free block percentage",
                                    getValue("free block percentage",
                                        optarg, 0, 99);
                                        optarg, 0, 99);
                        } else {
                        } else {
                                fsoptions.freeblocks =
                                fsoptions.freeblocks =
                                    getValue("free blocks",
                                    getValue("free blocks",
                                        optarg, 0, LONG_MAX);
                                        optarg, 0, LONG_MAX);
                        }
                        }
                        break;
                        break;
 
 
                case 'd':
                case 'd':
                        debug = strtoll(optarg, NULL, 0);
                        debug = strtoll(optarg, NULL, 0);
                        break;
                        break;
 
 
                case 'f':
                case 'f':
                        len = strlen(optarg) - 1;
                        len = strlen(optarg) - 1;
                        if (optarg[len] == '%') {
                        if (optarg[len] == '%') {
                                optarg[len] = '\0';
                                optarg[len] = '\0';
                                fsoptions.freefilepc =
                                fsoptions.freefilepc =
                                    getValue("free file percentage",
                                    getValue("free file percentage",
                                        optarg, 0, 99);
                                        optarg, 0, 99);
                        } else {
                        } else {
                                fsoptions.freefiles =
                                fsoptions.freefiles =
                                    getValue("free files",
                                    getValue("free files",
                                        optarg, 0, LONG_MAX);
                                        optarg, 0, LONG_MAX);
                        }
                        }
                        break;
                        break;
 
 
                case 'F':
                case 'F':
                        specfile = optarg;
                        specfile = optarg;
                        break;
                        break;
 
 
                case 'M':
                case 'M':
                        fsoptions.minsize =
                        fsoptions.minsize =
                            getValue("minimum size", optarg, 1L, LONG_MAX);
                            getValue("minimum size", optarg, 1L, LONG_MAX);
                        break;
                        break;
 
 
                case 'N':
                case 'N':
                        if (! setup_getid(optarg))
                        if (! setup_getid(optarg))
                                errx(1,
                                errx(1,
                            "Unable to use user and group databases in `%s'",
                            "Unable to use user and group databases in `%s'",
                                    optarg);
                                    optarg);
                        break;
                        break;
 
 
                case 'm':
                case 'm':
                        fsoptions.maxsize =
                        fsoptions.maxsize =
                            getValue("maximum size", optarg, 1L, LONG_MAX);
                            getValue("maximum size", optarg, 1L, LONG_MAX);
                        break;
                        break;
 
 
                case 'o':
                case 'o':
                {
                {
                        char *p;
                        char *p;
 
 
                        while ((p = strsep(&optarg, ",")) != NULL) {
                        while ((p = strsep(&optarg, ",")) != NULL) {
                                if (*p == '\0')
                                if (*p == '\0')
                                        errx(1, "Empty option");
                                        errx(1, "Empty option");
                                if (! fstype->parse_options(p, &fsoptions))
                                if (! fstype->parse_options(p, &fsoptions))
                                        usage();
                                        usage();
                        }
                        }
                        break;
                        break;
                }
                }
 
 
                case 's':
                case 's':
                        fsoptions.minsize = fsoptions.maxsize =
                        fsoptions.minsize = fsoptions.maxsize =
                            getValue("size", optarg, 1L, LONG_MAX);
                            getValue("size", optarg, 1L, LONG_MAX);
                        break;
                        break;
 
 
                case 'S':
                case 'S':
                        fsoptions.sectorsize =
                        fsoptions.sectorsize =
                            (int)getValue("sector size", optarg,
                            (int)getValue("sector size", optarg,
                                1LL, INT_MAX);
                                1LL, INT_MAX);
                        break;
                        break;
 
 
                case 't':
                case 't':
                        /* Check current one and cleanup if necessary. */
                        /* Check current one and cleanup if necessary. */
                        if (fstype->cleanup_options)
                        if (fstype->cleanup_options)
                                fstype->cleanup_options(&fsoptions);
                                fstype->cleanup_options(&fsoptions);
                        fsoptions.fs_specific = NULL;
                        fsoptions.fs_specific = NULL;
                        if ((fstype = get_fstype(optarg)) == NULL)
                        if ((fstype = get_fstype(optarg)) == NULL)
                                errx(1, "Unknown fs type `%s'.", optarg);
                                errx(1, "Unknown fs type `%s'.", optarg);
                        fstype->prepare_options(&fsoptions);
                        fstype->prepare_options(&fsoptions);
                        break;
                        break;
 
 
                case 'x':
                case 'x':
                        fsoptions.onlyspec = 1;
                        fsoptions.onlyspec = 1;
                        break;
                        break;
 
 
                case '?':
                case '?':
                default:
                default:
                        usage();
                        usage();
                        /* NOTREACHED */
                        /* NOTREACHED */
 
 
                }
                }
        }
        }
        if (debug) {
        if (debug) {
                printf("debug mask: 0x%08x\n", debug);
                printf("debug mask: 0x%08x\n", debug);
                printf("start time: %ld.%ld, %s",
                printf("start time: %ld.%ld, %s",
                    (long)start_time.tv_sec, (long)start_time.tv_nsec,
                    (long)start_time.tv_sec, (long)start_time.tv_nsec,
                    ctime(&start_time.tv_sec));
                    ctime(&start_time.tv_sec));
        }
        }
        argc -= optind;
        argc -= optind;
        argv += optind;
        argv += optind;
 
 
        if (argc < 2)
        if (argc < 2)
                usage();
                usage();
 
 
        /* -x must be accompanied by -F */
        /* -x must be accompanied by -F */
        if (fsoptions.onlyspec != 0 && specfile == NULL)
        if (fsoptions.onlyspec != 0 && specfile == NULL)
                errx(1, "-x requires -F mtree-specfile.");
                errx(1, "-x requires -F mtree-specfile.");
 
 
                                /* walk the tree */
                                /* walk the tree */
        TIMER_START(start);
        TIMER_START(start);
        root = walk_dir(argv[1], ".", NULL, NULL);
        root = walk_dir(argv[1], ".", NULL, NULL);
        TIMER_RESULTS(start, "walk_dir");
        TIMER_RESULTS(start, "walk_dir");
 
 
        /* append extra directory */
        /* append extra directory */
        for (i = 2; i < argc; i++) {
        for (i = 2; i < argc; i++) {
                struct stat sb;
                struct stat sb;
                if (stat(argv[i], &sb) == -1)
                if (stat(argv[i], &sb) == -1)
                        err(1, "Can't stat `%s'", argv[i]);
                        err(1, "Can't stat `%s'", argv[i]);
                if (!S_ISDIR(sb.st_mode))
                if (!S_ISDIR(sb.st_mode))
                        errx(1, "%s: not a directory", argv[i]);
                        errx(1, "%s: not a directory", argv[i]);
                TIMER_START(start);
                TIMER_START(start);
                root = walk_dir(argv[i], ".", NULL, root);
                root = walk_dir(argv[i], ".", NULL, root);
                TIMER_RESULTS(start, "walk_dir2");
                TIMER_RESULTS(start, "walk_dir2");
        }
        }
 
 
        if (specfile) {         /* apply a specfile */
        if (specfile) {         /* apply a specfile */
                TIMER_START(start);
                TIMER_START(start);
                apply_specfile(specfile, argv[1], root, fsoptions.onlyspec);
                apply_specfile(specfile, argv[1], root, fsoptions.onlyspec);
                TIMER_RESULTS(start, "apply_specfile");
                TIMER_RESULTS(start, "apply_specfile");
        }
        }
 
 
        if (debug & DEBUG_DUMP_FSNODES) {
        if (debug & DEBUG_DUMP_FSNODES) {
                printf("\nparent: %s\n", argv[1]);
                printf("\nparent: %s\n", argv[1]);
                dump_fsnodes(root);
                dump_fsnodes(root);
                putchar('\n');
                putchar('\n');
        }
        }
 
 
                                /* build the file system */
                                /* build the file system */
        TIMER_START(start);
        TIMER_START(start);
        fstype->make_fs(argv[0], argv[1], root, &fsoptions);
        fstype->make_fs(argv[0], argv[1], root, &fsoptions);
        TIMER_RESULTS(start, "make_fs");
        TIMER_RESULTS(start, "make_fs");
 
 
        free_fsnodes(root);
        free_fsnodes(root);
 
 
        exit(0);
        exit(0);
        /* NOTREACHED */
        /* NOTREACHED */
}
}
 
 
 
 
int
int
set_option(option_t *options, const char *var, const char *val)
set_option(option_t *options, const char *var, const char *val)
{
{
        int     i;
        int     i;
 
 
        for (i = 0; options[i].name != NULL; i++) {
        for (i = 0; options[i].name != NULL; i++) {
                if (strcmp(options[i].name, var) != 0)
                if (strcmp(options[i].name, var) != 0)
                        continue;
                        continue;
                *options[i].value = (int)getValue(options[i].desc, val,
                *options[i].value = (int)getValue(options[i].desc, val,
                    options[i].minimum, options[i].maximum);
                    options[i].minimum, options[i].maximum);
                return (1);
                return (1);
        }
        }
        warnx("Unknown option `%s'", var);
        warnx("Unknown option `%s'", var);
        return (0);
        return (0);
}
}
 
 
 
 
static fstype_t *
static fstype_t *
get_fstype(const char *type)
get_fstype(const char *type)
{
{
        int i;
        int i;
 
 
        for (i = 0; fstypes[i].type != NULL; i++)
        for (i = 0; fstypes[i].type != NULL; i++)
                if (strcmp(fstypes[i].type, type) == 0)
                if (strcmp(fstypes[i].type, type) == 0)
                        return (&fstypes[i]);
                        return (&fstypes[i]);
        return (NULL);
        return (NULL);
}
}
 
 
static void
static void
usage(void)
usage(void)
{
{
        const char *prog;
        const char *prog;
 
 
        prog = getprogname();
        prog = getprogname();
        fprintf(stderr,
        fprintf(stderr,
"usage: %s [-x] [-B endian] [-b free-blocks] [-d debug-mask]\n"
"usage: %s [-x] [-B endian] [-b free-blocks] [-d debug-mask]\n"
"\t[-F mtree-specfile] [-f free-files] [-M minimum-size]\n"
"\t[-F mtree-specfile] [-f free-files] [-M minimum-size]\n"
"\t[-m maximum-size] [-N userdb-dir] [-o fs-options] [-S sector-size]\n"
"\t[-m maximum-size] [-N userdb-dir] [-o fs-options] [-S sector-size]\n"
"\t[-s image-size] [-t fs-type] image-file directory [extra-directory ...]\n",
"\t[-s image-size] [-t fs-type] image-file directory [extra-directory ...]\n",
            prog);
            prog);
        exit(1);
        exit(1);
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.