diff options
author | pfg <pfg@FreeBSD.org> | 2013-06-18 15:49:30 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-06-18 15:49:30 +0000 |
commit | 9ac60dd2842975c1c8715febf9ab8bb217d1692f (patch) | |
tree | 9236b2162da879a7096226f92c5173f6f0374b5c /sys/fs/ext2fs | |
parent | 4066c6ff517a8b0f7d40d91408494cec304180a1 (diff) | |
download | FreeBSD-src-9ac60dd2842975c1c8715febf9ab8bb217d1692f.zip FreeBSD-src-9ac60dd2842975c1c8715febf9ab8bb217d1692f.tar.gz |
More ext2fs header cleanups:
- Set MAXMNTLEN nearer to where it is used.
- Move EXT2_LINK_MAX to ext2_dir.h .
MFC after: 3 days
Diffstat (limited to 'sys/fs/ext2fs')
-rw-r--r-- | sys/fs/ext2fs/ext2_dir.h | 6 | ||||
-rw-r--r-- | sys/fs/ext2fs/ext2fs.h | 18 |
2 files changed, 12 insertions, 12 deletions
diff --git a/sys/fs/ext2fs/ext2_dir.h b/sys/fs/ext2fs/ext2_dir.h index 2bad4cd..04bc985 100644 --- a/sys/fs/ext2fs/ext2_dir.h +++ b/sys/fs/ext2fs/ext2_dir.h @@ -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. diff --git a/sys/fs/ext2fs/ext2fs.h b/sys/fs/ext2fs/ext2fs.h index bdc894e..deb0040 100644 --- a/sys/fs/ext2fs/ext2fs.h +++ b/sys/fs/ext2fs/ext2fs.h @@ -40,18 +40,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. */ struct ext2fs { @@ -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 |