diff options
author | thompsa <thompsa@FreeBSD.org> | 2007-10-14 07:58:50 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2007-10-14 07:58:50 +0000 |
commit | 0a03699452faa9ef903859431d9ea2cc27c6225f (patch) | |
tree | 2018ff4f054d7717931f1627bdf2a42a3f1e4cae /sys/cddl | |
parent | 493a307fe255d7cb27693bea482029f5d40180c5 (diff) | |
download | FreeBSD-src-0a03699452faa9ef903859431d9ea2cc27c6225f.zip FreeBSD-src-0a03699452faa9ef903859431d9ea2cc27c6225f.tar.gz |
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
Diffstat (limited to 'sys/cddl')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_fm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_fm.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_fm.c index 01c632e..5b2badf 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_fm.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_fm.c @@ -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"); |