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:
Toomas Soome 2019-11-03 21:36:29 +00:00
parent 79a4bf8975
commit f331eb7d34
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354324

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;