mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-09-15 13:50:11 +03: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
bce049389d
commit
725886d67a
@ -5242,6 +5242,11 @@ zfs_freebsd_pathconf(struct vop_pathconf_args *ap)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
#ifdef _PC_HAS_HIDDENSYSTEM
|
||||||
|
case _PC_HAS_HIDDENSYSTEM:
|
||||||
|
*ap->a_retval = 1;
|
||||||
|
return (0);
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return (vop_stdpathconf(ap));
|
return (vop_stdpathconf(ap));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user