svn commit: r320329 - head/sys/fs/pseudofs

Dmitry Chagin dchagin at FreeBSD.org
Sun Jun 25 15:21:53 UTC 2017


Author: dchagin
Date: Sun Jun 25 15:21:51 2017
New Revision: 320329
URL: https://svnweb.freebsd.org/changeset/base/320329

Log:
  PFS_DELEN is the sum of the permanent part of the struct dirent and
  fixed size for the name buffer PFS_NAMELEN.
  As r318736 was commited (ino64 project) the size of the permanent part
  of the struct dirent was changed, so calulate PFS_DELEN properly.

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

Modified: head/sys/fs/pseudofs/pseudofs.h
==============================================================================
--- head/sys/fs/pseudofs/pseudofs.h	Sun Jun 25 13:22:49 2017	(r320328)
+++ head/sys/fs/pseudofs/pseudofs.h	Sun Jun 25 15:21:51 2017	(r320329)
@@ -52,7 +52,7 @@ struct vnode;
  */
 #define PFS_NAMELEN		24
 #define PFS_FSNAMELEN		16	/* equal to MFSNAMELEN */
-#define PFS_DELEN		(8 + PFS_NAMELEN)
+#define PFS_DELEN		(offsetof(struct dirent, d_name) + PFS_NAMELEN)
 
 typedef enum {
 	pfstype_none = 0,


More information about the svn-src-head mailing list