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 <[email protected]>
Signed-off-by: Rick Macklem <[email protected]>
Closes #17518
This commit is contained in:
rmacklem authored and GitHub committed 2025-07-08 22:11:22 -04:00
1 parent 523d9d6007
commit 4c2a7f85d5
1 file changed
+5
+5
View File
@@ -5428,6 +5428,11 @@ zfs_freebsd_pathconf(struct vop_pathconf_args *ap)
return (0);
}
return (EINVAL);
#ifdef _PC_HAS_HIDDENSYSTEM
case _PC_HAS_HIDDENSYSTEM:
*ap->a_retval = 1;
return (0);
#endif
default:
return (vop_stdpathconf(ap));
}