Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2017 20:07:57 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326996 - head/sys/fs/devfs
Message-ID:  <201712192007.vBJK7vne093123@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Dec 19 20:07:57 2017
New Revision: 326996
URL: https://svnweb.freebsd.org/changeset/base/326996

Log:
  Report INT_MAX for LINK_MAX for devfs' VOP_PATHCONF().
  
  devfs uses int's for link counts internally and already reports the the
  full link count via stat() post ino64.
  
  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:57:55 2017	(r326995)
+++ head/sys/fs/devfs/devfs_vnops.c	Tue Dec 19 20:07:57 2017	(r326996)
@@ -1188,7 +1188,7 @@ devfs_pathconf(struct vop_pathconf_args *ap)
 		*ap->a_retval = NAME_MAX;
 		return (0);
 	case _PC_LINK_MAX:
-		*ap->a_retval = LINK_MAX;
+		*ap->a_retval = INT_MAX;
 		return (0);
 	case _PC_SYMLINK_MAX:
 		*ap->a_retval = MAXPATHLEN;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712192007.vBJK7vne093123>