Lines Matching refs:lfs

3     lfs_t lfs;
4 lfs_format(&lfs, cfg) => 0;
5 lfs_mount(&lfs, cfg) => 0;
6 lfs_mkdir(&lfs, "hello") => 0;
8 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_WRONLY | LFS_O_CREAT) => 0;
9 lfs_file_write(&lfs, &file, "hello", strlen("hello")) => strlen("hello");
10 lfs_file_close(&lfs, &file);
11 lfs_unmount(&lfs) => 0;
13 lfs_mount(&lfs, cfg) => 0;
16 lfs_setattr(&lfs, "hello", 'A', "aaaa", 4) => 0;
17 lfs_setattr(&lfs, "hello", 'B', "bbbbbb", 6) => 0;
18 lfs_setattr(&lfs, "hello", 'C', "ccccc", 5) => 0;
19 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
20 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 6;
21 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
26 lfs_setattr(&lfs, "hello", 'B', "", 0) => 0;
27 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
28 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 0;
29 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
34 lfs_removeattr(&lfs, "hello", 'B') => 0;
35 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
36 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => LFS_ERR_NOATTR;
37 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
42 lfs_setattr(&lfs, "hello", 'B', "dddddd", 6) => 0;
43 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
44 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 6;
45 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
50 lfs_setattr(&lfs, "hello", 'B', "eee", 3) => 0;
51 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
52 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 3;
53 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
58 lfs_setattr(&lfs, "hello", 'A', buffer, LFS_ATTR_MAX+1) => LFS_ERR_NOSPC;
59 lfs_setattr(&lfs, "hello", 'B', "fffffffff", 9) => 0;
60 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
61 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 9;
62 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5;
64 lfs_unmount(&lfs) => 0;
66 lfs_mount(&lfs, cfg) => 0;
68 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4;
69 lfs_getattr(&lfs, "hello", 'B', buffer+4, 9) => 9;
70 lfs_getattr(&lfs, "hello", 'C', buffer+13, 5) => 5;
75 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_RDONLY) => 0;
76 lfs_file_read(&lfs, &file, buffer, sizeof(buffer)) => strlen("hello");
78 lfs_file_close(&lfs, &file);
79 lfs_unmount(&lfs) => 0;
84 lfs_t lfs;
85 lfs_format(&lfs, cfg) => 0;
86 lfs_mount(&lfs, cfg) => 0;
87 lfs_mkdir(&lfs, "hello") => 0;
89 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_WRONLY | LFS_O_CREAT) => 0;
90 lfs_file_write(&lfs, &file, "hello", strlen("hello")) => strlen("hello");
91 lfs_file_close(&lfs, &file);
92 lfs_unmount(&lfs) => 0;
94 lfs_mount(&lfs, cfg) => 0;
97 lfs_setattr(&lfs, "/", 'A', "aaaa", 4) => 0;
98 lfs_setattr(&lfs, "/", 'B', "bbbbbb", 6) => 0;
99 lfs_setattr(&lfs, "/", 'C', "ccccc", 5) => 0;
100 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
101 lfs_getattr(&lfs, "/", 'B', buffer+4, 6) => 6;
102 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
107 lfs_setattr(&lfs, "/", 'B', "", 0) => 0;
108 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
109 lfs_getattr(&lfs, "/", 'B', buffer+4, 6) => 0;
110 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
115 lfs_removeattr(&lfs, "/", 'B') => 0;
116 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
117 lfs_getattr(&lfs, "/", 'B', buffer+4, 6) => LFS_ERR_NOATTR;
118 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
123 lfs_setattr(&lfs, "/", 'B', "dddddd", 6) => 0;
124 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
125 lfs_getattr(&lfs, "/", 'B', buffer+4, 6) => 6;
126 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
131 lfs_setattr(&lfs, "/", 'B', "eee", 3) => 0;
132 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
133 lfs_getattr(&lfs, "/", 'B', buffer+4, 6) => 3;
134 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
139 lfs_setattr(&lfs, "/", 'A', buffer, LFS_ATTR_MAX+1) => LFS_ERR_NOSPC;
140 lfs_setattr(&lfs, "/", 'B', "fffffffff", 9) => 0;
141 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
142 lfs_getattr(&lfs, "/", 'B', buffer+4, 6) => 9;
143 lfs_getattr(&lfs, "/", 'C', buffer+10, 5) => 5;
144 lfs_unmount(&lfs) => 0;
146 lfs_mount(&lfs, cfg) => 0;
148 lfs_getattr(&lfs, "/", 'A', buffer, 4) => 4;
149 lfs_getattr(&lfs, "/", 'B', buffer+4, 9) => 9;
150 lfs_getattr(&lfs, "/", 'C', buffer+13, 5) => 5;
155 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_RDONLY) => 0;
156 lfs_file_read(&lfs, &file, buffer, sizeof(buffer)) => strlen("hello");
158 lfs_file_close(&lfs, &file);
159 lfs_unmount(&lfs) => 0;
164 lfs_t lfs;
165 lfs_format(&lfs, cfg) => 0;
166 lfs_mount(&lfs, cfg) => 0;
167 lfs_mkdir(&lfs, "hello") => 0;
169 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_WRONLY | LFS_O_CREAT) => 0;
170 lfs_file_write(&lfs, &file, "hello", strlen("hello")) => strlen("hello");
171 lfs_file_close(&lfs, &file);
172 lfs_unmount(&lfs) => 0;
174 lfs_mount(&lfs, cfg) => 0;
184 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_WRONLY, &cfg1) => 0;
188 lfs_file_close(&lfs, &file) => 0;
190 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDONLY, &cfg1) => 0;
191 lfs_file_close(&lfs, &file) => 0;
197 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_WRONLY, &cfg1) => 0;
198 lfs_file_close(&lfs, &file) => 0;
201 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDONLY, &cfg1) => 0;
202 lfs_file_close(&lfs, &file) => 0;
208 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_WRONLY, &cfg1) => 0;
210 lfs_file_close(&lfs, &file) => 0;
213 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDONLY, &cfg1) => 0;
214 lfs_file_close(&lfs, &file) => 0;
220 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_WRONLY, &cfg1) => 0;
222 lfs_file_close(&lfs, &file) => 0;
225 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDONLY, &cfg1) => 0;
226 lfs_file_close(&lfs, &file) => 0;
232 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_WRONLY, &cfg1)
241 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDWR, &cfg2) => 0;
243 lfs_file_close(&lfs, &file) => 0;
245 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDONLY, &cfg1) => 0;
246 lfs_file_close(&lfs, &file) => 0;
248 lfs_unmount(&lfs) => 0;
250 lfs_mount(&lfs, cfg) => 0;
259 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDONLY, &cfg3) => 0;
260 lfs_file_close(&lfs, &file) => 0;
265 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_RDONLY) => 0;
266 lfs_file_read(&lfs, &file, buffer, sizeof(buffer)) => strlen("hello");
268 lfs_file_close(&lfs, &file);
269 lfs_unmount(&lfs) => 0;
274 lfs_t lfs;
275 lfs_format(&lfs, cfg) => 0;
276 lfs_mount(&lfs, cfg) => 0;
277 lfs_mkdir(&lfs, "hello") => 0;
279 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_WRONLY | LFS_O_CREAT) => 0;
280 lfs_file_write(&lfs, &file, "hello", strlen("hello")) => strlen("hello");
281 lfs_file_close(&lfs, &file);
282 lfs_unmount(&lfs) => 0;
284 lfs_mount(&lfs, cfg) => 0;
285 lfs_setattr(&lfs, "hello/hello", 'B', "fffffffff", 9) => 0;
286 lfs_setattr(&lfs, "hello/hello", 'C', "ccccc", 5) => 0;
297 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_WRONLY, &cfg1) => 0;
299 lfs_getattr(&lfs, "hello/hello", 'B', buffer, 9) => 9;
300 lfs_getattr(&lfs, "hello/hello", 'C', buffer+9, 9) => 5;
301 lfs_getattr(&lfs, "hello/hello", 'D', buffer+18, 9) => LFS_ERR_NOATTR;
306 lfs_file_sync(&lfs, &file) => 0;
307 lfs_getattr(&lfs, "hello/hello", 'B', buffer, 9) => 4;
308 lfs_getattr(&lfs, "hello/hello", 'C', buffer+9, 9) => 0;
309 lfs_getattr(&lfs, "hello/hello", 'D', buffer+18, 9) => 4;
314 lfs_file_close(&lfs, &file) => 0;
315 lfs_unmount(&lfs) => 0;