Home
last modified time | relevance | path

Searched full:s (Results 1 – 21 of 21) sorted by relevance

/littlefs-2.7.6/
Dlfs_util.h71 #define LFS_TRACE(fmt, ...) LOG_DBG("%s:%d:trace: " fmt, __FILE__, __LINE__, __VA_ARGS__)
74 printf("%s:%d:trace: " fmt "%s\n", __FILE__, __LINE__, __VA_ARGS__)
83 #define LFS_DEBUG(fmt, ...) LOG_DBG("%s:%d: " fmt, __FILE__, __LINE__, __VA_ARGS__)
86 printf("%s:%d:debug: " fmt "%s\n", __FILE__, __LINE__, __VA_ARGS__)
95 #define LFS_WARN(fmt, ...) LOG_WRN("%s:%d: " fmt, __FILE__, __LINE__, __VA_ARGS__)
98 printf("%s:%d:warn: " fmt "%s\n", __FILE__, __LINE__, __VA_ARGS__)
107 #define LFS_ERROR(fmt, ...) LOG_ERR("%s:%d: " fmt, __FILE__, __LINE__, __VA_ARGS__)
110 printf("%s:%d:error: " fmt "%s\n", __FILE__, __LINE__, __VA_ARGS__)
157 uint32_t s; in lfs_npw2()
159 s = (a > 0xffff) << 4; a >>= s; r |= s; in lfs_npw2()
[all …]
DMakefile13 ASM := $(SRC:.c=.s)
61 %.s: %.c
62 $(CC) -S $(CFLAGS) $< -o $@
DDESIGN.md38 To make the situation more annoying, it's very common for these embedded
54 used to store frequently updated metadata and cause a device's early death.
70 So, what's already out there? There are, of course, many different filesystems,
106 binding relationship of storage location and data removes the filesystem's
245 Let's say that our COW structure doesn't copy after a single write, but instead
254 mutually solve each other's limitations.
353 Error detection can be provided with a checksum, and in littlefs's case we
410 Compared to other filesystems, littlefs's garbage collector is relatively
420 loss. It's only when the commit's checksum is written that the compacted
508 collection), and ![s] static entries (entries that need to be copied during
[all …]
D.travis.yml65 OBJ="$(ls lfs*.c | sed 's/\.c/\.o/' | tr '\n' ' ')"
311 # to get past github's pagination api
314 | sed -n '/^Link/{s/.*<\(.*\)>; rel="last"/\1/;p;q0};$q1' \
338 $(git rev-parse --verify -q FETCH_HEAD | sed -e 's/^/-p /') \
352 printf "CHANGES\n%s\n\n" "$CHANGES"
Dlfs.c876 // update with what's found so far in lfs_dir_fetchmatch()
1498 // it's not worth the code size in lfs_dir_compact()
1543 // welp, we tried, if we ran out of space there's not much in lfs_dir_compact()
1910 LFS_TRACE("lfs_mkdir(%p, \"%s\")", (void*)lfs, path); in lfs_mkdir()
1968 // it's possible our predecessor has to be relocated, and if in lfs_mkdir()
1969 // our parent is our predecessor's predecessor, this could have in lfs_mkdir()
2009 LFS_TRACE("lfs_dir_open(%p, %p, \"%s\")", (void*)lfs, (void*)dir, path); in lfs_dir_open()
2386 LFS_TRACE("lfs_file_opencfg(%p, %p, \"%s\", %x, %p {" in lfs_file_opencfg()
2455 // try to load what's on disk, if it's inlined we'll fix it later in lfs_file_opencfg()
2539 LFS_TRACE("lfs_file_open(%p, %p, \"%s\", %x)", in lfs_file_open()
[all …]
DSPEC.md142 Here's a more complete example of metadata block containing 4 entries:
216 Before we go further, there's one important thing to note. These tags are
466 case, the file data is stored directly in the tag's data area.
535 file's CTZ skip-list.
549 the chunk field, and the user attribute itself can be found in the tag's data.
578 The metadata pair's tail pointer is used in littlefs for a linked-list
756 In addition, the CRC tag's chunk field contains a set of flags which can
DREADME.md30 Here's a simple example that updates a file named `boot_count` every time
123 [lfs.h](lfs.h), or an error returned by the user's block device operations.
Dlfs.h284 // write occurs atomically with update to the file's contents.
/littlefs-2.7.6/scripts/
Dtest.py125 return '%s#%d#%d (%s)' % (
127 '%s=%s' % (k, v) for k, v in self.defines.items()
130 return '%s#%d#%d' % (
133 return '%s#%d' % (
150 f.write('#define %s %s\n' % (k, v))
152 f.write('void test_case%d(%s) {' % (self.caseno, ','.join(
153 '\n'+8*' '+'__attribute__((unused)) intmax_t %s' % k
160 f.write(4*' '+'#line %d "%s"\n' % (self.code_lineno, self.suite.path))
171 f.write('#undef %s\n' % k)
190 if_ = if_.replace(k, '(%s)' % v)
[all …]
Dreadmdir.py127 return '%s %#0*x' % (
276 f.write("%-8s %-8s %-13s %4s %4s" % (
283 f.write("%08x: %08x %-13s %4s %4s" % (
287 f.write(" %-23s %-8s\n" % (
294 f.write(" %08x: %-47s %-16s\n" % (
329 print("mdir {%s} rev %d%s%s%s" % (
334 ' (was %s)' % ', '.join('%d' % m.rev for m in mdir.pair[1:])
Dexplode_asserts.py17 printf("%s:%d:assert: assert failed with ", file, line);
19 printf(", expected %s ", comp);
66 printf("%s", v ? "true" : "false");
87 const uint8_t *s = v;
90 if (s[i] >= ' ' && s[i] <= '~') {{
91 printf("%c", s[i]);
93 printf("\\\\x%02x", s[i]);
151 outf.write(re.sub('\s+', ' ',
153 outf.write(re.sub('\s+', ' ',
161 outf.write(re.sub('\s+', ' ',
[all …]
Dreadtree.py107 print("%-47s%s" % ("littlefs v%s.%s" % version,
112 print("gstate 0x%s" % ''.join('%02x' % c for c in gstate))
123 print("dir %s" % (json.dumps(dir[0].path)
127 print("mdir {%#x, %#x} rev %d (was %d)%s%s" % (
143 print("%s %s" % (
Dprefix.py55 print '%s: %d replacements' % (
56 '%s -> %s' % (oldname, newname) if namecount else oldname,
Dreadblock.py12 print("%-8s %-s" % ('off', 'data'))
/littlefs-2.7.6/tests/
Dtest_alloc.toml19 sprintf(path, "breakfast/%s", names[n]);
36 sprintf(path, "breakfast/%s", names[n]);
61 sprintf(path, "breakfast/%s", names[n]);
75 sprintf(path, "breakfast/%s", names[n]);
104 sprintf(path, "breakfast/%s", names[n]);
121 sprintf(path, "breakfast/%s", names[n]);
134 sprintf(path, "breakfast/%s", names[n]);
158 sprintf(path, "breakfast/%s", names[n]);
172 sprintf(path, "breakfast/%s", names[n]);
185 sprintf(path, "breakfast/%s", names[n]);
Dtest_evil.toml58 // test that accessing our bad dir fails, note there's a number
104 // test that accessing our bad file fails, note there's a number
165 // test that accessing our bad file fails, note there's a number
Dtest_orphans.toml13 // corrupt the child's most recent commit, this should be the update
Dtest_exhaustion.toml168 # of wear-leveling is that increasing a block device's space translates directly
Dtest_dirs.toml629 sprintf(path, "prickly-pear/%s", info.name);
/littlefs-2.7.6/bd/
Dlfs_filebd.c19 "\"%s\", " in lfs_filebd_createcfg()
46 "\"%s\")", in lfs_filebd_create()
Dlfs_testbd.c19 "\"%s\", " in lfs_testbd_createcfg()
75 "\"%s\")", in lfs_testbd_create()