]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
allow ZFS pool to have temporary name for duration of current import
authoravg <avg@FreeBSD.org>
Thu, 12 Apr 2018 10:37:26 +0000 (10:37 +0000)
committeravg <avg@FreeBSD.org>
Thu, 12 Apr 2018 10:37:26 +0000 (10:37 +0000)
commitf42a38887f9cf8de947b71e4419449cb76ccdf6f
tree288dbe561da6e7ed8c709d5b44a7276787e6c32e
parentd7858e4d4d5d592074ca5a95321038655f499834
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
cddl/contrib/opensolaris/cmd/zpool/zpool.8
cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c
sys/cddl/contrib/opensolaris/common/zfs/zpool_prop.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c
sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h