remove extra mkfs.1
[minix.git] / include / minix / dirent.h
blob06cbdc00dd4ae0c64a27a4176713b582740fb821
1 /* dirent.h - Declarations for directory reading routines.
2 * Author: Kees J. Bot
3 * 24 Apr 1989
5 * Note: The V7 format directory entries used under Minix must be transformed
6 * into a struct dirent with a d_name of at least 15 characters. Given that
7 * we have to transform V7 entries anyhow it is little trouble to let the
8 * routines understand the so-called "flex" directory format too.
9 */
11 #ifndef _DIRENT_H
12 #define _DIRENT_H
14 #include <sys/cdefs.h>
16 /* Name of length len needs _EXTENT(len) extra slots. */
17 #define _EXTENT(len) (((len) + 5) >> 3)
19 /* The block size must be at least 1024 bytes, because otherwise
20 * the superblock (at 1024 bytes) overlaps with other filesystem data.
22 #define _MIN_BLOCK_SIZE 1024
24 /* The below is allocated in some parts of the system as the largest
25 * a filesystem block can be. For instance, the boot monitor allocates
26 * 3 of these blocks and has to fit within 64kB, so this can't be
27 * increased without taking that into account.
29 #define _MAX_BLOCK_SIZE 4096
31 /* This is the block size for the fixed versions of the filesystem (V1/V2) */
32 #define _STATIC_BLOCK_SIZE 1024
34 #endif /* _DIRENT_H */