xref: /minix3/minix/fs/mfs/mfsdir.h (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc #ifndef _MFSDIR_H
2*433d6423SLionel Sambuc #define _MFSDIR_H
3*433d6423SLionel Sambuc 
4*433d6423SLionel Sambuc #include <sys/cdefs.h>
5*433d6423SLionel Sambuc #include <sys/types.h>
6*433d6423SLionel Sambuc 
7*433d6423SLionel Sambuc /* Maximum Minix MFS on-disk directory filename.
8*433d6423SLionel Sambuc  * MFS uses 'struct direct' to write and parse
9*433d6423SLionel Sambuc  * directory entries, so this can't be changed
10*433d6423SLionel Sambuc  * without breaking filesystems.
11*433d6423SLionel Sambuc  */
12*433d6423SLionel Sambuc 
13*433d6423SLionel Sambuc #define MFS_DIRSIZ	60
14*433d6423SLionel Sambuc 
15*433d6423SLionel Sambuc struct direct {
16*433d6423SLionel Sambuc   uint32_t mfs_d_ino;
17*433d6423SLionel Sambuc   char mfs_d_name[MFS_DIRSIZ];
18*433d6423SLionel Sambuc } __packed;
19*433d6423SLionel Sambuc 
20*433d6423SLionel Sambuc #endif /* _MFSDIR_H */
21