1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31#define SECTOR_SIZE 0x200
32#define SECTOR_BITS 9
33
34
35typedef enum
36{
37 ERR_NONE = 0,
38 ERR_BAD_FILENAME,
39 ERR_BAD_FILETYPE,
40 ERR_BAD_GZIP_DATA,
41 ERR_BAD_GZIP_HEADER,
42 ERR_BAD_PART_TABLE,
43 ERR_BAD_VERSION,
44 ERR_BELOW_1MB,
45 ERR_BOOT_COMMAND,
46 ERR_BOOT_FAILURE,
47 ERR_BOOT_FEATURES,
48 ERR_DEV_FORMAT,
49 ERR_DEV_VALUES,
50 ERR_EXEC_FORMAT,
51 ERR_FILELENGTH,
52 ERR_FILE_NOT_FOUND,
53 ERR_FSYS_CORRUPT,
54 ERR_FSYS_MOUNT,
55 ERR_GEOM,
56 ERR_NEED_LX_KERNEL,
57 ERR_NEED_MB_KERNEL,
58 ERR_NO_DISK,
59 ERR_NO_PART,
60 ERR_NUMBER_PARSING,
61 ERR_OUTSIDE_PART,
62 ERR_READ,
63 ERR_SYMLINK_LOOP,
64 ERR_UNRECOGNIZED,
65 ERR_WONT_FIT,
66 ERR_WRITE,
67 ERR_BAD_ARGUMENT,
68 ERR_UNALIGNED,
69 ERR_PRIVILEGED,
70 ERR_DEV_NEED_INIT,
71 ERR_NO_DISK_SPACE,
72 ERR_NUMBER_OVERFLOW,
73
74 MAX_ERR_NUM
75} reiserfs_error_t;
76
77
78extern int reiserfs_set_blk_dev(block_dev_desc_t *rbdd, int part);
79extern int reiserfs_ls (char *dirname);
80extern int reiserfs_open (char *filename);
81extern int reiserfs_read (char *buf, unsigned len);
82extern int reiserfs_mount (unsigned part_length);
83