Go to the documentation of this file. 1 #ifndef _UAPI__CRAMFS_H
2 #define _UAPI__CRAMFS_H
4 #include <linux/types.h>
5 #include <linux/magic.h>
7 #define CRAMFS_SIGNATURE "Compressed ROMFS"
13 #define CRAMFS_MODE_WIDTH 16
14 #define CRAMFS_UID_WIDTH 16
15 #define CRAMFS_SIZE_WIDTH 24
16 #define CRAMFS_GID_WIDTH 8
17 #define CRAMFS_NAMELEN_WIDTH 6
18 #define CRAMFS_OFFSET_WIDTH 26
24 #define CRAMFS_MAXPATHLEN (((1 << CRAMFS_NAMELEN_WIDTH) - 1) << 2)
71 #define CRAMFS_FLAG_FSID_VERSION_2 0x00000001
72 #define CRAMFS_FLAG_SORTED_DIRS 0x00000002
73 #define CRAMFS_FLAG_HOLES 0x00000100
74 #define CRAMFS_FLAG_WRONG_SIGNATURE 0x00000200
75 #define CRAMFS_FLAG_SHIFTED_ROOT_OFFSET 0x00000400
82 #define CRAMFS_SUPPORTED_FLAGS ( 0x000000ff \
84 | CRAMFS_FLAG_WRONG_SIGNATURE \
85 | CRAMFS_FLAG_SHIFTED_ROOT_OFFSET )