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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329384
@ -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 New Issue
Block a user