svn commit: r326994 - head/sys/fs/devfs
John Baldwin
jhb at FreeBSD.org
Tue Dec 19 19:53:35 UTC 2017
Author: jhb
Date: Tue Dec 19 19:53:34 2017
New Revision: 326994
URL: https://svnweb.freebsd.org/changeset/base/326994
Log:
Handle _PC_FILESIZEBITS and _PC_SYMLINK_MAX for devfs' VOP_PATHCONF().
MFC after: 1 month
Sponsored by: Chelsio Communications
Modified:
head/sys/fs/devfs/devfs_vnops.c
Modified: head/sys/fs/devfs/devfs_vnops.c
==============================================================================
--- head/sys/fs/devfs/devfs_vnops.c Tue Dec 19 19:51:36 2017 (r326993)
+++ head/sys/fs/devfs/devfs_vnops.c Tue Dec 19 19:53:34 2017 (r326994)
@@ -1181,11 +1181,17 @@ devfs_pathconf(struct vop_pathconf_args *ap)
{
switch (ap->a_name) {
+ case _PC_FILESIZEBITS:
+ *ap->a_retval = 64;
+ return (0);
case _PC_NAME_MAX:
*ap->a_retval = NAME_MAX;
return (0);
case _PC_LINK_MAX:
*ap->a_retval = LINK_MAX;
+ return (0);
+ case _PC_SYMLINK_MAX:
+ *ap->a_retval = MAXPATHLEN;
return (0);
case _PC_MAX_CANON:
if (ap->a_vp->v_vflag & VV_ISTTY) {
More information about the svn-src-all
mailing list