/littlefs-3.7.0-3.6.0/tests/ |
D | test_dirs.toml | 8 struct lfs_info info; 9 lfs_dir_read(&lfs, &dir, &info) => 1; 10 assert(info.type == LFS_TYPE_DIR); 11 assert(strcmp(info.name, ".") == 0); 12 lfs_dir_read(&lfs, &dir, &info) => 1; 13 assert(info.type == LFS_TYPE_DIR); 14 assert(strcmp(info.name, "..") == 0); 15 lfs_dir_read(&lfs, &dir, &info) => 0; 38 struct lfs_info info; 39 lfs_dir_read(&lfs, &dir, &info) => 1; [all …]
|
D | test_move.toml | 24 struct lfs_info info; 26 lfs_dir_read(&lfs, &dir, &info) => 1; 27 assert(strcmp(info.name, ".") == 0); 28 assert(info.type == LFS_TYPE_DIR); 29 lfs_dir_read(&lfs, &dir, &info) => 1; 30 assert(strcmp(info.name, "..") == 0); 31 assert(info.type == LFS_TYPE_DIR); 32 lfs_dir_read(&lfs, &dir, &info) => 0; 35 lfs_dir_read(&lfs, &dir, &info) => 1; 36 assert(strcmp(info.name, ".") == 0); [all …]
|
D | test_paths.toml | 13 struct lfs_info info; 14 lfs_stat(&lfs, "tea/hottea", &info) => 0; 15 assert(strcmp(info.name, "hottea") == 0); 16 lfs_stat(&lfs, "/tea/hottea", &info) => 0; 17 assert(strcmp(info.name, "hottea") == 0); 20 lfs_stat(&lfs, "/milk", &info) => 0; 21 assert(strcmp(info.name, "milk") == 0); 22 lfs_stat(&lfs, "milk", &info) => 0; 23 assert(strcmp(info.name, "milk") == 0); 38 struct lfs_info info; [all …]
|
D | test_compat.toml | 127 struct lfs_info info; 128 lfs_dir_read(&lfs, &dir, &info) => 1; 129 assert(info.type == LFS_TYPE_DIR); 130 assert(strcmp(info.name, ".") == 0); 131 lfs_dir_read(&lfs, &dir, &info) => 1; 132 assert(info.type == LFS_TYPE_DIR); 133 assert(strcmp(info.name, "..") == 0); 136 lfs_dir_read(&lfs, &dir, &info) => 1; 137 assert(info.type == LFS_TYPE_DIR); 140 assert(strcmp(info.name, name) == 0); [all …]
|
D | test_interspersed.toml | 30 struct lfs_info info; 31 lfs_dir_read(&lfs, &dir, &info) => 1; 32 assert(strcmp(info.name, ".") == 0); 33 assert(info.type == LFS_TYPE_DIR); 34 lfs_dir_read(&lfs, &dir, &info) => 1; 35 assert(strcmp(info.name, "..") == 0); 36 assert(info.type == LFS_TYPE_DIR); 40 lfs_dir_read(&lfs, &dir, &info) => 1; 41 assert(strcmp(info.name, path) == 0); 42 assert(info.type == LFS_TYPE_REG); [all …]
|
D | test_relocations.toml | 33 struct lfs_info info; 35 lfs_dir_read(&lfs, &dir, &info) => 1; 36 lfs_dir_read(&lfs, &dir, &info) => 1; 40 lfs_dir_read(&lfs, &dir, &info) => 1; 41 strcmp(info.name, path) => 0; 43 lfs_dir_read(&lfs, &dir, &info) => 0; 60 struct lfs_info info; 62 lfs_dir_read(&lfs, &dir, &info) => 1; 63 lfs_dir_read(&lfs, &dir, &info) => 1; 67 lfs_dir_read(&lfs, &dir, &info) => 1; [all …]
|
D | test_superblocks.toml | 52 # test we can read superblock info through lfs_fs_stat 113 struct lfs_info info; 114 lfs_stat(&lfs, "dummy", &info) => 0; 115 assert(strcmp(info.name, "dummy") == 0); 116 assert(info.type == LFS_TYPE_REG); 127 struct lfs_info info; 128 lfs_stat(&lfs, "dummy", &info) => 0; 129 assert(strcmp(info.name, "dummy") == 0); 130 assert(info.type == LFS_TYPE_REG); 144 struct lfs_info info; [all …]
|
D | test_orphans.toml | 35 struct lfs_info info; 36 lfs_stat(&lfs, "parent/orphan", &info) => LFS_ERR_NOENT; 37 lfs_stat(&lfs, "parent/child", &info) => 0; 42 lfs_stat(&lfs, "parent/orphan", &info) => LFS_ERR_NOENT; 43 lfs_stat(&lfs, "parent/child", &info) => 0; 48 lfs_stat(&lfs, "parent/orphan", &info) => LFS_ERR_NOENT; 49 lfs_stat(&lfs, "parent/child", &info) => 0; 50 lfs_stat(&lfs, "parent/otherchild", &info) => 0; 55 lfs_stat(&lfs, "parent/orphan", &info) => LFS_ERR_NOENT; 56 lfs_stat(&lfs, "parent/child", &info) => 0; [all …]
|
D | test_evil.toml | 64 struct lfs_info info; 65 lfs_stat(&lfs, "dir_here", &info) => 0; 66 assert(strcmp(info.name, "dir_here") == 0); 67 assert(info.type == LFS_TYPE_DIR); 71 lfs_stat(&lfs, "dir_here/file_here", &info) => LFS_ERR_CORRUPT; 116 struct lfs_info info; 117 lfs_stat(&lfs, "file_here", &info) => 0; 118 assert(strcmp(info.name, "file_here") == 0); 119 assert(info.type == LFS_TYPE_REG); 120 assert(info.size == SIZE); [all …]
|
D | test_badblocks.toml | 59 struct lfs_info info; 60 lfs_stat(&lfs, (char*)buffer, &info) => 0; 61 info.type => LFS_TYPE_DIR; 139 struct lfs_info info; 140 lfs_stat(&lfs, (char*)buffer, &info) => 0; 141 info.type => LFS_TYPE_DIR; 218 struct lfs_info info; 219 lfs_stat(&lfs, (char*)buffer, &info) => 0; 220 info.type => LFS_TYPE_DIR;
|
D | test_exhaustion.toml | 85 struct lfs_info info; 86 lfs_stat(&lfs, path, &info) => 0; 174 struct lfs_info info; 176 lfs_stat(&lfs, path, &info) => 0; 273 struct lfs_info info; 275 lfs_stat(&lfs, path, &info) => 0; 370 struct lfs_info info; 372 lfs_stat(&lfs, path, &info) => 0; 463 struct lfs_info info; 465 lfs_stat(&lfs, path, &info) => 0;
|
D | test_entries.toml | 518 struct lfs_info info; 519 lfs_stat(&lfs, "hi1", &info) => LFS_ERR_NOENT; 543 lfs_stat(&lfs, "hi2", &info) => LFS_ERR_NOENT; 560 lfs_stat(&lfs, "hi3", &info) => LFS_ERR_NOENT; 570 lfs_stat(&lfs, "hi0", &info) => LFS_ERR_NOENT;
|
/littlefs-3.7.0-3.6.0/benches/ |
D | bench_dir.toml | 186 struct lfs_info info; 187 lfs_dir_read(&lfs, &dir, &info) => 1; 188 assert(info.type == LFS_TYPE_DIR); 189 assert(strcmp(info.name, ".") == 0); 190 lfs_dir_read(&lfs, &dir, &info) => 1; 191 assert(info.type == LFS_TYPE_DIR); 192 assert(strcmp(info.name, "..") == 0); 195 lfs_dir_read(&lfs, &dir, &info) => 1; 196 assert(info.type == LFS_TYPE_REG); 197 assert(strcmp(info.name, name) == 0); [all …]
|
/littlefs-3.7.0-3.6.0/scripts/ |
D | stack.py | 175 for k, info in graph: 177 info = dict(info) 178 m_ = f_pattern.match(info['label']) 187 _, _, _, targets = callgraph[info['title']] 188 callgraph[info['title']] = ( 191 info = dict(info) 192 _, _, _, targets = callgraph[info['sourcename']] 193 targets.add(info['targetname'])
|
/littlefs-3.7.0-3.6.0/ |
D | lfs.c | 1383 uint16_t id, struct lfs_info *info) { in lfs_dir_getinfo() argument 1386 strcpy(info->name, "/"); in lfs_dir_getinfo() 1387 info->type = LFS_TYPE_DIR; in lfs_dir_getinfo() 1392 LFS_MKTAG(LFS_TYPE_NAME, id, lfs->name_max+1), info->name); in lfs_dir_getinfo() 1397 info->type = lfs_tag_type3(tag); in lfs_dir_getinfo() 1408 info->size = ctz.size; in lfs_dir_getinfo() 1410 info->size = lfs_tag_size(tag); in lfs_dir_getinfo() 2719 static int lfs_dir_rawread(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info) { in lfs_dir_rawread() argument 2720 memset(info, 0, sizeof(*info)); in lfs_dir_rawread() 2724 info->type = LFS_TYPE_DIR; in lfs_dir_rawread() [all …]
|
D | lfs.h | 506 int lfs_stat(lfs_t *lfs, const char *path, struct lfs_info *info); 666 int lfs_dir_read(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info);
|
D | SPEC.md | 6 familiar with the design of the littlefs, for more info on how littlefs works 198 2. The valid bit alone is not enough info to know if the next commit has been 242 that there are multiple levels of types which break down into more info: 735 The move state in littlefs is used to store info about operations that could
|
D | Makefile | 62 CFLAGS += -fcallgraph-info=su
|