Lines Matching defs:import

420 	{ "import",	zpool_do_import,	HELP_IMPORT		},
3414 * errors unless we are in the scan phase of the import.
3801 * Perform the import for the given configuration. This passes the heavy
3819 (void) fprintf(stderr, gettext("cannot import '%s': pool "
3844 (void) fprintf(stderr, gettext("cannot import '%s': "
3847 "system, then run 'zpool import'.\n"),
3850 (void) fprintf(stderr, gettext("Cannot import '%s': "
3877 (void) fprintf(stderr, gettext("cannot import '%s': "
3880 "The pool can be imported, use 'zpool import -f' "
3881 "to import the pool.\n"), name, hostname,
3942 char *orig_name, char *new_name, importargs_t *import)
3947 boolean_t pool_specified = (import->poolname != NULL ||
3948 import->guid != 0);
3953 if (import->do_all) {
3959 * At this point we have a list of import candidate configs. Even if
3967 if (!pool_specified && import->do_all) {
3977 if (!import->do_destroyed &&
3980 if (import->do_destroyed &&
3985 import->policy) == 0);
3990 else if (!import->do_all)
3993 if (import->do_all) {
4010 * are in the scan phase of the import. If
4014 if (import->cachefile && !import->scan)
4019 } else if (import->poolname != NULL) {
4028 if (strcmp(name, import->poolname) == 0) {
4031 "cannot import '%s': more than "
4033 import->poolname);
4035 "import by numeric ID instead\n"));
4049 if (guid == import->guid)
4053 if (import->do_all) {
4060 * pool, and then do the import.
4064 (void) fprintf(stderr, gettext("cannot import '%s': "
4079 gettext("no pools available to import\n"));
4274 * zpool import [-d dir] [-D]
4275 * import [-o mntopts] [-o prop=value] ... [-R root] [-D] [-l]
4277 * import [-o mntopts] [-o prop=value] ... [-R root] [-D] [-l]
4289 * -D Scan for previously destroyed pools or import all or only
4292 * -R Temporarily import the pool, with all mountpoints relative to
4300 * import.
4302 * -f Force import, even if it appears that the pool is active.
4310 * -T Specify a starting txg to use for import. This option is
4325 * The import command scans for pools to import, and import pools based on pool
4326 * name and GUID. The pool can also be renamed as part of the import process.
4478 "an import\n"));
4534 * -a Iterate through all pools and try to import each one.
4537 * name and import that one.
4594 (void) fprintf(stderr, gettext("cannot import '%s': "
4599 "zpool import");
4602 (void) fprintf(stderr, gettext("cannot import '%s': "
4610 (void) fprintf(stderr, gettext("cannot import '%s': "
4629 * If we're using the cachefile and we failed to import, then
4634 (void) printf(gettext("cachefile import failed, retrying\n"));
7768 flags.import = B_FALSE;
7781 flags.import = B_TRUE;
7824 if (!flags.import && mntopts != NULL) {
7830 if (!flags.import && loadkeys) {
7877 if (ret != 0 || flags.dryrun || !flags.import) {
7885 * pool and import it.
7910 "different altroot\n"), "zpool import");
10576 "another system could import the pool undetected.\n"));
10618 "\tThen import it to correct the mismatch.\n"));
11526 "Pool 'log' must be renamed using export and import"