summaryrefslogtreecommitdiffstats
path: root/config/kernel-commit-metadata.m4
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2017-12-18 10:28:27 -0800
committerTony Hutter <[email protected]>2017-12-18 10:31:01 -0800
commit504bfc8b49bf27a6e8900808cc3b9650460383ee (patch)
treec15179f8492224f3b0287a4487822ed63e3d0ce7 /config/kernel-commit-metadata.m4
parent53a8cbd70eb2273274d26269638f0ea238943357 (diff)
Fix multihost stale cache file import
When the multihost property is enabled it should be impossible to import an active pool even using the force (-f) option. This patch prevents a forced import from succeeding when importing with a stale cache file. The root cause of the problem is that the kernel modules trusted the hostid provided in configuration. This is always correct when the configuration is generated by scanning for the pool. However, when using an existing cache file the hostid could be stale which would result in the activity check being skipped. Resolve the issue by always using the hostid read from the label configuration where the best uberblock was found. Reviewed-by: Olaf Faaland <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #6933 Closes #6971
Diffstat (limited to 'config/kernel-commit-metadata.m4')
0 files changed, 0 insertions, 0 deletions