Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2017 21:35:53 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322030 - head/sys/fs/pseudofs
Message-ID:  <201708032135.v73LZr8I049613@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Thu Aug  3 21:35:53 2017
New Revision: 322030
URL: https://svnweb.freebsd.org/changeset/base/322030

Log:
  Bump the maximum file name length in pseudofs filesystems to 48.
  
  The previous limit of 24 was somewhat restrictive, and with this change
  ceil(log2(sizeof(struct pfs_node))) is the same as before in both the ILP32
  and LP64 models, so the malloc zone used for allocations of struct pfs_node
  is the same as before.
  
  Approved by:	des

Modified:
  head/sys/fs/pseudofs/pseudofs.h

Modified: head/sys/fs/pseudofs/pseudofs.h
==============================================================================
--- head/sys/fs/pseudofs/pseudofs.h	Thu Aug  3 21:30:12 2017	(r322029)
+++ head/sys/fs/pseudofs/pseudofs.h	Thu Aug  3 21:35:53 2017	(r322030)
@@ -50,7 +50,7 @@ struct vnode;
 /*
  * Limits and constants
  */
-#define PFS_NAMELEN		24
+#define PFS_NAMELEN		48
 #define PFS_FSNAMELEN		16	/* equal to MFSNAMELEN */
 #define PFS_DELEN		(offsetof(struct dirent, d_name) + PFS_NAMELEN)
 



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