minix/servers/mfs/mfsdir.h
Lionel Sambuc 431911c1ff Use fixed size type for on-disk representation
Use fixed size for directory entries records, instead of semantic type
in the struct which is used to access on-disk records.

Change-Id: If8816d367eaa7070ccb17202ffc9047b5aee5d3e
2014-07-28 17:05:24 +02:00

21 lines
394 B
C

#ifndef _MFSDIR_H
#define _MFSDIR_H
#include <sys/cdefs.h>
#include <sys/types.h>
/* Maximum Minix MFS on-disk directory filename.
* MFS uses 'struct direct' to write and parse
* directory entries, so this can't be changed
* without breaking filesystems.
*/
#define MFS_DIRSIZ 60
struct direct {
uint32_t mfs_d_ino;
char mfs_d_name[MFS_DIRSIZ];
} __packed;
#endif /* _MFSDIR_H */