From 273730d5b5560d19430ab4bffb29ff8d6400999d Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Tue, 27 Jul 2021 08:38:06 +0900 Subject: [PATCH] macOS can also set va_type Reviewed-by: Ryan Moeller Reviewed-by: Tony Nguyen Reviewed-by: Brian Behlendorf Signed-off-by: Jorgen Lundman Closes #12357 --- module/zfs/zfs_replay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/zfs_replay.c b/module/zfs/zfs_replay.c index df96cfee7..9073888db 100644 --- a/module/zfs/zfs_replay.c +++ b/module/zfs/zfs_replay.c @@ -71,7 +71,7 @@ zfs_init_vattr(vattr_t *vap, uint64_t mask, uint64_t mode, bzero(vap, sizeof (*vap)); vap->va_mask = (uint_t)mask; vap->va_mode = mode; -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__APPLE__) vap->va_type = IFTOVT(mode); #endif vap->va_uid = (uid_t)(IS_EPHEMERAL(uid)) ? -1 : uid;