docs/162775: Document some undocumented zpool import options

Garrett Cooper yanegomi at gmail.com
Tue Nov 22 23:50:01 UTC 2011


>Number:         162775
>Category:       docs
>Synopsis:       Document some undocumented zpool import options
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 22 23:50:01 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        10-CURRENT
>Organization:
iXsystems, Inc.
>Environment:
FreeBSD streetfighter.ixsystems.com 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Mon Oct 24 12:46:00 PDT 2011     root at streetfighter.ixsystems.com:/usr/obj/usr/src/sys/STREETFIGHTER  amd64
>Description:
There are a few options that aren't documented in the import section of the zpool manpage (at least not in the one that we have with the additional updates, and potentially not in the OpenSolaris manpage either). They are [according to the out of date comment above cddl/contrib/opensolaris/cmd/zpool/zpool_do_import()]:

                case 'F':
                        do_rewind = B_TRUE;
                        break;

                case 'm':
                        flags |= ZFS_IMPORT_MISSING_LOG;
                        break;

                case 'N':
                        flags |= ZFS_IMPORT_ONLY;
                        break;

                case 'T':
                        errno = 0;
                        txg = strtoull(optarg, &endptr, 10);
                        if (errno != 0 || *endptr != '\0') {
                                (void) fprintf(stderr,
                                    gettext("invalid txg value\n"));
                                usage(B_FALSE);
                        }
                        rewind_policy = ZPOOL_DO_REWIND | ZPOOL_EXTREME_REWIND;
                        break;

                case 'V':
                        flags |= ZFS_IMPORT_VERBATIM;
                        break;

                case 'X':
                        xtreme_rewind = B_TRUE;
                        break;

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list