Home
last modified time | relevance | path

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

/littlefs-3.5.0-3.4.0/
Dlfs.c99 int err = lfs->cfg->read(lfs->cfg, block, off, data, diff); in lfs_bd_read() local
100 if (err) { in lfs_bd_read()
101 return err; in lfs_bd_read()
120 int err = lfs->cfg->read(lfs->cfg, rcache->block, in lfs_bd_read() local
122 LFS_ASSERT(err <= 0); in lfs_bd_read()
123 if (err) { in lfs_bd_read()
124 return err; in lfs_bd_read()
164 int err = lfs->cfg->prog(lfs->cfg, pcache->block, in lfs_bd_flush() local
166 LFS_ASSERT(err <= 0); in lfs_bd_flush()
167 if (err) { in lfs_bd_flush()
[all …]
DREADME.md62 int err = lfs_mount(&lfs, &cfg);
66 if (err) {
/littlefs-3.5.0-3.4.0/bd/
Dlfs_filebd.c42 int err = -errno; in lfs_filebd_createcfg() local
43 LFS_FILEBD_TRACE("lfs_filebd_createcfg -> %d", err); in lfs_filebd_createcfg()
44 return err; in lfs_filebd_createcfg()
63 int err = lfs_filebd_createcfg(cfg, path, &defaults); in lfs_filebd_create() local
64 LFS_FILEBD_TRACE("lfs_filebd_create -> %d", err); in lfs_filebd_create()
65 return err; in lfs_filebd_create()
71 int err = close(bd->fd); in lfs_filebd_destroy() local
72 if (err < 0) { in lfs_filebd_destroy()
73 err = -errno; in lfs_filebd_destroy()
74 LFS_FILEBD_TRACE("lfs_filebd_destroy -> %d", err); in lfs_filebd_destroy()
[all …]
Dlfs_testbd.c57 int err = lfs_filebd_createcfg(cfg, path, &bd->u.file.cfg); in lfs_testbd_createcfg() local
58 LFS_TESTBD_TRACE("lfs_testbd_createcfg -> %d", err); in lfs_testbd_createcfg()
59 return err; in lfs_testbd_createcfg()
65 int err = lfs_rambd_createcfg(cfg, &bd->u.ram.cfg); in lfs_testbd_createcfg() local
66 LFS_TESTBD_TRACE("lfs_testbd_createcfg -> %d", err); in lfs_testbd_createcfg()
67 return err; in lfs_testbd_createcfg()
83 int err = lfs_testbd_createcfg(cfg, path, &defaults); in lfs_testbd_create() local
84 LFS_TESTBD_TRACE("lfs_testbd_create -> %d", err); in lfs_testbd_create()
85 return err; in lfs_testbd_create()
96 int err = lfs_filebd_destroy(cfg); in lfs_testbd_destroy() local
[all …]
Dlfs_rambd.c58 int err = lfs_rambd_createcfg(cfg, &defaults); in lfs_rambd_create() local
59 LFS_RAMBD_TRACE("lfs_rambd_create -> %d", err); in lfs_rambd_create()
60 return err; in lfs_rambd_create()
/littlefs-3.5.0-3.4.0/tests/
Dtest_exhaustion.toml36 err = lfs_file_close(&lfs, &file);
37 assert(err == 0 || err == LFS_ERR_NOSPC);
43 err = lfs_file_close(&lfs, &file);
44 assert(err == 0 || err == LFS_ERR_NOSPC);
45 if (err == LFS_ERR_NOSPC) {
118 err = lfs_file_close(&lfs, &file);
119 assert(err == 0 || err == LFS_ERR_NOSPC);
125 err = lfs_file_close(&lfs, &file);
126 assert(err == 0 || err == LFS_ERR_NOSPC);
127 if (err == LFS_ERR_NOSPC) {
[all …]
Dtest_superblocks.toml16 err = lfs_mount(&lfs, &cfg);
17 if (err) {
65 err = lfs_stat(&lfs, "dummy", &info);
66 assert(err == 0 || (err == LFS_ERR_NOENT && i == 0));
67 if (!err) {
95 err = lfs_mount(&lfs, &cfg);
96 if (err) {
103 err = lfs_stat(&lfs, "dummy", &info);
104 assert(err == 0 || (err == LFS_ERR_NOENT && i == 0));
105 if (!err) {
Dtest_relocations.toml158 err = lfs_mount(&lfs, &cfg);
159 if (err) {
180 err = lfs_mkdir(&lfs, path);
181 assert(!err || err == LFS_ERR_EXIST);
200 err = lfs_remove(&lfs, path);
201 assert(!err || err == LFS_ERR_NOTEMPTY);
220 err = lfs_mount(&lfs, &cfg);
221 if (err) {
243 err = lfs_mkdir(&lfs, path);
244 assert(!err || err == LFS_ERR_EXIST);
[all …]
Dtest_orphans.toml69 err = lfs_mount(&lfs, &cfg);
70 if (err) {
91 err = lfs_mkdir(&lfs, path);
92 assert(!err || err == LFS_ERR_EXIST);
111 err = lfs_remove(&lfs, path);
112 assert(!err || err == LFS_ERR_NOTEMPTY);
Dtest_files.toml293 err = lfs_mount(&lfs, &cfg);
294 if (err) {
299 err = lfs_file_open(&lfs, &file, "avacado", LFS_O_RDONLY);
300 assert(err == LFS_ERR_NOENT || err == 0);
301 if (err == 0) {
347 err = lfs_mount(&lfs, &cfg);
348 if (err) {
353 err = lfs_file_open(&lfs, &file, "avacado", LFS_O_RDONLY);
354 assert(err == LFS_ERR_NOENT || err == 0);
355 if (err == 0) {
[all …]
Dtest_move.toml341 err = lfs_mount(&lfs, &cfg);
342 if (err) {
346 err = lfs_mkdir(&lfs, "a");
347 assert(!err || err == LFS_ERR_EXIST);
348 err = lfs_mkdir(&lfs, "b");
349 assert(!err || err == LFS_ERR_EXIST);
350 err = lfs_mkdir(&lfs, "c");
351 assert(!err || err == LFS_ERR_EXIST);
352 err = lfs_mkdir(&lfs, "d");
353 assert(!err || err == LFS_ERR_EXIST);
[all …]
Dtest_dirs.toml161 err = lfs_mount(&lfs, &cfg);
162 if (err) {
169 err = lfs_mkdir(&lfs, path);
170 assert(err == 0 || err == LFS_ERR_EXIST);
175 err = lfs_remove(&lfs, path);
176 assert(err == 0 || err == LFS_ERR_NOENT);
387 err = lfs_mount(&lfs, &cfg);
388 if (err) {
401 err = lfs_remove(&lfs, path);
402 assert(err == 0 || err == LFS_ERR_NOENT);
Dtest_alloc.toml289 err = lfs_file_write(&lfs, &file, buffer, size);
290 if (err < 0) {
296 err => LFS_ERR_NOSPC;
433 err = lfs_file_write(&lfs, &file, buffer, size);
434 if (err < 0) {
440 err => LFS_ERR_NOSPC;
466 err = lfs_mkdir(&lfs, "exhaustiondir");
467 if (err != LFS_ERR_NOSPC) {
477 err => 0;
Dtest_seek.toml313 err = lfs_mount(&lfs, &cfg);
314 if (err) {
318 err = lfs_file_open(&lfs, &file, "kitty", LFS_O_RDONLY);
319 assert(!err || err == LFS_ERR_NOENT);
320 if (!err) {
Dtest_truncate.toml205 err = lfs_mount(&lfs, &cfg);
206 if (err) {
210 err = lfs_file_open(&lfs, &file, "baldy", LFS_O_RDONLY);
211 assert(!err || err == LFS_ERR_NOENT);
212 if (!err) {
Dtest_interspersed.toml183 err = lfs_mount(&lfs, &cfg);
184 if (err) {