mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
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 #17518
This commit is contained in:
parent
523d9d6007
commit
4c2a7f85d5
1 changed files with 5 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue