Ext4Pkg: Move EXT4_NAME_MAX definition to Ext4Disk.h

Constant EXT4_NAME_MAX is related to EXT4_DIR_ENTRY FS structure, so it
should be placed into Ext4Disk.h header

Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
This commit is contained in:
Savva Mitrofanov 2022-10-26 21:19:26 +06:00
parent 0c1c5a6ce1
commit fbb8595120
No known key found for this signature in database
GPG Key ID: 774924031750BF64
2 changed files with 3 additions and 2 deletions

View File

@ -397,12 +397,14 @@ typedef struct _Ext4Inode {
UINT32 i_projid;
} EXT4_INODE;
#define EXT4_NAME_MAX 255
typedef struct {
UINT32 inode;
UINT16 rec_len;
UINT8 name_len;
UINT8 file_type;
CHAR8 name[255];
CHAR8 name[EXT4_NAME_MAX];
} EXT4_DIR_ENTRY;
#define EXT4_MIN_DIR_ENTRY_LEN 8

View File

@ -32,7 +32,6 @@
#include "Ext4Disk.h"
#define SYMLOOP_MAX 8
#define EXT4_NAME_MAX 255
//
// We need to specify path length limit for security purposes, to prevent possible
// overflows and dead-loop conditions. Originally this limit is absent in FS design,