mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-01-25 10:12:13 +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
523d9d6007
commit
4c2a7f85d5
@ -5428,6 +5428,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