freebsd-skq/sys/cddl/contrib/opensolaris/common
Andriy Gapon 81f187e576 allow ZFS pool to have temporary name for duration of current import
The change adds -t <name> option to zpool create and -t option to zpool
import in its form with an old name and a new name.  This allows to
import (or create) a pool under a name that's different from its real,
permanent name without affecting that name.  This is useful when working
with VM images or images of other physical systems if they happen to
have a ZFS pool with the same name as the host system.

The changes come from ZoL with some small tweaks.
The porting has been done by julian.

The change is being submitted to OpenZFS:
https://github.com/openzfs/openzfs/pull/600

Submitted by:	julian
Reviewed by:	smh
MFC after:	2 weeks
Sponsored by:	Panzura (porting)
Differential Revision: https://reviews.freebsd.org/D14972
2018-04-12 10:37:26 +00:00
..
acl Revert r299454 and r299448. 2016-06-30 14:55:49 +00:00
atomic Fix the open solaris atomic functions on arm64. Without this we may use the 2015-11-05 16:55:27 +00:00
avl MFV r287684: 6091 avl_add doesn't assert on non-debug builds 2015-09-12 08:50:43 +00:00
nvpair MFC r316910: 7812 Remove gender specific language 2018-02-20 05:07:21 +00:00
unicode
util
zfs allow ZFS pool to have temporary name for duration of current import 2018-04-12 10:37:26 +00:00