/littlefs-3.7.0-3.6.0/ |
D | lfs.c | 98 int err = lfs->cfg->read(lfs->cfg, block, off, data, diff); in lfs_bd_read() local 99 if (err) { in lfs_bd_read() 100 return err; in lfs_bd_read() 119 int err = lfs->cfg->read(lfs->cfg, rcache->block, in lfs_bd_read() local 121 LFS_ASSERT(err <= 0); in lfs_bd_read() 122 if (err) { in lfs_bd_read() 123 return err; in lfs_bd_read() 141 int err = lfs_bd_read(lfs, in lfs_bd_cmp() local 144 if (err) { in lfs_bd_cmp() 145 return err; in lfs_bd_cmp() [all …]
|
D | README.md | 62 int err = lfs_mount(&lfs, &cfg); 66 if (err) {
|
/littlefs-3.7.0-3.6.0/bd/ |
D | lfs_filebd.c | 43 int err = -errno; in lfs_filebd_create() local 44 LFS_FILEBD_TRACE("lfs_filebd_create -> %d", err); in lfs_filebd_create() 45 return err; in lfs_filebd_create() 55 int err = close(bd->fd); in lfs_filebd_destroy() local 56 if (err < 0) { in lfs_filebd_destroy() 57 err = -errno; in lfs_filebd_destroy() 58 LFS_FILEBD_TRACE("lfs_filebd_destroy -> %d", err); in lfs_filebd_destroy() 59 return err; in lfs_filebd_destroy() 85 int err = -errno; in lfs_filebd_read() local 86 LFS_FILEBD_TRACE("lfs_filebd_read -> %d", err); in lfs_filebd_read() [all …]
|
D | lfs_emubd.c | 151 int err = -errno; in lfs_emubd_create() local 152 LFS_EMUBD_TRACE("lfs_emubd_create -> %d", err); in lfs_emubd_create() 153 return err; in lfs_emubd_create() 175 int err = -errno; in lfs_emubd_create() local 176 LFS_EMUBD_TRACE("lfs_emubd_create -> %d", err); in lfs_emubd_create() 177 return err; in lfs_emubd_create() 250 int err = nanosleep(&(struct timespec){ in lfs_emubd_read() local 254 if (err) { in lfs_emubd_read() 255 err = -errno; in lfs_emubd_read() 256 LFS_EMUBD_TRACE("lfs_emubd_read -> %d", err); in lfs_emubd_read() [all …]
|
/littlefs-3.7.0-3.6.0/tests/ |
D | test_exhaustion.toml | 40 int err = lfs_file_close(&lfs, &file); 41 assert(err == 0 || err == LFS_ERR_NOSPC); 47 int err = lfs_file_close(&lfs, &file); 48 assert(err == 0 || err == LFS_ERR_NOSPC); 49 if (err == LFS_ERR_NOSPC) { 130 int err = lfs_file_close(&lfs, &file); 131 assert(err == 0 || err == LFS_ERR_NOSPC); 137 int err = lfs_file_close(&lfs, &file); 138 assert(err == 0 || err == LFS_ERR_NOSPC); 139 if (err == LFS_ERR_NOSPC) { [all …]
|
D | test_relocations.toml | 183 int err = lfs_mount(&lfs, cfg); 184 if (err) { 207 err = lfs_mkdir(&lfs, path); 208 assert(!err || err == LFS_ERR_EXIST); 229 err = lfs_remove(&lfs, path); 230 assert(!err || err == LFS_ERR_NOTEMPTY); 252 int err = lfs_mount(&lfs, cfg); 253 if (err) { 277 err = lfs_mkdir(&lfs, path); 278 assert(!err || err == LFS_ERR_EXIST); [all …]
|
D | test_files.toml | 309 int err = lfs_mount(&lfs, cfg); 310 if (err) { 317 err = lfs_file_open(&lfs, &file, "avacado", LFS_O_RDONLY); 318 assert(err == LFS_ERR_NOENT || err == 0); 319 if (err == 0) { 366 int err = lfs_mount(&lfs, cfg); 367 if (err) { 374 err = lfs_file_open(&lfs, &file, "avacado", LFS_O_RDONLY); 375 assert(err == LFS_ERR_NOENT || err == 0); 376 if (err == 0) { [all …]
|
D | test_superblocks.toml | 37 int err = lfs_mount(&lfs, cfg); 38 if (err) { 145 int err = lfs_stat(&lfs, "dummy", &info); 146 assert(err == 0 || (err == LFS_ERR_NOENT && i == 0)); 147 if (!err) { 179 int err = lfs_mount(&lfs, cfg); 180 if (err) { 188 err = lfs_stat(&lfs, "dummy", &info); 189 assert(err == 0 || (err == LFS_ERR_NOENT && i == 0)); 190 if (!err) {
|
D | test_orphans.toml | 218 int err = lfs_mount(&lfs, cfg); 219 if (err) { 242 err = lfs_mkdir(&lfs, path); 243 assert(!err || err == LFS_ERR_EXIST); 264 err = lfs_remove(&lfs, path); 265 assert(!err || err == LFS_ERR_NOTEMPTY);
|
D | test_move.toml | 362 int err = lfs_mount(&lfs, cfg); 363 if (err) { 367 err = lfs_mkdir(&lfs, "a"); 368 assert(!err || err == LFS_ERR_EXIST); 369 err = lfs_mkdir(&lfs, "b"); 370 assert(!err || err == LFS_ERR_EXIST); 371 err = lfs_mkdir(&lfs, "c"); 372 assert(!err || err == LFS_ERR_EXIST); 373 err = lfs_mkdir(&lfs, "d"); 374 assert(!err || err == LFS_ERR_EXIST); [all …]
|
D | test_alloc.toml | 344 int err; 346 err = lfs_file_write(&lfs, &file, buffer, size); 347 if (err < 0) { 353 err => LFS_ERR_NOSPC; 501 int err; 503 err = lfs_file_write(&lfs, &file, buffer, size); 504 if (err < 0) { 510 err => LFS_ERR_NOSPC; 538 err = lfs_mkdir(&lfs, "exhaustiondir"); 539 if (err != LFS_ERR_NOSPC) { [all …]
|
D | test_dirs.toml | 186 int err = lfs_mount(&lfs, cfg); 187 if (err) { 195 err = lfs_mkdir(&lfs, path); 196 assert(err == 0 || err == LFS_ERR_EXIST); 202 err = lfs_remove(&lfs, path); 203 assert(err == 0 || err == LFS_ERR_NOENT); 444 int err = lfs_mount(&lfs, cfg); 445 if (err) { 461 err = lfs_remove(&lfs, path); 462 assert(err == 0 || err == LFS_ERR_NOENT);
|
D | test_seek.toml | 334 int err = lfs_mount(&lfs, cfg); 335 if (err) { 341 err = lfs_file_open(&lfs, &file, "kitty", LFS_O_RDONLY); 342 assert(!err || err == LFS_ERR_NOENT); 343 if (!err) {
|
D | test_truncate.toml | 236 int err = lfs_mount(&lfs, cfg); 237 if (err) { 242 err = lfs_file_open(&lfs, &file, "baldy", LFS_O_RDONLY); 243 assert(!err || err == LFS_ERR_NOENT); 244 if (!err) {
|
D | test_interspersed.toml | 203 int err = lfs_mount(&lfs, cfg); 204 if (err) {
|
/littlefs-3.7.0-3.6.0/runners/ |
D | test_runner.c | 516 int err = fcntl(fd, F_SETFL, O_WRONLY | O_CREAT | O_APPEND); in test_trace() local 517 assert(!err); in test_trace() 522 int err = setvbuf(f, NULL, _IOFBF, in test_trace() local 524 assert(!err); in test_trace() 1368 int err = lfs_emubd_create(&cfg, &bdcfg); in run_powerloss_none() local 1369 if (err) { in run_powerloss_none() 1370 fprintf(stderr, "error: could not create block device: %d\n", err); in run_powerloss_none() 1386 err = lfs_emubd_destroy(&cfg); in run_powerloss_none() 1387 if (err) { in run_powerloss_none() 1388 fprintf(stderr, "error: could not destroy block device: %d\n", err); in run_powerloss_none() [all …]
|
D | bench_runner.c | 500 int err = fcntl(fd, F_SETFL, O_WRONLY | O_CREAT | O_APPEND); in bench_trace() local 501 assert(!err); in bench_trace() 506 int err = setvbuf(f, NULL, _IOFBF, in bench_trace() local 508 assert(!err); in bench_trace() 1340 int err = lfs_emubd_create(&cfg, &bdcfg); in perm_run() local 1341 if (err) { in perm_run() 1342 fprintf(stderr, "error: could not create block device: %d\n", err); in perm_run() 1364 err = lfs_emubd_destroy(&cfg); in perm_run() 1365 if (err) { in perm_run() 1366 fprintf(stderr, "error: could not destroy block device: %d\n", err); in perm_run()
|
/littlefs-3.7.0-3.6.0/benches/ |
D | bench_dir.toml | 145 int err = lfs_remove(&lfs, name); 146 assert(!err || err == LFS_ERR_NOENT); 227 int err = lfs_mkdir(&lfs, name); 228 assert(!err || err == LFS_ERR_EXIST); 262 int err = lfs_remove(&lfs, name); 263 assert(!err || err == LFS_ERR_NOENT);
|
D | bench_superblock.toml | 43 int err = lfs_mount(&lfs, cfg); 44 assert(err != 0);
|
/littlefs-3.7.0-3.6.0/scripts/ |
D | perf.py | 188 err = sp.call(perf + command, close_fds=False) 191 err = errno.EOWNERDEAD 206 return err
|