From 60f510344596b1f2f890df2e96282d586edf6aaf Mon Sep 17 00:00:00 2001 From: Olaf Faaland Date: Fri, 14 Jul 2017 16:32:55 -0700 Subject: [PATCH] Skip activity check for zhack RO import "zhack feature stat" performs a read-only import, so the MMP activity check is not necessary. Reviewed-by: Giuseppe Di Natale Reviewed-by: Brian Behlendorf Signed-off-by: Olaf Faaland Closes #6388 Closes #6389 --- cmd/zhack/zhack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/zhack/zhack.c b/cmd/zhack/zhack.c index cc414dae15..70f88fc698 100644 --- a/cmd/zhack/zhack.c +++ b/cmd/zhack/zhack.c @@ -151,7 +151,8 @@ zhack_import(char *target, boolean_t readonly) } zfeature_checks_disable = B_TRUE; - error = spa_import(target, config, props, ZFS_IMPORT_NORMAL); + error = spa_import(target, config, props, + (readonly ? ZFS_IMPORT_SKIP_MMP : ZFS_IMPORT_NORMAL)); zfeature_checks_disable = B_FALSE; if (error == EEXIST) error = 0;