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.
This commit is contained in:
tsoome 2019-11-03 21:36:29 +00:00
parent 10427e0250
commit b13b509b6a

View File

@ -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;