Flesh out pathconf() on UDF.
- Return 64 bits for _PC_FILESIZEBITS. - Handle _PC_SYMLINK_MAX. - Defer _PC_PATH_MAX to vop_stdpathconf(). Sponsored by: Chelsio Communications
This commit is contained in:
parent
0e229f343f
commit
61d53d8fce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324228
@ -383,20 +383,23 @@ udf_pathconf(struct vop_pathconf_args *a)
|
||||
{
|
||||
|
||||
switch (a->a_name) {
|
||||
case _PC_FILESIZEBITS:
|
||||
*a->a_retval = 64;
|
||||
return (0);
|
||||
case _PC_LINK_MAX:
|
||||
*a->a_retval = 65535;
|
||||
return (0);
|
||||
case _PC_NAME_MAX:
|
||||
*a->a_retval = NAME_MAX;
|
||||
return (0);
|
||||
case _PC_PATH_MAX:
|
||||
*a->a_retval = PATH_MAX;
|
||||
case _PC_SYMLINK_MAX:
|
||||
*a->a_retval = MAXPATHLEN;
|
||||
return (0);
|
||||
case _PC_NO_TRUNC:
|
||||
*a->a_retval = 1;
|
||||
return (0);
|
||||
default:
|
||||
return (EINVAL);
|
||||
return (vop_stdpathconf(a));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user