diff --git a/cmd/zpool_influxdb/zpool_influxdb.c b/cmd/zpool_influxdb/zpool_influxdb.c index 8440d8b57..73a9bedb8 100644 --- a/cmd/zpool_influxdb/zpool_influxdb.c +++ b/cmd/zpool_influxdb/zpool_influxdb.c @@ -687,8 +687,10 @@ print_recursive_stats(stat_printer_f func, nvlist_t *nvroot, sizeof (vdev_name)); for (c = 0; c < children; c++) { - print_recursive_stats(func, child[c], pool_name, + err = print_recursive_stats(func, child[c], pool_name, vdev_name, descend); + if (err) + return (err); } } return (0); diff --git a/module/zfs/zfs_fm.c b/module/zfs/zfs_fm.c index a16c62675..06aa1214a 100644 --- a/module/zfs/zfs_fm.c +++ b/module/zfs/zfs_fm.c @@ -1461,7 +1461,7 @@ zfs_ereport_snapshot_post(const char *subclass, spa_t *spa, const char *name) nvlist_t *aux; aux = fm_nvlist_create(NULL); - nvlist_add_string(aux, FM_EREPORT_PAYLOAD_ZFS_SNAPSHOT_NAME, name); + fnvlist_add_string(aux, FM_EREPORT_PAYLOAD_ZFS_SNAPSHOT_NAME, name); zfs_post_common(spa, NULL, FM_RSRC_CLASS, subclass, aux); fm_nvlist_destroy(aux, FM_NVA_FREE);