Print the ZFS ereport to the console if vfs.zfs.debug is set to help diagnose
problems with zfs-on-root since devd isnt running yet. Reviewed by: pjd
This commit is contained in:
parent
c980e8b548
commit
9528621759
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172624
@ -290,6 +290,7 @@ zfs_ereport_post(const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio,
|
||||
mutex_exit(&spa->spa_errlist_lock);
|
||||
|
||||
sbuf_finish(&sb);
|
||||
ZFS_LOG(1, "%s\n", sbuf_data(&sb));
|
||||
devctl_notify("ZFS", spa->spa_name, subclass, sbuf_data(&sb));
|
||||
if (sbuf_overflowed(&sb))
|
||||
printf("ZFS WARNING: sbuf overflowed\n");
|
||||
|
@ -290,6 +290,7 @@ zfs_ereport_post(const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio,
|
||||
mutex_exit(&spa->spa_errlist_lock);
|
||||
|
||||
sbuf_finish(&sb);
|
||||
ZFS_LOG(1, "%s\n", sbuf_data(&sb));
|
||||
devctl_notify("ZFS", spa->spa_name, subclass, sbuf_data(&sb));
|
||||
if (sbuf_overflowed(&sb))
|
||||
printf("ZFS WARNING: sbuf overflowed\n");
|
||||
|
Loading…
Reference in New Issue
Block a user