]> git.proxmox.com Git - mirror_zfs.git/commit
FreeBSD: minor_t needs to be signed so that -1 is recognized as such
authorMatthew Macy <mmacy@freebsd.org>
Thu, 7 Jan 2021 18:41:27 +0000 (10:41 -0800)
committerGitHub <noreply@github.com>
Thu, 7 Jan 2021 18:41:27 +0000 (10:41 -0800)
commitf11b09dec3d33ba11bc3bf7644bdde558d08ad76
treeaeb13c6ae397a538619c9a7b9f5bb775528b7f33
parent06346cc5b50bef7327f7c901b92cbadab7fd7265
FreeBSD: minor_t needs to be signed so that -1 is recognized as such

zfsdev_close sets zs_minor to -1 to avoid duplicate calls to
destroy. This doesn't mix well with the current u_int used.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #11437
include/os/freebsd/spl/sys/types.h