mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Handle generic pathconf attributes in the .zfs ctldir
MFC instructions: change the value of _PC_LINK_MAX to INT_MAX Reported by: jhb MFC after: 19 days X-MFC-With: 329265 Sponsored by: Spectra Logic Corp
This commit is contained in:
parent
e90c2c3638
commit
dfbc272d5d
1 changed files with 6 additions and 2 deletions
|
|
@ -743,7 +743,7 @@ zfsctl_common_pathconf(ap)
|
|||
*/
|
||||
switch (ap->a_name) {
|
||||
case _PC_LINK_MAX:
|
||||
*ap->a_retval = INT_MAX;
|
||||
*ap->a_retval = MIN(LONG_MAX, ZFS_LINK_MAX);
|
||||
return (0);
|
||||
|
||||
case _PC_FILESIZEBITS:
|
||||
|
|
@ -766,8 +766,12 @@ zfsctl_common_pathconf(ap)
|
|||
*ap->a_retval = ACL_MAX_ENTRIES;
|
||||
return (0);
|
||||
|
||||
case _PC_NAME_MAX:
|
||||
*ap->a_retval = NAME_MAX;
|
||||
return (0);
|
||||
|
||||
default:
|
||||
return (EINVAL);
|
||||
return (vop_stdpathconf(ap));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue