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:
Andrew Thompson 2007-10-14 07:58:50 +00:00
parent c980e8b548
commit 9528621759
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172624
2 changed files with 2 additions and 0 deletions

View File

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

View File

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