diff options
author | Richard Yao <[email protected]> | 2013-07-01 10:57:04 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-03-20 12:05:30 -0700 |
commit | 26b42f3f9d03f85cc7966dc2fe4dfe9216601b0e (patch) | |
tree | f0f0eab8b0d8b53c5fd8609451c6f6345a5bcd7d /include/sys/fs/zfs.h | |
parent | 8959b29e31975a281acc411e9f60203f09716e79 (diff) |
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #2189
Diffstat (limited to 'include/sys/fs/zfs.h')
-rw-r--r-- | include/sys/fs/zfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/fs/zfs.h b/include/sys/fs/zfs.h index df5692d14..882e9e84a 100644 --- a/include/sys/fs/zfs.h +++ b/include/sys/fs/zfs.h @@ -936,6 +936,7 @@ typedef enum { #define ZFS_IMPORT_ANY_HOST 0x2 #define ZFS_IMPORT_MISSING_LOG 0x4 #define ZFS_IMPORT_ONLY 0x8 +#define ZFS_IMPORT_TEMP_NAME 0x10 /* * Sysevent payload members. ZFS will generate the following sysevents with the |