4 * Copyright (c) 1999 Al Smith
10 #define EFS_DIRBSIZE_BITS EFS_BLOCKSIZE_BITS
11 #define EFS_DIRBSIZE (1 << EFS_DIRBSIZE_BITS)
15 unsigned char namelen
;
19 #define EFS_DENTSIZE (sizeof(struct efs_dentry) - 3 + 1)
20 #define EFS_MAXNAMELEN ((1 << (sizeof(char) * 8)) - 1)
22 #define EFS_DIRBLK_HEADERSIZE 4
23 #define EFS_DIRBLK_MAGIC 0xbeef /* moo */
27 unsigned char firstused
;
30 unsigned char space
[EFS_DIRBSIZE
- EFS_DIRBLK_HEADERSIZE
];
34 ((EFS_DIRBSIZE - EFS_DIRBLK_HEADERSIZE) / \
35 (EFS_DENTSIZE + sizeof(char)))
37 #define EFS_SLOTAT(dir, slot) EFS_REALOFF((dir)->space[slot])
39 #define EFS_REALOFF(offset) ((offset << 1))
41 #endif /* __EFS_DIR_H__ */