HomeFreeBSD

FreeBSD: Fix up after spa_stats.c move

Description

FreeBSD: Fix up after spa_stats.c move

Moving spa_stats added the additional burden of supporting
KSTAT_TYPE_IO.

spa_state_addr will always return a valid value regardless of
the value of 'n'. On FreeBSD this will cause an infinite loop
as it relies on the raw ops addr routine to indicate that there
is no more data.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <freqlabs@FreeBSD.org>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #10860

Details

Provenance
mmacyAuthored on Sep 1 2020, 11:16 PM
GitHub <noreply@github.com>Committed on Sep 1 2020, 11:16 PM
Parents
rG7b4e27232dec: Add 'zfs rename -u' to rename without remounting
Branches
Unknown
Tags
Unknown