svn commit: r324228 - head/sys/fs/udf
John Baldwin
jhb at FreeBSD.org
Mon Oct 2 23:31:13 UTC 2017
Author: jhb
Date: Mon Oct 2 23:31:11 2017
New Revision: 324228
URL: https://svnweb.freebsd.org/changeset/base/324228
Log:
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
Modified:
head/sys/fs/udf/udf_vnops.c
Modified: head/sys/fs/udf/udf_vnops.c
==============================================================================
--- head/sys/fs/udf/udf_vnops.c Mon Oct 2 23:29:56 2017 (r324227)
+++ head/sys/fs/udf/udf_vnops.c Mon Oct 2 23:31:11 2017 (r324228)
@@ -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));
}
}
More information about the svn-src-head
mailing list