Lines Matching full:lfs

3     lfs_format(&lfs, &cfg) => 0;
4 lfs_mount(&lfs, &cfg) => 0;
5 lfs_mkdir(&lfs, "a") => 0;
6 lfs_mkdir(&lfs, "b") => 0;
7 lfs_mkdir(&lfs, "c") => 0;
8 lfs_mkdir(&lfs, "d") => 0;
9 lfs_file_open(&lfs, &file, "a/hello", LFS_O_CREAT | LFS_O_WRONLY) => 0;
10 lfs_file_write(&lfs, &file, "hola\n", 5) => 5;
11 lfs_file_write(&lfs, &file, "bonjour\n", 8) => 8;
12 lfs_file_write(&lfs, &file, "ohayo\n", 6) => 6;
13 lfs_file_close(&lfs, &file) => 0;
14 lfs_unmount(&lfs) => 0;
16 lfs_mount(&lfs, &cfg) => 0;
17 lfs_rename(&lfs, "a/hello", "c/hello") => 0;
18 lfs_unmount(&lfs) => 0;
20 lfs_mount(&lfs, &cfg) => 0;
21 lfs_dir_open(&lfs, &dir, "a") => 0;
22 lfs_dir_read(&lfs, &dir, &info) => 1;
25 lfs_dir_read(&lfs, &dir, &info) => 1;
28 lfs_dir_read(&lfs, &dir, &info) => 0;
29 lfs_dir_close(&lfs, &dir) => 0;
30 lfs_dir_open(&lfs, &dir, "c") => 0;
31 lfs_dir_read(&lfs, &dir, &info) => 1;
34 lfs_dir_read(&lfs, &dir, &info) => 1;
37 lfs_dir_read(&lfs, &dir, &info) => 1;
41 lfs_dir_read(&lfs, &dir, &info) => 0;
42 lfs_dir_close(&lfs, &dir) => 0;
44 lfs_file_open(&lfs, &file, "a/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
45 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
46 lfs_file_open(&lfs, &file, "c/hello", LFS_O_RDONLY) => 0;
47 lfs_file_read(&lfs, &file, buffer, 5) => 5;
49 lfs_file_read(&lfs, &file, buffer, 8) => 8;
51 lfs_file_read(&lfs, &file, buffer, 6) => 6;
53 lfs_file_close(&lfs, &file) => 0;
54 lfs_file_open(&lfs, &file, "d/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
55 lfs_unmount(&lfs) => 0;
60 lfs_format(&lfs, &cfg) => 0;
61 lfs_mount(&lfs, &cfg) => 0;
62 lfs_mkdir(&lfs, "hi") => 0;
63 lfs_rename(&lfs, "hi", "hi") => 0;
64 lfs_mkdir(&lfs, "hi/hi") => 0;
65 lfs_rename(&lfs, "hi/hi", "hi/hi") => 0;
66 lfs_mkdir(&lfs, "hi/hi/hi") => 0;
67 lfs_rename(&lfs, "hi/hi/hi", "hi/hi/hi") => 0;
68 lfs_stat(&lfs, "hi/hi/hi", &info) => 0;
71 lfs_unmount(&lfs) => 0;
75 in = "lfs.c"
77 lfs_format(&lfs, &cfg) => 0;
78 lfs_mount(&lfs, &cfg) => 0;
79 lfs_mkdir(&lfs, "a") => 0;
80 lfs_mkdir(&lfs, "b") => 0;
81 lfs_mkdir(&lfs, "c") => 0;
82 lfs_mkdir(&lfs, "d") => 0;
83 lfs_file_open(&lfs, &file, "a/hello", LFS_O_CREAT | LFS_O_WRONLY) => 0;
84 lfs_file_write(&lfs, &file, "hola\n", 5) => 5;
85 lfs_file_write(&lfs, &file, "bonjour\n", 8) => 8;
86 lfs_file_write(&lfs, &file, "ohayo\n", 6) => 6;
87 lfs_file_close(&lfs, &file) => 0;
88 lfs_unmount(&lfs) => 0;
90 lfs_mount(&lfs, &cfg) => 0;
91 lfs_rename(&lfs, "a/hello", "c/hello") => 0;
92 lfs_unmount(&lfs) => 0;
95 lfs_mount(&lfs, &cfg) => 0;
96 lfs_dir_open(&lfs, &dir, "a") => 0;
98 lfs_dir_close(&lfs, &dir) => 0;
99 lfs_unmount(&lfs) => 0;
111 lfs_mount(&lfs, &cfg) => 0;
112 lfs_dir_open(&lfs, &dir, "a") => 0;
113 lfs_dir_read(&lfs, &dir, &info) => 1;
116 lfs_dir_read(&lfs, &dir, &info) => 1;
119 lfs_dir_read(&lfs, &dir, &info) => 0;
120 lfs_dir_close(&lfs, &dir) => 0;
121 lfs_dir_open(&lfs, &dir, "c") => 0;
122 lfs_dir_read(&lfs, &dir, &info) => 1;
125 lfs_dir_read(&lfs, &dir, &info) => 1;
128 lfs_dir_read(&lfs, &dir, &info) => 1;
132 lfs_dir_read(&lfs, &dir, &info) => 0;
133 lfs_dir_close(&lfs, &dir) => 0;
135 lfs_file_open(&lfs, &file, "a/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
136 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
137 lfs_file_open(&lfs, &file, "c/hello", LFS_O_RDONLY) => 0;
138 lfs_file_read(&lfs, &file, buffer, 5) => 5;
140 lfs_file_read(&lfs, &file, buffer, 8) => 8;
142 lfs_file_read(&lfs, &file, buffer, 6) => 6;
144 lfs_file_close(&lfs, &file) => 0;
145 lfs_file_open(&lfs, &file, "d/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
146 lfs_unmount(&lfs) => 0;
150 in = "lfs.c"
153 lfs_format(&lfs, &cfg) => 0;
154 lfs_mount(&lfs, &cfg) => 0;
155 lfs_mkdir(&lfs, "a") => 0;
156 lfs_mkdir(&lfs, "b") => 0;
157 lfs_mkdir(&lfs, "c") => 0;
158 lfs_mkdir(&lfs, "d") => 0;
159 lfs_file_open(&lfs, &file, "a/hello", LFS_O_CREAT | LFS_O_WRONLY) => 0;
160 lfs_file_write(&lfs, &file, "hola\n", 5) => 5;
161 lfs_file_write(&lfs, &file, "bonjour\n", 8) => 8;
162 lfs_file_write(&lfs, &file, "ohayo\n", 6) => 6;
163 lfs_file_close(&lfs, &file) => 0;
164 lfs_unmount(&lfs) => 0;
166 lfs_mount(&lfs, &cfg) => 0;
167 lfs_rename(&lfs, "a/hello", "c/hello") => 0;
168 lfs_unmount(&lfs) => 0;
171 lfs_mount(&lfs, &cfg) => 0;
172 lfs_dir_open(&lfs, &dir, "a") => 0;
174 lfs_dir_close(&lfs, &dir) => 0;
175 lfs_unmount(&lfs) => 0;
188 lfs_mount(&lfs, &cfg) => 0;
189 lfs_dir_open(&lfs, &dir, "c") => 0;
191 lfs_dir_close(&lfs, &dir) => 0;
192 lfs_unmount(&lfs) => 0;
203 lfs_mount(&lfs, &cfg) => 0;
204 lfs_dir_open(&lfs, &dir, "a") => 0;
205 lfs_dir_read(&lfs, &dir, &info) => 1;
208 lfs_dir_read(&lfs, &dir, &info) => 1;
211 lfs_dir_read(&lfs, &dir, &info) => 1;
215 lfs_dir_read(&lfs, &dir, &info) => 0;
216 lfs_dir_close(&lfs, &dir) => 0;
217 lfs_dir_open(&lfs, &dir, "c") => 0;
218 lfs_dir_read(&lfs, &dir, &info) => 1;
221 lfs_dir_read(&lfs, &dir, &info) => 1;
224 lfs_dir_read(&lfs, &dir, &info) => 0;
225 lfs_dir_close(&lfs, &dir) => 0;
227 lfs_file_open(&lfs, &file, "a/hello", LFS_O_RDONLY) => 0;
228 lfs_file_read(&lfs, &file, buffer, 5) => 5;
230 lfs_file_read(&lfs, &file, buffer, 8) => 8;
232 lfs_file_read(&lfs, &file, buffer, 6) => 6;
234 lfs_file_close(&lfs, &file) => 0;
235 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
236 lfs_file_open(&lfs, &file, "c/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
237 lfs_file_open(&lfs, &file, "d/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
238 lfs_unmount(&lfs) => 0;
242 in = "lfs.c"
245 lfs_format(&lfs, &cfg) => 0;
246 lfs_mount(&lfs, &cfg) => 0;
247 lfs_mkdir(&lfs, "a") => 0;
248 lfs_mkdir(&lfs, "b") => 0;
249 lfs_mkdir(&lfs, "c") => 0;
250 lfs_mkdir(&lfs, "d") => 0;
251 lfs_file_open(&lfs, &file, "a/hello", LFS_O_CREAT | LFS_O_WRONLY) => 0;
252 lfs_file_write(&lfs, &file, "hola\n", 5) => 5;
253 lfs_file_write(&lfs, &file, "bonjour\n", 8) => 8;
254 lfs_file_write(&lfs, &file, "ohayo\n", 6) => 6;
255 lfs_file_close(&lfs, &file) => 0;
256 lfs_unmount(&lfs) => 0;
258 lfs_mount(&lfs, &cfg) => 0;
259 lfs_rename(&lfs, "a/hello", "c/hello") => 0;
260 lfs_unmount(&lfs) => 0;
263 lfs_mount(&lfs, &cfg) => 0;
264 lfs_dir_open(&lfs, &dir, "a") => 0;
266 lfs_dir_close(&lfs, &dir) => 0;
267 lfs_unmount(&lfs) => 0;
280 lfs_mount(&lfs, &cfg) => 0;
281 lfs_dir_open(&lfs, &dir, "c") => 0;
283 lfs_dir_close(&lfs, &dir) => 0;
284 lfs_unmount(&lfs) => 0;
296 lfs_mount(&lfs, &cfg) => 0;
297 lfs_rename(&lfs, "a/hello", "c/hello") => 0;
298 lfs_unmount(&lfs) => 0;
300 lfs_mount(&lfs, &cfg) => 0;
301 lfs_dir_open(&lfs, &dir, "a") => 0;
302 lfs_dir_read(&lfs, &dir, &info) => 1;
305 lfs_dir_read(&lfs, &dir, &info) => 1;
308 lfs_dir_read(&lfs, &dir, &info) => 0;
309 lfs_dir_close(&lfs, &dir) => 0;
310 lfs_dir_open(&lfs, &dir, "c") => 0;
311 lfs_dir_read(&lfs, &dir, &info) => 1;
314 lfs_dir_read(&lfs, &dir, &info) => 1;
317 lfs_dir_read(&lfs, &dir, &info) => 1;
321 lfs_dir_read(&lfs, &dir, &info) => 0;
322 lfs_dir_close(&lfs, &dir) => 0;
324 lfs_file_open(&lfs, &file, "a/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
325 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
326 lfs_file_open(&lfs, &file, "c/hello", LFS_O_RDONLY) => 0;
327 lfs_file_read(&lfs, &file, buffer, 5) => 5;
329 lfs_file_read(&lfs, &file, buffer, 8) => 8;
331 lfs_file_read(&lfs, &file, buffer, 6) => 6;
333 lfs_file_close(&lfs, &file) => 0;
334 lfs_file_open(&lfs, &file, "d/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
335 lfs_unmount(&lfs) => 0;
341 err = lfs_mount(&lfs, &cfg);
343 lfs_format(&lfs, &cfg) => 0;
344 lfs_mount(&lfs, &cfg) => 0;
346 err = lfs_mkdir(&lfs, "a");
348 err = lfs_mkdir(&lfs, "b");
350 err = lfs_mkdir(&lfs, "c");
352 err = lfs_mkdir(&lfs, "d");
354 lfs_unmount(&lfs) => 0;
357 lfs_mount(&lfs, &cfg) => 0;
360 if (lfs_stat(&lfs, "a/hello", &info) == 0) {
366 if (lfs_stat(&lfs, "b/hello", &info) == 0) {
372 if (lfs_stat(&lfs, "c/hello", &info) == 0) {
378 if (lfs_stat(&lfs, "d/hello", &info) == 0) {
385 lfs_unmount(&lfs) => 0;
387 lfs_mount(&lfs, &cfg) => 0;
388 if (lfs_stat(&lfs, "a/hello", &info) == 0 && info.size > 0) {
389 lfs_rename(&lfs, "a/hello", "b/hello") => 0;
390 } else if (lfs_stat(&lfs, "b/hello", &info) == 0) {
391 lfs_rename(&lfs, "b/hello", "c/hello") => 0;
392 } else if (lfs_stat(&lfs, "c/hello", &info) == 0) {
393 lfs_rename(&lfs, "c/hello", "d/hello") => 0;
394 } else if (lfs_stat(&lfs, "d/hello", &info) == 0) {
396 lfs_unmount(&lfs) => 0;
400 lfs_file_open(&lfs, &file, "a/hello",
402 lfs_file_write(&lfs, &file, "hola\n", 5) => 5;
403 lfs_file_write(&lfs, &file, "bonjour\n", 8) => 8;
404 lfs_file_write(&lfs, &file, "ohayo\n", 6) => 6;
405 lfs_file_close(&lfs, &file) => 0;
407 lfs_unmount(&lfs) => 0;
410 lfs_mount(&lfs, &cfg) => 0;
411 lfs_dir_open(&lfs, &dir, "a") => 0;
412 lfs_dir_read(&lfs, &dir, &info) => 1;
415 lfs_dir_read(&lfs, &dir, &info) => 1;
418 lfs_dir_read(&lfs, &dir, &info) => 0;
419 lfs_dir_close(&lfs, &dir) => 0;
420 lfs_dir_open(&lfs, &dir, "d") => 0;
421 lfs_dir_read(&lfs, &dir, &info) => 1;
424 lfs_dir_read(&lfs, &dir, &info) => 1;
427 lfs_dir_read(&lfs, &dir, &info) => 1;
431 lfs_dir_read(&lfs, &dir, &info) => 0;
432 lfs_dir_close(&lfs, &dir) => 0;
434 lfs_file_open(&lfs, &file, "a/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
435 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
436 lfs_file_open(&lfs, &file, "c/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
437 lfs_file_open(&lfs, &file, "d/hello", LFS_O_RDONLY) => 0;
438 lfs_file_read(&lfs, &file, buffer, 5) => 5;
440 lfs_file_read(&lfs, &file, buffer, 8) => 8;
442 lfs_file_read(&lfs, &file, buffer, 6) => 6;
444 lfs_file_close(&lfs, &file) => 0;
445 lfs_unmount(&lfs) => 0;
450 lfs_format(&lfs, &cfg) => 0;
451 lfs_mount(&lfs, &cfg) => 0;
452 lfs_mkdir(&lfs, "a") => 0;
453 lfs_mkdir(&lfs, "b") => 0;
454 lfs_mkdir(&lfs, "c") => 0;
455 lfs_mkdir(&lfs, "d") => 0;
456 lfs_mkdir(&lfs, "a/hi") => 0;
457 lfs_mkdir(&lfs, "a/hi/hola") => 0;
458 lfs_mkdir(&lfs, "a/hi/bonjour") => 0;
459 lfs_mkdir(&lfs, "a/hi/ohayo") => 0;
460 lfs_unmount(&lfs) => 0;
462 lfs_mount(&lfs, &cfg) => 0;
463 lfs_rename(&lfs, "a/hi", "c/hi") => 0;
464 lfs_unmount(&lfs) => 0;
466 lfs_mount(&lfs, &cfg) => 0;
467 lfs_dir_open(&lfs, &dir, "a") => 0;
468 lfs_dir_read(&lfs, &dir, &info) => 1;
471 lfs_dir_read(&lfs, &dir, &info) => 1;
474 lfs_dir_read(&lfs, &dir, &info) => 0;
475 lfs_dir_close(&lfs, &dir) => 0;
476 lfs_dir_open(&lfs, &dir, "c") => 0;
477 lfs_dir_read(&lfs, &dir, &info) => 1;
480 lfs_dir_read(&lfs, &dir, &info) => 1;
483 lfs_dir_read(&lfs, &dir, &info) => 1;
486 lfs_dir_read(&lfs, &dir, &info) => 0;
487 lfs_dir_close(&lfs, &dir) => 0;
489 lfs_dir_open(&lfs, &dir, "a/hi") => LFS_ERR_NOENT;
490 lfs_dir_open(&lfs, &dir, "b/hi") => LFS_ERR_NOENT;
491 lfs_dir_open(&lfs, &dir, "c/hi") => 0;
492 lfs_dir_read(&lfs, &dir, &info) => 1;
495 lfs_dir_read(&lfs, &dir, &info) => 1;
498 lfs_dir_read(&lfs, &dir, &info) => 1;
501 lfs_dir_read(&lfs, &dir, &info) => 1;
504 lfs_dir_read(&lfs, &dir, &info) => 1;
507 lfs_dir_read(&lfs, &dir, &info) => 0;
508 lfs_dir_close(&lfs, &dir) => 0;
509 lfs_dir_open(&lfs, &dir, "d/hi") => LFS_ERR_NOENT;
510 lfs_unmount(&lfs) => 0;
514 in = "lfs.c"
516 lfs_format(&lfs, &cfg) => 0;
517 lfs_mount(&lfs, &cfg) => 0;
518 lfs_mkdir(&lfs, "a") => 0;
519 lfs_mkdir(&lfs, "b") => 0;
520 lfs_mkdir(&lfs, "c") => 0;
521 lfs_mkdir(&lfs, "d") => 0;
522 lfs_mkdir(&lfs, "a/hi") => 0;
523 lfs_mkdir(&lfs, "a/hi/hola") => 0;
524 lfs_mkdir(&lfs, "a/hi/bonjour") => 0;
525 lfs_mkdir(&lfs, "a/hi/ohayo") => 0;
526 lfs_unmount(&lfs) => 0;
528 lfs_mount(&lfs, &cfg) => 0;
529 lfs_rename(&lfs, "a/hi", "c/hi") => 0;
530 lfs_unmount(&lfs) => 0;
533 lfs_mount(&lfs, &cfg) => 0;
534 lfs_dir_open(&lfs, &dir, "a") => 0;
536 lfs_dir_close(&lfs, &dir) => 0;
537 lfs_unmount(&lfs) => 0;
549 lfs_mount(&lfs, &cfg) => 0;
550 lfs_dir_open(&lfs, &dir, "a") => 0;
551 lfs_dir_read(&lfs, &dir, &info) => 1;
554 lfs_dir_read(&lfs, &dir, &info) => 1;
557 lfs_dir_read(&lfs, &dir, &info) => 0;
558 lfs_dir_close(&lfs, &dir) => 0;
559 lfs_dir_open(&lfs, &dir, "c") => 0;
560 lfs_dir_read(&lfs, &dir, &info) => 1;
563 lfs_dir_read(&lfs, &dir, &info) => 1;
566 lfs_dir_read(&lfs, &dir, &info) => 1;
569 lfs_dir_read(&lfs, &dir, &info) => 0;
570 lfs_dir_close(&lfs, &dir) => 0;
572 lfs_dir_open(&lfs, &dir, "a/hi") => LFS_ERR_NOENT;
573 lfs_dir_open(&lfs, &dir, "b/hi") => LFS_ERR_NOENT;
574 lfs_dir_open(&lfs, &dir, "c/hi") => 0;
575 lfs_dir_read(&lfs, &dir, &info) => 1;
578 lfs_dir_read(&lfs, &dir, &info) => 1;
581 lfs_dir_read(&lfs, &dir, &info) => 1;
584 lfs_dir_read(&lfs, &dir, &info) => 1;
587 lfs_dir_read(&lfs, &dir, &info) => 1;
590 lfs_dir_read(&lfs, &dir, &info) => 0;
591 lfs_dir_close(&lfs, &dir) => 0;
592 lfs_dir_open(&lfs, &dir, "d/hi") => LFS_ERR_NOENT;
593 lfs_unmount(&lfs) => 0;
597 in = "lfs.c"
600 lfs_format(&lfs, &cfg) => 0;
601 lfs_mount(&lfs, &cfg) => 0;
602 lfs_mkdir(&lfs, "a") => 0;
603 lfs_mkdir(&lfs, "b") => 0;
604 lfs_mkdir(&lfs, "c") => 0;
605 lfs_mkdir(&lfs, "d") => 0;
606 lfs_mkdir(&lfs, "a/hi") => 0;
607 lfs_mkdir(&lfs, "a/hi/hola") => 0;
608 lfs_mkdir(&lfs, "a/hi/bonjour") => 0;
609 lfs_mkdir(&lfs, "a/hi/ohayo") => 0;
610 lfs_unmount(&lfs) => 0;
612 lfs_mount(&lfs, &cfg) => 0;
613 lfs_rename(&lfs, "a/hi", "c/hi") => 0;
614 lfs_unmount(&lfs) => 0;
617 lfs_mount(&lfs, &cfg) => 0;
618 lfs_dir_open(&lfs, &dir, "a") => 0;
620 lfs_dir_close(&lfs, &dir) => 0;
621 lfs_unmount(&lfs) => 0;
634 lfs_mount(&lfs, &cfg) => 0;
635 lfs_dir_open(&lfs, &dir, "c") => 0;
637 lfs_dir_close(&lfs, &dir) => 0;
638 lfs_unmount(&lfs) => 0;
649 lfs_mount(&lfs, &cfg) => 0;
650 lfs_dir_open(&lfs, &dir, "a") => 0;
651 lfs_dir_read(&lfs, &dir, &info) => 1;
654 lfs_dir_read(&lfs, &dir, &info) => 1;
657 lfs_dir_read(&lfs, &dir, &info) => 1;
660 lfs_dir_read(&lfs, &dir, &info) => 0;
661 lfs_dir_close(&lfs, &dir) => 0;
662 lfs_dir_open(&lfs, &dir, "c") => 0;
663 lfs_dir_read(&lfs, &dir, &info) => 1;
666 lfs_dir_read(&lfs, &dir, &info) => 1;
669 lfs_dir_read(&lfs, &dir, &info) => 0;
670 lfs_dir_close(&lfs, &dir) => 0;
672 lfs_dir_open(&lfs, &dir, "a/hi") => 0;
673 lfs_dir_read(&lfs, &dir, &info) => 1;
676 lfs_dir_read(&lfs, &dir, &info) => 1;
679 lfs_dir_read(&lfs, &dir, &info) => 1;
682 lfs_dir_read(&lfs, &dir, &info) => 1;
685 lfs_dir_read(&lfs, &dir, &info) => 1;
688 lfs_dir_read(&lfs, &dir, &info) => 0;
689 lfs_dir_close(&lfs, &dir) => 0;
690 lfs_dir_open(&lfs, &dir, "b/hi") => LFS_ERR_NOENT;
691 lfs_dir_open(&lfs, &dir, "c/hi") => LFS_ERR_NOENT;
692 lfs_dir_open(&lfs, &dir, "d/hi") => LFS_ERR_NOENT;
693 lfs_unmount(&lfs) => 0;
697 in = "lfs.c"
700 lfs_format(&lfs, &cfg) => 0;
701 lfs_mount(&lfs, &cfg) => 0;
702 lfs_mkdir(&lfs, "a") => 0;
703 lfs_mkdir(&lfs, "b") => 0;
704 lfs_mkdir(&lfs, "c") => 0;
705 lfs_mkdir(&lfs, "d") => 0;
706 lfs_mkdir(&lfs, "a/hi") => 0;
707 lfs_mkdir(&lfs, "a/hi/hola") => 0;
708 lfs_mkdir(&lfs, "a/hi/bonjour") => 0;
709 lfs_mkdir(&lfs, "a/hi/ohayo") => 0;
710 lfs_unmount(&lfs) => 0;
712 lfs_mount(&lfs, &cfg) => 0;
713 lfs_rename(&lfs, "a/hi", "c/hi") => 0;
714 lfs_unmount(&lfs) => 0;
717 lfs_mount(&lfs, &cfg) => 0;
718 lfs_dir_open(&lfs, &dir, "a") => 0;
720 lfs_dir_close(&lfs, &dir) => 0;
721 lfs_unmount(&lfs) => 0;
734 lfs_mount(&lfs, &cfg) => 0;
735 lfs_dir_open(&lfs, &dir, "c") => 0;
737 lfs_dir_close(&lfs, &dir) => 0;
738 lfs_unmount(&lfs) => 0;
750 lfs_mount(&lfs, &cfg) => 0;
751 lfs_rename(&lfs, "a/hi", "c/hi") => 0;
752 lfs_unmount(&lfs) => 0;
754 lfs_mount(&lfs, &cfg) => 0;
755 lfs_dir_open(&lfs, &dir, "a") => 0;
756 lfs_dir_read(&lfs, &dir, &info) => 1;
759 lfs_dir_read(&lfs, &dir, &info) => 1;
762 lfs_dir_read(&lfs, &dir, &info) => 0;
763 lfs_dir_close(&lfs, &dir) => 0;
764 lfs_dir_open(&lfs, &dir, "c") => 0;
765 lfs_dir_read(&lfs, &dir, &info) => 1;
768 lfs_dir_read(&lfs, &dir, &info) => 1;
771 lfs_dir_read(&lfs, &dir, &info) => 1;
774 lfs_dir_read(&lfs, &dir, &info) => 0;
775 lfs_dir_close(&lfs, &dir) => 0;
777 lfs_dir_open(&lfs, &dir, "a/hi") => LFS_ERR_NOENT;
778 lfs_dir_open(&lfs, &dir, "b/hi") => LFS_ERR_NOENT;
779 lfs_dir_open(&lfs, &dir, "c/hi") => 0;
780 lfs_dir_read(&lfs, &dir, &info) => 1;
783 lfs_dir_read(&lfs, &dir, &info) => 1;
786 lfs_dir_read(&lfs, &dir, &info) => 1;
789 lfs_dir_read(&lfs, &dir, &info) => 1;
792 lfs_dir_read(&lfs, &dir, &info) => 1;
795 lfs_dir_read(&lfs, &dir, &info) => 0;
796 lfs_dir_close(&lfs, &dir) => 0;
797 lfs_dir_open(&lfs, &dir, "d/hi") => LFS_ERR_NOENT;
798 lfs_unmount(&lfs) => 0;
804 err = lfs_mount(&lfs, &cfg);
806 lfs_format(&lfs, &cfg) => 0;
807 lfs_mount(&lfs, &cfg) => 0;
809 err = lfs_mkdir(&lfs, "a");
811 err = lfs_mkdir(&lfs, "b");
813 err = lfs_mkdir(&lfs, "c");
815 err = lfs_mkdir(&lfs, "d");
817 lfs_unmount(&lfs) => 0;
820 lfs_mount(&lfs, &cfg) => 0;
823 if (lfs_stat(&lfs, "a/hi", &info) == 0) {
828 if (lfs_stat(&lfs, "b/hi", &info) == 0) {
833 if (lfs_stat(&lfs, "c/hi", &info) == 0) {
838 if (lfs_stat(&lfs, "d/hi", &info) == 0) {
844 lfs_unmount(&lfs) => 0;
846 lfs_mount(&lfs, &cfg) => 0;
847 if (lfs_stat(&lfs, "a/hi", &info) == 0) {
848 lfs_rename(&lfs, "a/hi", "b/hi") => 0;
849 } else if (lfs_stat(&lfs, "b/hi", &info) == 0) {
850 lfs_rename(&lfs, "b/hi", "c/hi") => 0;
851 } else if (lfs_stat(&lfs, "c/hi", &info) == 0) {
852 lfs_rename(&lfs, "c/hi", "d/hi") => 0;
853 } else if (lfs_stat(&lfs, "d/hi", &info) == 0) {
854 lfs_unmount(&lfs) => 0;
858 err = lfs_mkdir(&lfs, "temp");
860 err = lfs_mkdir(&lfs, "temp/hola");
862 err = lfs_mkdir(&lfs, "temp/bonjour");
864 err = lfs_mkdir(&lfs, "temp/ohayo");
866 lfs_rename(&lfs, "temp", "a/hi") => 0;
868 lfs_unmount(&lfs) => 0;
871 lfs_mount(&lfs, &cfg) => 0;
872 lfs_dir_open(&lfs, &dir, "a") => 0;
873 lfs_dir_read(&lfs, &dir, &info) => 1;
876 lfs_dir_read(&lfs, &dir, &info) => 1;
879 lfs_dir_read(&lfs, &dir, &info) => 0;
880 lfs_dir_close(&lfs, &dir) => 0;
881 lfs_dir_open(&lfs, &dir, "d") => 0;
882 lfs_dir_read(&lfs, &dir, &info) => 1;
885 lfs_dir_read(&lfs, &dir, &info) => 1;
888 lfs_dir_read(&lfs, &dir, &info) => 1;
891 lfs_dir_read(&lfs, &dir, &info) => 0;
892 lfs_dir_close(&lfs, &dir) => 0;
894 lfs_dir_open(&lfs, &dir, "a/hi") => LFS_ERR_NOENT;
895 lfs_dir_open(&lfs, &dir, "b/hi") => LFS_ERR_NOENT;
896 lfs_dir_open(&lfs, &dir, "c/hi") => LFS_ERR_NOENT;
897 lfs_dir_open(&lfs, &dir, "d/hi") => 0;
898 lfs_dir_read(&lfs, &dir, &info) => 1;
901 lfs_dir_read(&lfs, &dir, &info) => 1;
904 lfs_dir_read(&lfs, &dir, &info) => 1;
907 lfs_dir_read(&lfs, &dir, &info) => 1;
910 lfs_dir_read(&lfs, &dir, &info) => 1;
913 lfs_dir_read(&lfs, &dir, &info) => 0;
914 lfs_dir_close(&lfs, &dir) => 0;
915 lfs_unmount(&lfs) => 0;
920 lfs_format(&lfs, &cfg) => 0;
921 lfs_mount(&lfs, &cfg) => 0;
922 lfs_mkdir(&lfs, "a") => 0;
923 lfs_mkdir(&lfs, "b") => 0;
924 lfs_mkdir(&lfs, "c") => 0;
925 lfs_mkdir(&lfs, "d") => 0;
926 lfs_file_open(&lfs, &file, "a/hello", LFS_O_CREAT | LFS_O_WRONLY) => 0;
927 lfs_file_write(&lfs, &file, "hola\n", 5) => 5;
928 lfs_file_write(&lfs, &file, "bonjour\n", 8) => 8;
929 lfs_file_write(&lfs, &file, "ohayo\n", 6) => 6;
930 lfs_file_close(&lfs, &file) => 0;
931 lfs_unmount(&lfs) => 0;
933 lfs_mount(&lfs, &cfg) => 0;
934 lfs_rename(&lfs, "a/hello", "b/hello") => 0;
935 lfs_unmount(&lfs) => 0;
936 lfs_mount(&lfs, &cfg) => 0;
937 lfs_rename(&lfs, "b/hello", "c/hello") => 0;
938 lfs_unmount(&lfs) => 0;
939 lfs_mount(&lfs, &cfg) => 0;
940 lfs_rename(&lfs, "c/hello", "d/hello") => 0;
941 lfs_unmount(&lfs) => 0;
943 lfs_mount(&lfs, &cfg) => 0;
944 lfs_file_open(&lfs, &file, "a/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
945 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
946 lfs_file_open(&lfs, &file, "c/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
947 lfs_file_open(&lfs, &file, "d/hello", LFS_O_RDONLY) => 0;
948 lfs_file_read(&lfs, &file, buffer, 5) => 5;
950 lfs_file_read(&lfs, &file, buffer, 8) => 8;
952 lfs_file_read(&lfs, &file, buffer, 6) => 6;
954 lfs_file_close(&lfs, &file) => 0;
955 lfs_unmount(&lfs) => 0;
957 lfs_mount(&lfs, &cfg) => 0;
958 lfs_remove(&lfs, "b") => 0;
959 lfs_remove(&lfs, "c") => 0;
960 lfs_unmount(&lfs) => 0;
962 lfs_mount(&lfs, &cfg) => 0;
963 lfs_stat(&lfs, "a", &info) => 0;
964 lfs_stat(&lfs, "b", &info) => LFS_ERR_NOENT;
965 lfs_stat(&lfs, "c", &info) => LFS_ERR_NOENT;
966 lfs_stat(&lfs, "d", &info) => 0;
967 lfs_file_open(&lfs, &file, "a/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
968 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
969 lfs_file_open(&lfs, &file, "c/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
970 lfs_file_open(&lfs, &file, "d/hello", LFS_O_RDONLY) => 0;
971 lfs_file_read(&lfs, &file, buffer, 5) => 5;
973 lfs_file_read(&lfs, &file, buffer, 8) => 8;
975 lfs_file_read(&lfs, &file, buffer, 6) => 6;
977 lfs_file_close(&lfs, &file) => 0;
978 lfs_unmount(&lfs) => 0;
984 lfs_format(&lfs, &cfg) => 0;
985 lfs_mount(&lfs, &cfg) => 0;
988 lfs_file_open(&lfs, &file, "/1.move_me",
990 lfs_file_close(&lfs, &file) => 0;
992 lfs_file_open(&lfs, &file, "/0.before",
994 lfs_file_write(&lfs, &file, "test.1", 7) => 7;
995 lfs_file_close(&lfs, &file) => 0;
997 lfs_file_open(&lfs, &file, "/2.in_between",
999 lfs_file_write(&lfs, &file, "test.2", 7) => 7;
1000 lfs_file_close(&lfs, &file) => 0;
1002 lfs_file_open(&lfs, &file, "/4.after",
1004 lfs_file_write(&lfs, &file, "test.3", 7) => 7;
1005 lfs_file_close(&lfs, &file) => 0;
1008 lfs_file_open(&lfs, &files[0], "0.before",
1010 lfs_file_open(&lfs, &files[1], "2.in_between",
1012 lfs_file_open(&lfs, &files[2], "4.after",
1014 lfs_file_write(&lfs, &files[0], "test.4", 7) => 7;
1015 lfs_file_write(&lfs, &files[1], "test.5", 7) => 7;
1016 lfs_file_write(&lfs, &files[2], "test.6", 7) => 7;
1020 lfs_rename(&lfs, "/1.move_me", "/3.move_me") => 0;
1022 lfs_file_close(&lfs, &files[0]) => 0;
1023 lfs_file_close(&lfs, &files[1]) => 0;
1024 lfs_file_close(&lfs, &files[2]) => 0;
1027 lfs_dir_open(&lfs, &dir, "/") => 0;
1028 lfs_dir_read(&lfs, &dir, &info) => 1;
1031 lfs_dir_read(&lfs, &dir, &info) => 1;
1034 lfs_dir_read(&lfs, &dir, &info) => 1;
1038 lfs_dir_read(&lfs, &dir, &info) => 1;
1042 lfs_dir_read(&lfs, &dir, &info) => 1;
1046 lfs_dir_read(&lfs, &dir, &info) => 1;
1050 lfs_dir_read(&lfs, &dir, &info) => 0;
1051 lfs_dir_close(&lfs, &dir) => 0;
1053 lfs_file_open(&lfs, &file, "/0.before", LFS_O_RDONLY) => 0;
1054 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1056 lfs_file_close(&lfs, &file) => 0;
1057 lfs_file_open(&lfs, &file, "/2.in_between", LFS_O_RDONLY) => 0;
1058 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1060 lfs_file_close(&lfs, &file) => 0;
1061 lfs_file_open(&lfs, &file, "/4.after", LFS_O_RDONLY) => 0;
1062 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1064 lfs_file_close(&lfs, &file) => 0;
1067 lfs_file_open(&lfs, &files[0], "0.before",
1069 lfs_file_open(&lfs, &files[1], "2.in_between",
1071 lfs_file_open(&lfs, &files[2], "4.after",
1073 lfs_file_write(&lfs, &files[0], "test.7", 7) => 7;
1074 lfs_file_write(&lfs, &files[1], "test.8", 7) => 7;
1075 lfs_file_write(&lfs, &files[2], "test.9", 7) => 7;
1079 lfs_rename(&lfs, "/3.move_me", "/1.move_me") => 0;
1081 lfs_file_close(&lfs, &files[0]) => 0;
1082 lfs_file_close(&lfs, &files[1]) => 0;
1083 lfs_file_close(&lfs, &files[2]) => 0;
1086 lfs_dir_open(&lfs, &dir, "/") => 0;
1087 lfs_dir_read(&lfs, &dir, &info) => 1;
1090 lfs_dir_read(&lfs, &dir, &info) => 1;
1093 lfs_dir_read(&lfs, &dir, &info) => 1;
1097 lfs_dir_read(&lfs, &dir, &info) => 1;
1101 lfs_dir_read(&lfs, &dir, &info) => 1;
1105 lfs_dir_read(&lfs, &dir, &info) => 1;
1109 lfs_dir_read(&lfs, &dir, &info) => 0;
1110 lfs_dir_close(&lfs, &dir) => 0;
1112 lfs_file_open(&lfs, &file, "/0.before", LFS_O_RDONLY) => 0;
1113 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1115 lfs_file_close(&lfs, &file) => 0;
1116 lfs_file_open(&lfs, &file, "/2.in_between", LFS_O_RDONLY) => 0;
1117 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1119 lfs_file_close(&lfs, &file) => 0;
1120 lfs_file_open(&lfs, &file, "/4.after", LFS_O_RDONLY) => 0;
1121 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1123 lfs_file_close(&lfs, &file) => 0;
1124 lfs_unmount(&lfs) => 0;
1130 lfs_format(&lfs, &cfg) => 0;
1131 lfs_mount(&lfs, &cfg) => 0;
1134 lfs_file_open(&lfs, &file, "/1.move_me",
1136 lfs_file_close(&lfs, &file) => 0;
1137 lfs_file_open(&lfs, &file, "/3.move_me",
1139 lfs_file_write(&lfs, &file, "remove me",
1141 lfs_file_close(&lfs, &file) => 0;
1143 lfs_file_open(&lfs, &file, "/0.before",
1145 lfs_file_write(&lfs, &file, "test.1", 7) => 7;
1146 lfs_file_close(&lfs, &file) => 0;
1148 lfs_file_open(&lfs, &file, "/2.in_between",
1150 lfs_file_write(&lfs, &file, "test.2", 7) => 7;
1151 lfs_file_close(&lfs, &file) => 0;
1153 lfs_file_open(&lfs, &file, "/4.after",
1155 lfs_file_write(&lfs, &file, "test.3", 7) => 7;
1156 lfs_file_close(&lfs, &file) => 0;
1159 lfs_file_open(&lfs, &files[0], "0.before",
1161 lfs_file_open(&lfs, &files[1], "2.in_between",
1163 lfs_file_open(&lfs, &files[2], "4.after",
1165 lfs_file_write(&lfs, &files[0], "test.4", 7) => 7;
1166 lfs_file_write(&lfs, &files[1], "test.5", 7) => 7;
1167 lfs_file_write(&lfs, &files[2], "test.6", 7) => 7;
1171 lfs_rename(&lfs, "/1.move_me", "/3.move_me") => 0;
1173 lfs_file_close(&lfs, &files[0]) => 0;
1174 lfs_file_close(&lfs, &files[1]) => 0;
1175 lfs_file_close(&lfs, &files[2]) => 0;
1178 lfs_dir_open(&lfs, &dir, "/") => 0;
1179 lfs_dir_read(&lfs, &dir, &info) => 1;
1182 lfs_dir_read(&lfs, &dir, &info) => 1;
1185 lfs_dir_read(&lfs, &dir, &info) => 1;
1189 lfs_dir_read(&lfs, &dir, &info) => 1;
1193 lfs_dir_read(&lfs, &dir, &info) => 1;
1197 lfs_dir_read(&lfs, &dir, &info) => 1;
1201 lfs_dir_read(&lfs, &dir, &info) => 0;
1202 lfs_dir_close(&lfs, &dir) => 0;
1204 lfs_file_open(&lfs, &file, "/0.before", LFS_O_RDONLY) => 0;
1205 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1207 lfs_file_close(&lfs, &file) => 0;
1208 lfs_file_open(&lfs, &file, "/2.in_between", LFS_O_RDONLY) => 0;
1209 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1211 lfs_file_close(&lfs, &file) => 0;
1212 lfs_file_open(&lfs, &file, "/4.after", LFS_O_RDONLY) => 0;
1213 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1215 lfs_file_close(&lfs, &file) => 0;
1218 lfs_file_open(&lfs, &file, "/1.move_me",
1220 lfs_file_write(&lfs, &file, "remove me",
1222 lfs_file_close(&lfs, &file) => 0;
1224 lfs_file_open(&lfs, &files[0], "0.before",
1226 lfs_file_open(&lfs, &files[1], "2.in_between",
1228 lfs_file_open(&lfs, &files[2], "4.after",
1230 lfs_file_write(&lfs, &files[0], "test.7", 7) => 7;
1231 lfs_file_write(&lfs, &files[1], "test.8", 7) => 7;
1232 lfs_file_write(&lfs, &files[2], "test.9", 7) => 7;
1236 lfs_rename(&lfs, "/3.move_me", "/1.move_me") => 0;
1238 lfs_file_close(&lfs, &files[0]) => 0;
1239 lfs_file_close(&lfs, &files[1]) => 0;
1240 lfs_file_close(&lfs, &files[2]) => 0;
1243 lfs_dir_open(&lfs, &dir, "/") => 0;
1244 lfs_dir_read(&lfs, &dir, &info) => 1;
1247 lfs_dir_read(&lfs, &dir, &info) => 1;
1250 lfs_dir_read(&lfs, &dir, &info) => 1;
1254 lfs_dir_read(&lfs, &dir, &info) => 1;
1258 lfs_dir_read(&lfs, &dir, &info) => 1;
1262 lfs_dir_read(&lfs, &dir, &info) => 1;
1266 lfs_dir_read(&lfs, &dir, &info) => 0;
1267 lfs_dir_close(&lfs, &dir) => 0;
1269 lfs_file_open(&lfs, &file, "/0.before", LFS_O_RDONLY) => 0;
1270 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1272 lfs_file_close(&lfs, &file) => 0;
1273 lfs_file_open(&lfs, &file, "/2.in_between", LFS_O_RDONLY) => 0;
1274 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1276 lfs_file_close(&lfs, &file) => 0;
1277 lfs_file_open(&lfs, &file, "/4.after", LFS_O_RDONLY) => 0;
1278 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1280 lfs_file_close(&lfs, &file) => 0;
1281 lfs_unmount(&lfs) => 0;
1286 lfs_format(&lfs, &cfg) => 0;
1287 lfs_mount(&lfs, &cfg) => 0;
1290 lfs_mkdir(&lfs, "/dir.1") => 0;
1291 lfs_mkdir(&lfs, "/dir.2") => 0;
1292 lfs_file_open(&lfs, &file, "/dir.1/1.move_me",
1294 lfs_file_close(&lfs, &file) => 0;
1295 lfs_file_open(&lfs, &file, "/dir.2/1.move_me",
1297 lfs_file_write(&lfs, &file, "remove me",
1299 lfs_file_close(&lfs, &file) => 0;
1301 lfs_file_open(&lfs, &file, "/dir.1/0.before",
1303 lfs_file_write(&lfs, &file, "test.1", 7) => 7;
1304 lfs_file_close(&lfs, &file) => 0;
1305 lfs_file_open(&lfs, &file, "/dir.1/2.after",
1307 lfs_file_write(&lfs, &file, "test.2", 7) => 7;
1308 lfs_file_close(&lfs, &file) => 0;
1310 lfs_file_open(&lfs, &file, "/dir.2/0.before",
1312 lfs_file_write(&lfs, &file, "test.3", 7) => 7;
1313 lfs_file_close(&lfs, &file) => 0;
1314 lfs_file_open(&lfs, &file, "/dir.2/2.after",
1316 lfs_file_write(&lfs, &file, "test.4", 7) => 7;
1317 lfs_file_close(&lfs, &file) => 0;
1320 lfs_file_open(&lfs, &files[0], "/dir.1/0.before",
1322 lfs_file_open(&lfs, &files[1], "/dir.1/2.after",
1324 lfs_file_open(&lfs, &files[2], "/dir.2/0.before",
1326 lfs_file_open(&lfs, &files[3], "/dir.2/2.after",
1328 lfs_file_write(&lfs, &files[0], "test.5", 7) => 7;
1329 lfs_file_write(&lfs, &files[1], "test.6", 7) => 7;
1330 lfs_file_write(&lfs, &files[2], "test.7", 7) => 7;
1331 lfs_file_write(&lfs, &files[3], "test.8", 7) => 7;
1335 lfs_rename(&lfs, "/dir.1/1.move_me", "/dir.2/1.move_me") => 0;
1337 lfs_file_close(&lfs, &files[0]) => 0;
1338 lfs_file_close(&lfs, &files[1]) => 0;
1339 lfs_file_close(&lfs, &files[2]) => 0;
1340 lfs_file_close(&lfs, &files[3]) => 0;
1343 lfs_dir_open(&lfs, &dir, "/") => 0;
1344 lfs_dir_read(&lfs, &dir, &info) => 1;
1347 lfs_dir_read(&lfs, &dir, &info) => 1;
1350 lfs_dir_read(&lfs, &dir, &info) => 1;
1353 lfs_dir_read(&lfs, &dir, &info) => 1;
1356 lfs_dir_read(&lfs, &dir, &info) => 0;
1357 lfs_dir_close(&lfs, &dir) => 0;
1359 lfs_dir_open(&lfs, &dir, "/dir.1") => 0;
1360 lfs_dir_read(&lfs, &dir, &info) => 1;
1363 lfs_dir_read(&lfs, &dir, &info) => 1;
1366 lfs_dir_read(&lfs, &dir, &info) => 1;
1370 lfs_dir_read(&lfs, &dir, &info) => 1;
1374 lfs_dir_read(&lfs, &dir, &info) => 0;
1375 lfs_dir_close(&lfs, &dir) => 0;
1377 lfs_dir_open(&lfs, &dir, "/dir.2") => 0;
1378 lfs_dir_read(&lfs, &dir, &info) => 1;
1381 lfs_dir_read(&lfs, &dir, &info) => 1;
1384 lfs_dir_read(&lfs, &dir, &info) => 1;
1388 lfs_dir_read(&lfs, &dir, &info) => 1;
1392 lfs_dir_read(&lfs, &dir, &info) => 1;
1396 lfs_dir_read(&lfs, &dir, &info) => 0;
1397 lfs_dir_close(&lfs, &dir) => 0;
1399 lfs_file_open(&lfs, &file, "/dir.1/0.before", LFS_O_RDONLY) => 0;
1400 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1402 lfs_file_close(&lfs, &file) => 0;
1403 lfs_file_open(&lfs, &file, "/dir.1/2.after", LFS_O_RDONLY) => 0;
1404 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1406 lfs_file_close(&lfs, &file) => 0;
1407 lfs_file_open(&lfs, &file, "/dir.2/0.before", LFS_O_RDONLY) => 0;
1408 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1410 lfs_file_close(&lfs, &file) => 0;
1411 lfs_file_open(&lfs, &file, "/dir.2/2.after", LFS_O_RDONLY) => 0;
1412 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1414 lfs_file_close(&lfs, &file) => 0;
1417 lfs_file_open(&lfs, &file, "/dir.1/1.move_me",
1419 lfs_file_write(&lfs, &file, "remove me",
1421 lfs_file_close(&lfs, &file) => 0;
1423 lfs_file_open(&lfs, &files[0], "/dir.1/0.before",
1425 lfs_file_open(&lfs, &files[1], "/dir.1/2.after",
1427 lfs_file_open(&lfs, &files[2], "/dir.2/0.before",
1429 lfs_file_open(&lfs, &files[3], "/dir.2/2.after",
1431 lfs_file_write(&lfs, &files[0], "test.9", 7) => 7;
1432 lfs_file_write(&lfs, &files[1], "test.a", 7) => 7;
1433 lfs_file_write(&lfs, &files[2], "test.b", 7) => 7;
1434 lfs_file_write(&lfs, &files[3], "test.c", 7) => 7;
1438 lfs_rename(&lfs, "/dir.2/1.move_me", "/dir.1/1.move_me") => 0;
1440 lfs_file_close(&lfs, &files[0]) => 0;
1441 lfs_file_close(&lfs, &files[1]) => 0;
1442 lfs_file_close(&lfs, &files[2]) => 0;
1443 lfs_file_close(&lfs, &files[3]) => 0;
1446 lfs_dir_open(&lfs, &dir, "/") => 0;
1447 lfs_dir_read(&lfs, &dir, &info) => 1;
1450 lfs_dir_read(&lfs, &dir, &info) => 1;
1453 lfs_dir_read(&lfs, &dir, &info) => 1;
1456 lfs_dir_read(&lfs, &dir, &info) => 1;
1459 lfs_dir_read(&lfs, &dir, &info) => 0;
1460 lfs_dir_close(&lfs, &dir) => 0;
1462 lfs_dir_open(&lfs, &dir, "/dir.1") => 0;
1463 lfs_dir_read(&lfs, &dir, &info) => 1;
1466 lfs_dir_read(&lfs, &dir, &info) => 1;
1469 lfs_dir_read(&lfs, &dir, &info) => 1;
1473 lfs_dir_read(&lfs, &dir, &info) => 1;
1477 lfs_dir_read(&lfs, &dir, &info) => 1;
1481 lfs_dir_read(&lfs, &dir, &info) => 0;
1482 lfs_dir_close(&lfs, &dir) => 0;
1484 lfs_dir_open(&lfs, &dir, "/dir.2") => 0;
1485 lfs_dir_read(&lfs, &dir, &info) => 1;
1488 lfs_dir_read(&lfs, &dir, &info) => 1;
1491 lfs_dir_read(&lfs, &dir, &info) => 1;
1495 lfs_dir_read(&lfs, &dir, &info) => 1;
1499 lfs_dir_read(&lfs, &dir, &info) => 0;
1500 lfs_dir_close(&lfs, &dir) => 0;
1502 lfs_file_open(&lfs, &file, "/dir.1/0.before", LFS_O_RDONLY) => 0;
1503 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1505 lfs_file_close(&lfs, &file) => 0;
1506 lfs_file_open(&lfs, &file, "/dir.1/2.after", LFS_O_RDONLY) => 0;
1507 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1509 lfs_file_close(&lfs, &file) => 0;
1510 lfs_file_open(&lfs, &file, "/dir.2/0.before", LFS_O_RDONLY) => 0;
1511 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1513 lfs_file_close(&lfs, &file) => 0;
1514 lfs_file_open(&lfs, &file, "/dir.2/2.after", LFS_O_RDONLY) => 0;
1515 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1517 lfs_file_close(&lfs, &file) => 0;
1518 lfs_unmount(&lfs) => 0;
1522 in = "lfs.c"
1526 lfs_format(&lfs, &cfg) => 0;
1527 lfs_mount(&lfs, &cfg) => 0;
1529 lfs_mkdir(&lfs, "/parent") => 0;
1530 lfs_mkdir(&lfs, "/parent/child") => 0;
1532 lfs_file_open(&lfs, &file, "/parent/1.move_me",
1534 lfs_file_write(&lfs, &file, "move me",
1536 lfs_file_close(&lfs, &file) => 0;
1538 lfs_file_open(&lfs, &file, "/parent/0.before",
1540 lfs_file_write(&lfs, &file, "test.1", 7) => 7;
1541 lfs_file_close(&lfs, &file) => 0;
1542 lfs_file_open(&lfs, &file, "/parent/2.after",
1544 lfs_file_write(&lfs, &file, "test.2", 7) => 7;
1545 lfs_file_close(&lfs, &file) => 0;
1546 lfs_file_open(&lfs, &file, "/parent/child/0.before",
1548 lfs_file_write(&lfs, &file, "test.3", 7) => 7;
1549 lfs_file_close(&lfs, &file) => 0;
1550 lfs_file_open(&lfs, &file, "/parent/child/2.after",
1552 lfs_file_write(&lfs, &file, "test.4", 7) => 7;
1553 lfs_file_close(&lfs, &file) => 0;
1556 lfs_file_open(&lfs, &files[0], "/parent/0.before",
1558 lfs_file_open(&lfs, &files[1], "/parent/2.after",
1560 lfs_file_open(&lfs, &files[2], "/parent/child/0.before",
1562 lfs_file_open(&lfs, &files[3], "/parent/child/2.after",
1564 lfs_file_write(&lfs, &files[0], "test.5", 7) => 7;
1565 lfs_file_write(&lfs, &files[1], "test.6", 7) => 7;
1566 lfs_file_write(&lfs, &files[2], "test.7", 7) => 7;
1567 lfs_file_write(&lfs, &files[3], "test.8", 7) => 7;
1571 lfs_dir_open(&lfs, &dir, "/parent");
1574 lfs_dir_close(&lfs, &dir) => 0;
1577 lfs_dir_open(&lfs, &dir, "/parent/child");
1580 lfs_dir_close(&lfs, &dir) => 0;
1588 lfs_rename(&lfs, "/parent/1.move_me", "/parent/child/1.move_me") => 0;
1590 lfs_file_close(&lfs, &files[0]) => 0;
1591 lfs_file_close(&lfs, &files[1]) => 0;
1592 lfs_file_close(&lfs, &files[2]) => 0;
1593 lfs_file_close(&lfs, &files[3]) => 0;
1596 lfs_dir_open(&lfs, &dir, "/parent") => 0;
1597 lfs_dir_read(&lfs, &dir, &info) => 1;
1600 lfs_dir_read(&lfs, &dir, &info) => 1;
1603 lfs_dir_read(&lfs, &dir, &info) => 1;
1607 lfs_dir_read(&lfs, &dir, &info) => 1;
1611 lfs_dir_read(&lfs, &dir, &info) => 1;
1614 lfs_dir_read(&lfs, &dir, &info) => 0;
1615 lfs_dir_close(&lfs, &dir) => 0;
1617 lfs_dir_open(&lfs, &dir, "/parent/child") => 0;
1618 lfs_dir_read(&lfs, &dir, &info) => 1;
1621 lfs_dir_read(&lfs, &dir, &info) => 1;
1624 lfs_dir_read(&lfs, &dir, &info) => 1;
1628 lfs_dir_read(&lfs, &dir, &info) => 1;
1632 lfs_dir_read(&lfs, &dir, &info) => 1;
1636 lfs_dir_read(&lfs, &dir, &info) => 0;
1637 lfs_dir_close(&lfs, &dir) => 0;
1639 lfs_file_open(&lfs, &file, "/parent/0.before", LFS_O_RDONLY) => 0;
1640 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1642 lfs_file_close(&lfs, &file) => 0;
1643 lfs_file_open(&lfs, &file, "/parent/2.after", LFS_O_RDONLY) => 0;
1644 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1646 lfs_file_close(&lfs, &file) => 0;
1647 lfs_file_open(&lfs, &file, "/parent/child/0.before", LFS_O_RDONLY) => 0;
1648 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1650 lfs_file_close(&lfs, &file) => 0;
1651 lfs_file_open(&lfs, &file, "/parent/child/2.after", LFS_O_RDONLY) => 0;
1652 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1654 lfs_file_close(&lfs, &file) => 0;
1655 lfs_unmount(&lfs) => 0;
1659 in = "lfs.c"
1663 lfs_format(&lfs, &cfg) => 0;
1664 lfs_mount(&lfs, &cfg) => 0;
1666 lfs_mkdir(&lfs, "/parent") => 0;
1667 lfs_mkdir(&lfs, "/parent/child") => 0;
1668 lfs_mkdir(&lfs, "/parent/sibling") => 0;
1670 lfs_file_open(&lfs, &file, "/parent/sibling/1.move_me",
1672 lfs_file_write(&lfs, &file, "move me",
1674 lfs_file_close(&lfs, &file) => 0;
1676 lfs_file_open(&lfs, &file, "/parent/sibling/0.before",
1678 lfs_file_write(&lfs, &file, "test.1", 7) => 7;
1679 lfs_file_close(&lfs, &file) => 0;
1680 lfs_file_open(&lfs, &file, "/parent/sibling/2.after",
1682 lfs_file_write(&lfs, &file, "test.2", 7) => 7;
1683 lfs_file_close(&lfs, &file) => 0;
1684 lfs_file_open(&lfs, &file, "/parent/child/0.before",
1686 lfs_file_write(&lfs, &file, "test.3", 7) => 7;
1687 lfs_file_close(&lfs, &file) => 0;
1688 lfs_file_open(&lfs, &file, "/parent/child/2.after",
1690 lfs_file_write(&lfs, &file, "test.4", 7) => 7;
1691 lfs_file_close(&lfs, &file) => 0;
1694 lfs_file_open(&lfs, &files[0], "/parent/sibling/0.before",
1696 lfs_file_open(&lfs, &files[1], "/parent/sibling/2.after",
1698 lfs_file_open(&lfs, &files[2], "/parent/child/0.before",
1700 lfs_file_open(&lfs, &files[3], "/parent/child/2.after",
1702 lfs_file_write(&lfs, &files[0], "test.5", 7) => 7;
1703 lfs_file_write(&lfs, &files[1], "test.6", 7) => 7;
1704 lfs_file_write(&lfs, &files[2], "test.7", 7) => 7;
1705 lfs_file_write(&lfs, &files[3], "test.8", 7) => 7;
1709 lfs_dir_open(&lfs, &dir, "/parent");
1712 lfs_dir_close(&lfs, &dir) => 0;
1715 lfs_dir_open(&lfs, &dir, "/parent/sibling");
1718 lfs_dir_close(&lfs, &dir) => 0;
1721 lfs_dir_open(&lfs, &dir, "/parent/child");
1724 lfs_dir_close(&lfs, &dir) => 0;
1732 lfs_rename(&lfs,
1736 lfs_file_close(&lfs, &files[0]) => 0;
1737 lfs_file_close(&lfs, &files[1]) => 0;
1738 lfs_file_close(&lfs, &files[2]) => 0;
1739 lfs_file_close(&lfs, &files[3]) => 0;
1742 lfs_dir_open(&lfs, &dir, "/parent") => 0;
1743 lfs_dir_read(&lfs, &dir, &info) => 1;
1746 lfs_dir_read(&lfs, &dir, &info) => 1;
1749 lfs_dir_read(&lfs, &dir, &info) => 1;
1752 lfs_dir_read(&lfs, &dir, &info) => 1;
1755 lfs_dir_read(&lfs, &dir, &info) => 0;
1756 lfs_dir_close(&lfs, &dir) => 0;
1758 lfs_dir_open(&lfs, &dir, "/parent/sibling") => 0;
1759 lfs_dir_read(&lfs, &dir, &info) => 1;
1762 lfs_dir_read(&lfs, &dir, &info) => 1;
1765 lfs_dir_read(&lfs, &dir, &info) => 1;
1769 lfs_dir_read(&lfs, &dir, &info) => 1;
1773 lfs_dir_read(&lfs, &dir, &info) => 0;
1774 lfs_dir_close(&lfs, &dir) => 0;
1776 lfs_dir_open(&lfs, &dir, "/parent/child") => 0;
1777 lfs_dir_read(&lfs, &dir, &info) => 1;
1780 lfs_dir_read(&lfs, &dir, &info) => 1;
1783 lfs_dir_read(&lfs, &dir, &info) => 1;
1787 lfs_dir_read(&lfs, &dir, &info) => 1;
1791 lfs_dir_read(&lfs, &dir, &info) => 1;
1795 lfs_dir_read(&lfs, &dir, &info) => 0;
1796 lfs_dir_close(&lfs, &dir) => 0;
1798 lfs_file_open(&lfs, &file, "/parent/sibling/0.before", LFS_O_RDONLY) => 0;
1799 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1801 lfs_file_close(&lfs, &file) => 0;
1802 lfs_file_open(&lfs, &file, "/parent/sibling/2.after", LFS_O_RDONLY) => 0;
1803 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1805 lfs_file_close(&lfs, &file) => 0;
1806 lfs_file_open(&lfs, &file, "/parent/child/0.before", LFS_O_RDONLY) => 0;
1807 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1809 lfs_file_close(&lfs, &file) => 0;
1810 lfs_file_open(&lfs, &file, "/parent/child/2.after", LFS_O_RDONLY) => 0;
1811 lfs_file_read(&lfs, &file, buffer, 7) => 7;
1813 lfs_file_close(&lfs, &file) => 0;
1814 lfs_unmount(&lfs) => 0;