Lines Matching full:0

12     lfs_format(&lfs, &cfg) => 0;
13 lfs_mount(&lfs, &cfg) => 0;
14 lfs_mkdir(&lfs, "breakfast") => 0;
15 lfs_unmount(&lfs) => 0;
17 lfs_mount(&lfs, &cfg) => 0;
18 for (int n = 0; n < FILES; n++) {
21 LFS_O_WRONLY | LFS_O_CREAT | LFS_O_APPEND) => 0;
23 for (int n = 0; n < FILES; n++) {
25 for (lfs_size_t i = 0; i < SIZE; i += size) {
29 for (int n = 0; n < FILES; n++) {
30 lfs_file_close(&lfs, &files[n]) => 0;
32 lfs_unmount(&lfs) => 0;
34 lfs_mount(&lfs, &cfg) => 0;
35 for (int n = 0; n < FILES; n++) {
37 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
39 for (lfs_size_t i = 0; i < SIZE; i += size) {
41 assert(memcmp(buffer, names[n], size) == 0);
43 lfs_file_close(&lfs, &file) => 0;
45 lfs_unmount(&lfs) => 0;
54 lfs_format(&lfs, &cfg) => 0;
55 lfs_mount(&lfs, &cfg) => 0;
56 lfs_mkdir(&lfs, "breakfast") => 0;
57 lfs_unmount(&lfs) => 0;
59 for (int n = 0; n < FILES; n++) {
60 lfs_mount(&lfs, &cfg) => 0;
63 LFS_O_WRONLY | LFS_O_CREAT | LFS_O_APPEND) => 0;
66 for (int i = 0; i < SIZE; i += size) {
69 lfs_file_close(&lfs, &file) => 0;
70 lfs_unmount(&lfs) => 0;
73 lfs_mount(&lfs, &cfg) => 0;
74 for (int n = 0; n < FILES; n++) {
76 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
78 for (int i = 0; i < SIZE; i += size) {
80 assert(memcmp(buffer, names[n], size) == 0);
82 lfs_file_close(&lfs, &file) => 0;
84 lfs_unmount(&lfs) => 0;
95 lfs_format(&lfs, &cfg) => 0;
97 for (int c = 0; c < CYCLES; c++) {
98 lfs_mount(&lfs, &cfg) => 0;
99 lfs_mkdir(&lfs, "breakfast") => 0;
100 lfs_unmount(&lfs) => 0;
102 lfs_mount(&lfs, &cfg) => 0;
103 for (int n = 0; n < FILES; n++) {
106 LFS_O_WRONLY | LFS_O_CREAT | LFS_O_APPEND) => 0;
108 for (int n = 0; n < FILES; n++) {
110 for (int i = 0; i < SIZE; i += size) {
114 for (int n = 0; n < FILES; n++) {
115 lfs_file_close(&lfs, &files[n]) => 0;
117 lfs_unmount(&lfs) => 0;
119 lfs_mount(&lfs, &cfg) => 0;
120 for (int n = 0; n < FILES; n++) {
122 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
124 for (int i = 0; i < SIZE; i += size) {
126 assert(memcmp(buffer, names[n], size) == 0);
128 lfs_file_close(&lfs, &file) => 0;
130 lfs_unmount(&lfs) => 0;
132 lfs_mount(&lfs, &cfg) => 0;
133 for (int n = 0; n < FILES; n++) {
135 lfs_remove(&lfs, path) => 0;
137 lfs_remove(&lfs, "breakfast") => 0;
138 lfs_unmount(&lfs) => 0;
149 lfs_format(&lfs, &cfg) => 0;
151 for (int c = 0; c < CYCLES; c++) {
152 lfs_mount(&lfs, &cfg) => 0;
153 lfs_mkdir(&lfs, "breakfast") => 0;
154 lfs_unmount(&lfs) => 0;
156 for (int n = 0; n < FILES; n++) {
157 lfs_mount(&lfs, &cfg) => 0;
160 LFS_O_WRONLY | LFS_O_CREAT | LFS_O_APPEND) => 0;
163 for (int i = 0; i < SIZE; i += size) {
166 lfs_file_close(&lfs, &file) => 0;
167 lfs_unmount(&lfs) => 0;
170 lfs_mount(&lfs, &cfg) => 0;
171 for (int n = 0; n < FILES; n++) {
173 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
175 for (int i = 0; i < SIZE; i += size) {
177 assert(memcmp(buffer, names[n], size) == 0);
179 lfs_file_close(&lfs, &file) => 0;
181 lfs_unmount(&lfs) => 0;
183 lfs_mount(&lfs, &cfg) => 0;
184 for (int n = 0; n < FILES; n++) {
186 lfs_remove(&lfs, path) => 0;
188 lfs_remove(&lfs, "breakfast") => 0;
189 lfs_unmount(&lfs) => 0;
195 lfs_format(&lfs, &cfg) => 0;
196 lfs_mount(&lfs, &cfg) => 0;
201 lfs_file_sync(&lfs, &file) => 0;
208 if (res < 0) {
216 lfs_file_close(&lfs, &file) => 0;
217 lfs_unmount(&lfs) => 0;
219 lfs_mount(&lfs, &cfg) => 0;
224 memcmp(buffer, "exhaustion", size) => 0;
225 lfs_file_close(&lfs, &file) => 0;
226 lfs_unmount(&lfs) => 0;
232 lfs_format(&lfs, &cfg) => 0;
233 lfs_mount(&lfs, &cfg) => 0;
238 for (int i = 0; i < SIZE; i += size) {
241 lfs_file_close(&lfs, &file) => 0;
242 lfs_remove(&lfs, "padding") => 0;
248 lfs_file_sync(&lfs, &file) => 0;
255 if (res < 0) {
263 lfs_file_close(&lfs, &file) => 0;
264 lfs_unmount(&lfs) => 0;
266 lfs_mount(&lfs, &cfg) => 0;
271 memcmp(buffer, "exhaustion", size) => 0;
272 lfs_file_close(&lfs, &file) => 0;
273 lfs_remove(&lfs, "exhaustion") => 0;
274 lfs_unmount(&lfs) => 0;
279 lfs_format(&lfs, &cfg) => 0;
280 lfs_mount(&lfs, &cfg) => 0;
283 lfs_mkdir(&lfs, "exhaustiondir") => 0;
287 int count = 0;
290 if (err < 0) {
297 lfs_file_close(&lfs, &file) => 0;
299 lfs_remove(&lfs, "exhaustion") => 0;
300 lfs_remove(&lfs, "exhaustiondir") => 0;
304 for (int i = 0; i < count; i++) {
307 lfs_file_close(&lfs, &file) => 0;
309 lfs_mkdir(&lfs, "exhaustiondir") => 0;
310 lfs_remove(&lfs, "exhaustiondir") => 0;
311 lfs_remove(&lfs, "exhaustion") => 0;
315 for (int i = 0; i < count+1; i++) {
318 lfs_file_close(&lfs, &file) => 0;
322 lfs_remove(&lfs, "exhaustion") => 0;
323 lfs_unmount(&lfs) => 0;
328 define.LFS_ERASE_CYCLES = 0xffffffff
331 lfs_format(&lfs, &cfg) => 0;
332 lfs_mount(&lfs, &cfg) => 0;
334 lfs_file_open(&lfs, &file, "pacman", LFS_O_WRONLY | LFS_O_CREAT) => 0;
337 lfs_size_t filesize = 0;
346 lfs_file_close(&lfs, &file) => 0;
349 lfs_file_open(&lfs, &file, "pacman", LFS_O_WRONLY | LFS_O_CREAT) => 0;
352 for (lfs_size_t i = 0; i < filesize/size; i++) {
355 lfs_file_close(&lfs, &file) => 0;
358 lfs_unmount(&lfs) => 0;
361 lfs_mount(&lfs, &cfg) => 0;
365 lfs_testbd_setwear(&cfg, fileblock, 0xffffffff) => 0;
366 lfs_file_open(&lfs, &file, "ghost", LFS_O_WRONLY | LFS_O_CREAT) => 0;
376 lfs_file_close(&lfs, &file) => 0;
380 lfs_testbd_setwear(&cfg, fileblock, 0) => 0;
381 lfs_file_open(&lfs, &file, "ghost", LFS_O_WRONLY | LFS_O_CREAT) => 0;
391 lfs_file_close(&lfs, &file) => 0;
393 lfs_unmount(&lfs) => 0;
396 lfs_mount(&lfs, &cfg) => 0;
397 lfs_file_open(&lfs, &file, "pacman", LFS_O_RDONLY) => 0;
400 for (lfs_size_t i = 0; i < filesize/size; i++) {
403 assert(memcmp(rbuffer, buffer, size) == 0);
405 lfs_file_close(&lfs, &file) => 0;
406 lfs_unmount(&lfs) => 0;
419 lfs_format(&lfs, &cfg) => 0;
420 lfs_mount(&lfs, &cfg) => 0;
423 lfs_mkdir(&lfs, "exhaustiondir") => 0;
424 for (int i = 0; i < 10; i++) {
426 lfs_mkdir(&lfs, path) => 0;
431 int count = 0;
434 if (err < 0) {
441 lfs_file_close(&lfs, &file) => 0;
443 lfs_remove(&lfs, "exhaustion") => 0;
444 lfs_remove(&lfs, "exhaustiondir") => 0;
445 for (int i = 0; i < 10; i++) {
447 lfs_remove(&lfs, path) => 0;
452 for (int i = 0; i < count+1; i++) {
455 lfs_file_sync(&lfs, &file) => 0;
457 for (int i = 0; i < 10; i++) {
459 lfs_mkdir(&lfs, path) => 0;
472 filesize > 0 => true;
474 lfs_file_truncate(&lfs, &file, filesize - size) => 0;
475 lfs_file_sync(&lfs, &file) => 0;
477 err => 0;
481 lfs_file_close(&lfs, &file) => 0;
482 lfs_unmount(&lfs) => 0;
490 lfs_format(&lfs, &cfg) => 0;
491 lfs_mount(&lfs, &cfg) => 0;
494 lfs_file_open(&lfs, &file, "bump", LFS_O_WRONLY | LFS_O_CREAT) => 0;
495 for (lfs_size_t i = 0; i < cfg.block_size; i += 2) {
499 lfs_file_close(&lfs, &file) => 0;
504 for (lfs_size_t i = 0;
509 lfs_file_close(&lfs, &file) => 0;
512 lfs_unmount(&lfs) => 0;
513 lfs_mount(&lfs, &cfg) => 0;
516 lfs_remove(&lfs, "bump") => 0;
518 lfs_mkdir(&lfs, "splitdir") => 0;
520 LFS_O_WRONLY | LFS_O_CREAT) => 0;
521 for (lfs_size_t i = 0; i < cfg.block_size; i += 2) {
525 lfs_file_close(&lfs, &file) => 0;
527 lfs_unmount(&lfs) => 0;
535 lfs_format(&lfs, &cfg) => 0;
536 lfs_mount(&lfs, &cfg) => 0;
540 LFS_O_WRONLY | LFS_O_CREAT) => 0;
543 for (lfs_size_t i = 0;
548 lfs_file_close(&lfs, &file) => 0;
551 LFS_O_WRONLY | LFS_O_CREAT) => 0;
554 for (lfs_size_t i = 0;
559 lfs_file_close(&lfs, &file) => 0;
562 lfs_unmount(&lfs) => 0;
563 lfs_mount(&lfs, &cfg) => 0;
567 LFS_O_WRONLY | LFS_O_TRUNC) => 0;
568 lfs_file_sync(&lfs, &file) => 0;
571 for (lfs_size_t i = 0;
576 lfs_file_close(&lfs, &file) => 0;
581 LFS_O_WRONLY | LFS_O_TRUNC) => 0;
582 lfs_file_sync(&lfs, &file) => 0;
585 for (lfs_size_t i = 0;
590 lfs_file_close(&lfs, &file) => 0;
592 lfs_unmount(&lfs) => 0;
600 lfs_format(&lfs, &cfg) => 0;
601 lfs_mount(&lfs, &cfg) => 0;
605 LFS_O_WRONLY | LFS_O_CREAT) => 0;
608 for (lfs_size_t i = 0;
613 lfs_file_close(&lfs, &file) => 0;
616 LFS_O_WRONLY | LFS_O_CREAT) => 0;
619 for (lfs_size_t i = 0;
624 lfs_file_close(&lfs, &file) => 0;
627 lfs_unmount(&lfs) => 0;
628 lfs_mount(&lfs, &cfg) => 0;
632 LFS_O_WRONLY | LFS_O_TRUNC) => 0;
633 lfs_file_sync(&lfs, &file) => 0;
636 for (lfs_size_t i = 0;
641 lfs_file_close(&lfs, &file) => 0;
648 LFS_O_WRONLY | LFS_O_CREAT) => 0;
650 lfs_file_close(&lfs, &file) => 0;
652 lfs_unmount(&lfs) => 0;