]> git.proxmox.com Git - mirror_zfs.git/commit - include/sys/spa_impl.h
Make spa_history_zone platform-dependent in kernel
authorRyan Moeller <ryan@iXsystems.com>
Mon, 2 Mar 2020 17:43:30 +0000 (12:43 -0500)
committerGitHub <noreply@github.com>
Mon, 2 Mar 2020 17:43:30 +0000 (09:43 -0800)
commit9bb907bc3fdcaa132ecb0f8326c8815f27824ce4
tree21d6bca86ddbe51700cc3d78939f63b5ed565bd6
parent1289fbb557e1f6d4de69a085280890619bc71127
Make spa_history_zone platform-dependent in kernel

This function should only return "linux" on Linux.

Move the kernel part of the function out of common code.
Fix the tests for FreeBSD.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10079
include/sys/spa_impl.h
module/os/linux/zfs/spa_misc_os.c
module/zfs/spa_history.c
tests/zfs-tests/tests/functional/history/history_common.kshlib