More ext2fs header cleanups:

- Set MAXMNTLEN nearer to where it is used.
- Move EXT2_LINK_MAX to ext2_dir.h .

MFC after:	3 days
This commit is contained in:
Pedro F. Giffuni 2013-06-18 15:49:30 +00:00
parent fc86e75ca5
commit 9e43acf6c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251952
2 changed files with 12 additions and 12 deletions

View File

@ -53,6 +53,12 @@ struct ext2fs_direct_2 {
uint8_t e2d_type; /* file type */
char e2d_name[EXT2FS_MAXNAMLEN];/* name with length<=EXT2FS_MAXNAMLEN */
};
/*
* Maximal count of links to a file
*/
#define EXT2_LINK_MAX 32000
/*
* Ext2 directory file types. Only the low 3 bits are used. The
* other bits are reserved for now.

View File

@ -39,18 +39,6 @@
#include <sys/types.h>
/*
* Maximal count of links to a file
*/
#define EXT2_LINK_MAX 32000
/*
* The path name on which the file system is mounted is maintained
* in fs_fsmnt. MAXMNTLEN defines the amount of space allocated in
* the super block for this name.
*/
#define MAXMNTLEN 512
/*
* Super block for an ext2fs file system.
*/
@ -121,6 +109,12 @@ struct ext2fs {
uint32_t reserved2[162]; /* Padding to the end of the block */
};
/*
* The path name on which the file system is mounted is maintained
* in fs_fsmnt. MAXMNTLEN defines the amount of space allocated in
* the super block for this name.
*/
#define MAXMNTLEN 512
/*
* In-Memory Superblock