/* $Id$ Utility to initialize tapes before use Labels tape and creates database branch for new volume */ #include "volume_import.h" void InitUsage() { fprintf(stderr, "Usage: %s --init [--verbose] [--erase] [--tape-device=device] \n\ [--tape-db=db_dir] --volume_label=label\n\ tape-device can be set using environment variable $TAPE_DEVICE\n\ tape-db (db directory) can be set using environment variable $TAPE_DB\n", progname); exit(-1); } int clear_db_volume(); static char * match_opt(char *optname, char *arg) { int n; char *cp; /* be friendly about _ vs - */ for (cp=arg; *cp && *cp!='='; ++cp) if (*cp=='_') *cp = '-'; n = strlen(optname); if (strlen(arg)