From f331eb7d346b5e6b33b7e180fc876bfd853ba6ef Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sun, 3 Nov 2019 21:36:29 +0000 Subject: [PATCH] loader: allow booting from pool with log device Apparently people are using log with boot pool, so we can not just error out there. Still we will need to investigate how to handle log properly. --- stand/libsa/zfs/zfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stand/libsa/zfs/zfs.c b/stand/libsa/zfs/zfs.c index ff972675e3c..1e1066563dc 100644 --- a/stand/libsa/zfs/zfs.c +++ b/stand/libsa/zfs/zfs.c @@ -669,11 +669,14 @@ zfs_dev_open(struct open_file *f, ...) spa = spa_find_by_guid(dev->pool_guid); if (!spa) return (ENXIO); +#if 0 + /* Apparently too many are using slog with boot pool. */ if (spa->spa_with_log) { printf("Reading pool %s is not supported due to log device.\n", spa->spa_name); return (ENXIO); } +#endif mount = malloc(sizeof(*mount)); if (mount == NULL) rv = ENOMEM;