Skip to content

Commit 4c2a7f8

Browse files
authored
FreeBSD: Add support for _PC_HAS_HIDDENSYSTEM
In FreeBSD there is now a pathconf name _PC_HAS_HIDDENSYSTEM. This patch adds support for it to OpenZFS. Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Rick Macklem <rmacklem@uoguelph.ca> Closes openzfs#17518
1 parent 523d9d6 commit 4c2a7f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

module/os/freebsd/zfs/zfs_vnops_os.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5428,6 +5428,11 @@ zfs_freebsd_pathconf(struct vop_pathconf_args *ap)
54285428
return (0);
54295429
}
54305430
return (EINVAL);
5431+
#ifdef _PC_HAS_HIDDENSYSTEM
5432+
case _PC_HAS_HIDDENSYSTEM:
5433+
*ap->a_retval = 1;
5434+
return (0);
5435+
#endif
54315436
default:
54325437
return (vop_stdpathconf(ap));
54335438
}

0 commit comments

Comments
 (0)