]> 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)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 23 Jan 2021 23:47:06 +0000 (15:47 -0800)
commitc32c475363cfff4cb9ae2d38be4b1347a9cb856f
tree2191fb5a2d8d9c222e859ea3436e94a8a7cb7b65
parentdd487640b21ced81f6b329c924cf786912a5b955
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