Home
last modified time | relevance | path

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

/littlefs-3.5.0-3.4.0/tests/
Dtest_dirs.toml5 lfs_dir_open(&lfs, &dir, "/") => 0;
6 lfs_dir_read(&lfs, &dir, &info) => 1;
9 lfs_dir_read(&lfs, &dir, &info) => 1;
12 lfs_dir_read(&lfs, &dir, &info) => 0;
13 lfs_dir_close(&lfs, &dir) => 0;
24 sprintf(path, "dir%03d", i);
30 lfs_dir_open(&lfs, &dir, "/") => 0;
31 lfs_dir_read(&lfs, &dir, &info) => 1;
34 lfs_dir_read(&lfs, &dir, &info) => 1;
38 sprintf(path, "dir%03d", i);
[all …]
Dtest_move.toml21 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;
[all …]
Dtest_relocations.toml2 [[case]] # dangling split dir test
16 // make a child dir to use in bounded space
28 lfs_dir_open(&lfs, &dir, "child") => 0;
29 lfs_dir_read(&lfs, &dir, &info) => 1;
30 lfs_dir_read(&lfs, &dir, &info) => 1;
33 lfs_dir_read(&lfs, &dir, &info) => 1;
36 lfs_dir_read(&lfs, &dir, &info) => 0;
37 lfs_dir_close(&lfs, &dir) => 0;
51 lfs_dir_open(&lfs, &dir, "child") => 0;
52 lfs_dir_read(&lfs, &dir, &info) => 1;
[all …]
Dtest_interspersed.toml26 lfs_dir_open(&lfs, &dir, "/") => 0;
27 lfs_dir_read(&lfs, &dir, &info) => 1;
30 lfs_dir_read(&lfs, &dir, &info) => 1;
35 lfs_dir_read(&lfs, &dir, &info) => 1;
40 lfs_dir_read(&lfs, &dir, &info) => 0;
41 lfs_dir_close(&lfs, &dir) => 0;
91 lfs_dir_open(&lfs, &dir, "/") => 0;
92 lfs_dir_read(&lfs, &dir, &info) => 1;
95 lfs_dir_read(&lfs, &dir, &info) => 1;
98 lfs_dir_read(&lfs, &dir, &info) => 1;
[all …]
Dtest_evil.toml29 [[case]] # invalid dir pointer test
35 // make a dir
40 // change the dir pointer to be invalid
50 // change dir pointer
58 // test that accessing our bad dir fails, note there's a number
59 // of ways to access the dir, some can fail, but some don't
65 lfs_dir_open(&lfs, &dir, "dir_here") => LFS_ERR_CORRUPT;
67 lfs_dir_open(&lfs, &dir, "dir_here/dir_here") => LFS_ERR_CORRUPT;
105 // of ways to access the dir, some can fail, but some don't
166 // of ways to access the dir, some can fail, but some don't
[all …]
Dtest_orphans.toml17 lfs_dir_open(&lfs, &dir, "parent/child") => 0;
18 lfs_block_t block = dir.m.pair[0];
19 lfs_dir_close(&lfs, &dir) => 0;
42 // this mkdir should both create a dir and deorphan, so size
87 // create each directory in turn, ignore if dir already exists
103 // is valid dir?
107 // try to delete path in reverse order, ignore if dir is not empty
Dtest_alloc.toml277 [[case]] # dir exhaustion test
302 // see if dir fits with max file size
313 // see if dir fits with > max file size
414 [[case]] # chained dir exhaustion test
450 // see that chained dir fails
464 // shorten file to try a second chained dir
485 [[case]] # split dir test
595 [[case]] # outdated lookahead and split dir test
/littlefs-3.5.0-3.4.0/
Dlfs.c485 static int lfs_dir_commit(lfs_t *lfs, lfs_mdir_t *dir,
488 lfs_mdir_t *dir, const struct lfs_mattr *attrs, int attrcount,
502 static int lfs_fs_pred(lfs_t *lfs, const lfs_block_t dir[2],
504 static lfs_stag_t lfs_fs_parent(lfs_t *lfs, const lfs_block_t dir[2],
514 static int lfs_dir_rawrewind(lfs_t *lfs, lfs_dir_t *dir);
611 static lfs_stag_t lfs_dir_getslice(lfs_t *lfs, const lfs_mdir_t *dir, in lfs_dir_getslice() argument
614 lfs_off_t off = dir->off; in lfs_dir_getslice()
615 lfs_tag_t ntag = dir->etag; in lfs_dir_getslice()
618 if (lfs_gstate_hasmovehere(&lfs->gdisk, dir->pair) && in lfs_dir_getslice()
631 dir->pair[0], off, &ntag, sizeof(ntag)); in lfs_dir_getslice()
[all …]
DMakefile63 override TESTFLAGS += --build-dir="$(BUILDDIR:/=)"
64 override CALLSFLAGS += --build-dir="$(BUILDDIR:/=)"
65 override CODEFLAGS += --build-dir="$(BUILDDIR:/=)"
66 override DATAFLAGS += --build-dir="$(BUILDDIR:/=)"
67 override STACKFLAGS += --build-dir="$(BUILDDIR:/=)"
68 override STRUCTSFLAGS += --build-dir="$(BUILDDIR:/=)"
69 override COVERAGEFLAGS += --build-dir="$(BUILDDIR:/=)"
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.h623 int lfs_dir_open(lfs_t *lfs, lfs_dir_t *dir, const char *path);
629 int lfs_dir_close(lfs_t *lfs, lfs_dir_t *dir);
636 int lfs_dir_read(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info);
644 int lfs_dir_seek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off);
652 lfs_soff_t lfs_dir_tell(lfs_t *lfs, lfs_dir_t *dir);
657 int lfs_dir_rewind(lfs_t *lfs, lfs_dir_t *dir);
DSPEC.md437 The dir-struct tag contains only the pointer to the first metadata-pair in the
443 Layout of the dir-struct tag:
585 .| dir A |-.
593 '->| dir B |->| dir B |->| dir C |
/littlefs-3.5.0-3.4.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