/littlefs-3.7.0-3.6.0/tests/ |
D | test_dirs.toml | 6 lfs_dir_t dir; 7 lfs_dir_open(&lfs, &dir, "/") => 0; 9 lfs_dir_read(&lfs, &dir, &info) => 1; 12 lfs_dir_read(&lfs, &dir, &info) => 1; 15 lfs_dir_read(&lfs, &dir, &info) => 0; 16 lfs_dir_close(&lfs, &dir) => 0; 30 sprintf(path, "dir%03d", i); 36 lfs_dir_t dir; 37 lfs_dir_open(&lfs, &dir, "/") => 0; 39 lfs_dir_read(&lfs, &dir, &info) => 1; [all …]
|
D | test_move.toml | 23 lfs_dir_t dir; 25 lfs_dir_open(&lfs, &dir, "a") => 0; 26 lfs_dir_read(&lfs, &dir, &info) => 1; 29 lfs_dir_read(&lfs, &dir, &info) => 1; 32 lfs_dir_read(&lfs, &dir, &info) => 0; 33 lfs_dir_close(&lfs, &dir) => 0; 34 lfs_dir_open(&lfs, &dir, "c") => 0; 35 lfs_dir_read(&lfs, &dir, &info) => 1; 38 lfs_dir_read(&lfs, &dir, &info) => 1; 41 lfs_dir_read(&lfs, &dir, &info) => 1; [all …]
|
D | test_compat.toml | 109 sprintf(name, "dir%03d", i); 125 lfs_dir_t dir; 126 lfs_dir_open(&lfs, &dir, "/") => 0; 128 lfs_dir_read(&lfs, &dir, &info) => 1; 131 lfs_dir_read(&lfs, &dir, &info) => 1; 136 lfs_dir_read(&lfs, &dir, &info) => 1; 139 sprintf(name, "dir%03d", i); 143 lfs_dir_read(&lfs, &dir, &info) => 0; 144 lfs_dir_close(&lfs, &dir) => 0; 197 lfs_dir_t dir; [all …]
|
D | test_relocations.toml | 19 // make a child dir to use in bounded space 32 lfs_dir_t dir; 34 lfs_dir_open(&lfs, &dir, "child") => 0; 35 lfs_dir_read(&lfs, &dir, &info) => 1; 36 lfs_dir_read(&lfs, &dir, &info) => 1; 40 lfs_dir_read(&lfs, &dir, &info) => 1; 43 lfs_dir_read(&lfs, &dir, &info) => 0; 44 lfs_dir_close(&lfs, &dir) => 0; 59 lfs_dir_t dir; 61 lfs_dir_open(&lfs, &dir, "child") => 0; [all …]
|
D | test_interspersed.toml | 28 lfs_dir_t dir; 29 lfs_dir_open(&lfs, &dir, "/") => 0; 31 lfs_dir_read(&lfs, &dir, &info) => 1; 34 lfs_dir_read(&lfs, &dir, &info) => 1; 40 lfs_dir_read(&lfs, &dir, &info) => 1; 45 lfs_dir_read(&lfs, &dir, &info) => 0; 46 lfs_dir_close(&lfs, &dir) => 0; 103 lfs_dir_t dir; 104 lfs_dir_open(&lfs, &dir, "/") => 0; 106 lfs_dir_read(&lfs, &dir, &info) => 1; [all …]
|
D | test_powerloss.toml | 36 lfs_dir_t dir; 37 lfs_dir_open(&lfs, &dir, "notebook") => 0; 38 lfs_block_t pair[2] = {dir.m.pair[0], dir.m.pair[1]}; 39 uint32_t rev = dir.m.rev; 40 lfs_dir_close(&lfs, &dir) => 0; 132 lfs_dir_t dir; 133 lfs_dir_open(&lfs, &dir, "notebook") => 0; 134 lfs_block_t block = dir.m.pair[0]; 135 lfs_off_t off = dir.m.off; 136 lfs_dir_close(&lfs, &dir) => 0;
|
D | test_evil.toml | 37 // make a dir 42 // change the dir pointer to be invalid 53 // change dir pointer 61 // test that accessing our bad dir fails, note there's a number 62 // of ways to access the dir, some can fail, but some don't 69 lfs_dir_t dir; 70 lfs_dir_open(&lfs, &dir, "dir_here") => LFS_ERR_CORRUPT; 72 lfs_dir_open(&lfs, &dir, "dir_here/dir_here") => LFS_ERR_CORRUPT; 114 // of ways to access the dir, some can fail, but some don't 179 // of ways to access the dir, some can fail, but some don't [all …]
|
D | test_orphans.toml | 18 lfs_dir_t dir; 19 lfs_dir_open(&lfs, &dir, "parent/child") => 0; 20 lfs_block_t block = dir.m.pair[0]; 21 lfs_dir_close(&lfs, &dir) => 0; 45 // this mkdir should both create a dir and deorphan, so size 237 // create each directory in turn, ignore if dir already exists 255 // is valid dir? 259 // try to delete path in reverse order, ignore if dir is not empty
|
D | test_alloc.toml | 329 # dir exhaustion test 361 // see if dir fits with max file size 372 // see if dir fits with > max file size 479 # chained dir exhaustion test 521 // see that chained dir fails 536 // shorten file to try a second chained dir 557 # split dir test 674 # outdated lookahead and split dir test
|
/littlefs-3.7.0-3.6.0/ |
D | lfs.c | 551 static int lfs_dir_commit(lfs_t *lfs, lfs_mdir_t *dir, 554 lfs_mdir_t *dir, const struct lfs_mattr *attrs, int attrcount, 568 static int lfs_fs_pred(lfs_t *lfs, const lfs_block_t dir[2], 570 static lfs_stag_t lfs_fs_parent(lfs_t *lfs, const lfs_block_t dir[2], 582 static int lfs_dir_rawrewind(lfs_t *lfs, lfs_dir_t *dir); 691 static lfs_stag_t lfs_dir_getslice(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getslice() argument 694 lfs_off_t off = dir->off; in lfs_dir_getslice() 695 lfs_tag_t ntag = dir->etag; in lfs_dir_getslice() 698 if (lfs_gstate_hasmovehere(&lfs->gdisk, dir->pair) && in lfs_dir_getslice() 711 dir->pair[0], off, &ntag, sizeof(ntag)); in lfs_dir_getslice() [all …]
|
D | DESIGN.md | 1498 .| dir A |------->| dir A | .| dir B | 1531 '->| dir A |------->| dir A |------->| dir B | 1570 '->| dir A |->| dir C | 1576 allocate dir B 1587 '->| dir A |--->| dir C | 1594 .| dir B |-' 1600 insert dir B into threaded linked-list, creating an orphan 1611 '->| dir A |->| dir B |->| dir C | 1617 add dir B to parent directory 1628 '->| dir A |->| dir B |->| dir C | [all …]
|
D | lfs.h | 653 int lfs_dir_open(lfs_t *lfs, lfs_dir_t *dir, const char *path); 659 int lfs_dir_close(lfs_t *lfs, lfs_dir_t *dir); 666 int lfs_dir_read(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info); 674 int lfs_dir_seek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off); 682 lfs_soff_t lfs_dir_tell(lfs_t *lfs, lfs_dir_t *dir); 687 int lfs_dir_rewind(lfs_t *lfs, lfs_dir_t *dir);
|
D | SPEC.md | 478 The dir-struct tag contains only the pointer to the first metadata-pair in the 484 Layout of the dir-struct tag: 626 .| dir A |-. 634 '->| dir B |->| dir B |->| dir C |
|
D | Makefile | 161 $(addprefix $(BUILDDIR)/,$(dir \
|
/littlefs-3.7.0-3.6.0/scripts/ |
D | readtree.py | 82 for dir in dirs: 83 dirtable[frozenset(dir[0].blocks)] = dir 87 path, dir = pending.pop(0) 88 for mdir in dir: 100 dir[0].path = path.replace('//', '/') 122 for i, dir in enumerate(dirs): 123 print("dir %s" % (json.dumps(dir[0].path) 124 if hasattr(dir[0], 'path') else '(orphan)')) 126 for j, mdir in enumerate(dir): 144 ' ' if j == len(dir)-1 else
|
D | plot.py | 158 for dir, _, files in os.walk(path): 159 inotify.add_watch(dir, flags) 161 inotify.add_watch(os.path.join(dir, f), flags) 594 def merge(self, other, dir): argument 595 if dir in ['above', 'below']: 674 if dir == 'above': 693 if dir in ['right', 'left']: 772 if dir == 'right': 802 for dir, subargs in subplots: 805 0.5 if dir in ['right', 'left'] else width), [all …]
|
D | plotmpl.py | 340 def merge(self, other, dir): argument 341 if dir in ['above', 'below']: 420 if dir == 'above': 439 if dir in ['right', 'left']: 518 if dir == 'right': 548 for dir, subargs in subplots: 551 0.5 if dir in ['right', 'left'] else width), 553 0.5 if dir in ['above', 'below'] else height), 555 grid.merge(subgrid, dir) 1254 ns.subplots = [(dir, dictify(subplot_ns)) [all …]
|
D | watch.py | 58 for dir, _, files in os.walk(path): 59 inotify.add_watch(dir, flags) 61 inotify.add_watch(os.path.join(dir, f), flags)
|
D | structs.py | 175 dir = int(m.group('dir')) 176 if dir in dirs: 178 dirs[dir],
|
D | data.py | 218 dir = int(m.group('dir')) 219 if dir in dirs: 221 dirs[dir],
|
D | code.py | 218 dir = int(m.group('dir')) 219 if dir in dirs: 221 dirs[dir],
|
D | perf.py | 333 dir = int(m.group('dir')) 334 if dir in dirs: 336 dirs[dir],
|
D | perfbd.py | 241 dir = int(m.group('dir')) 242 if dir in dirs: 244 dirs[dir],
|
/littlefs-3.7.0-3.6.0/benches/ |
D | bench_dir.toml | 184 lfs_dir_t dir; 185 lfs_dir_open(&lfs, &dir, "/") => 0; 187 lfs_dir_read(&lfs, &dir, &info) => 1; 190 lfs_dir_read(&lfs, &dir, &info) => 1; 195 lfs_dir_read(&lfs, &dir, &info) => 1; 199 lfs_dir_read(&lfs, &dir, &info) => 0; 200 lfs_dir_close(&lfs, &dir) => 0; 226 sprintf(name, "dir%08x", i_); 249 sprintf(name, "dir%08x", i); 261 sprintf(name, "dir%08x", i_);
|