]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/spa_config.c
Implement -t option to zpool import for temporary pool names
authorRichard Yao <ryao@gentoo.org>
Mon, 1 Jul 2013 14:57:04 +0000 (10:57 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 20 Mar 2014 19:05:30 +0000 (12:05 -0700)
commit26b42f3f9d03f85cc7966dc2fe4dfe9216601b0e
treef0f0eab8b0d8b53c5fd8609451c6f6345a5bcd7d
parent8959b29e31975a281acc411e9f60203f09716e79
Implement -t option to zpool import for temporary pool names

Originally, users had to handle spa namespace collisions by either
exporting the already imported pool or by specifying a new name for the
pool with a conflicting name. In the case of root pools from virtual
guests, neither approach to collision resolution is reasonable. This is
addressed by extending the new name syntax with a -t option to specify
that the new name is temporary. When specified, this sets an internal
flag that is passed into the kernel to tell it that all label updates
should refer to the name used in the original label. Consequently, the
original pool name will be retained on export.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2189
cmd/zpool/zpool_main.c
include/sys/fs/zfs.h
man/man8/zpool.8
module/zfs/spa_config.c