Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 24 of 24) sorted by relevance

/littlefs-3.7.0-3.6.0/tests/
Dtest_dirs.toml6 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 …]
Dtest_move.toml23 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 …]
Dtest_compat.toml109 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 …]
Dtest_relocations.toml19 // 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 …]
Dtest_interspersed.toml28 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 …]
Dtest_powerloss.toml36 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;
Dtest_evil.toml37 // 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 …]
Dtest_orphans.toml18 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
Dtest_alloc.toml329 # 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/
Dlfs.c551 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 …]
DDESIGN.md1498 .| 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 …]
Dlfs.h653 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);
DSPEC.md478 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 |
DMakefile161 $(addprefix $(BUILDDIR)/,$(dir \
/littlefs-3.7.0-3.6.0/scripts/
Dreadtree.py82 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
Dplot.py158 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 …]
Dplotmpl.py340 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 …]
Dwatch.py58 for dir, _, files in os.walk(path):
59 inotify.add_watch(dir, flags)
61 inotify.add_watch(os.path.join(dir, f), flags)
Dstructs.py175 dir = int(m.group('dir'))
176 if dir in dirs:
178 dirs[dir],
Ddata.py218 dir = int(m.group('dir'))
219 if dir in dirs:
221 dirs[dir],
Dcode.py218 dir = int(m.group('dir'))
219 if dir in dirs:
221 dirs[dir],
Dperf.py333 dir = int(m.group('dir'))
334 if dir in dirs:
336 dirs[dir],
Dperfbd.py241 dir = int(m.group('dir'))
242 if dir in dirs:
244 dirs[dir],
/littlefs-3.7.0-3.6.0/benches/
Dbench_dir.toml184 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_);