Home
last modified time | relevance | path

Searched refs:err (Results 1 – 20 of 20) sorted by relevance

/littlefs-3.7.0-3.6.0/
Dlfs.c98 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 …]
DREADME.md62 int err = lfs_mount(&lfs, &cfg);
66 if (err) {
/littlefs-3.7.0-3.6.0/bd/
Dlfs_filebd.c43 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 …]
Dlfs_emubd.c151 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/
Dtest_exhaustion.toml40 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 …]
Dtest_relocations.toml183 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 …]
Dtest_files.toml309 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 …]
Dtest_superblocks.toml37 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) {
Dtest_orphans.toml218 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);
Dtest_move.toml362 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 …]
Dtest_alloc.toml344 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 …]
Dtest_dirs.toml186 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);
Dtest_seek.toml334 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) {
Dtest_truncate.toml236 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) {
Dtest_interspersed.toml203 int err = lfs_mount(&lfs, cfg);
204 if (err) {
/littlefs-3.7.0-3.6.0/runners/
Dtest_runner.c516 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 …]
Dbench_runner.c500 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/
Dbench_dir.toml145 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);
Dbench_superblock.toml43 int err = lfs_mount(&lfs, cfg);
44 assert(err != 0);
/littlefs-3.7.0-3.6.0/scripts/
Dperf.py188 err = sp.call(perf + command, close_fds=False)
191 err = errno.EOWNERDEAD
206 return err