mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
881d286b1d
commit
a95435cfed
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue