Home
last modified time | relevance | path

Searched +full:- +full:m (Results 1 – 13 of 13) sorted by relevance

/littlefs-2.7.6/scripts/
Dexplode_asserts.py188 'op': ['strcmp', 'memcmp', '->'],
211 m = p.search(data)
212 if m:
213 if m.start() > 0:
214 tokens.append((None, data[:m.start()]))
215 tokens.append((m.lastgroup, m.group()))
216 data = data[m.end():]
227 self.m = token[1]
228 return self.m
229 self.m = None
[all …]
Dtest.py27 ./scripts/explode_asserts.py $$< -o $$@
31 -include tests/*.d
35 $(CC) $(CFLAGS) $^ $(LFLAGS) -o $@
50 'LFS_BLOCK_CYCLES': -1,
97 PASS = '\033[32m✓\033[0m'
98 FAIL = '\033[31m✗\033[0m'
217 print('truncate --size=0', disk)
223 # simulate power-loss after n cycles?
231 ncmd.extend(['-ex', 'r'])
233 ncmd.extend(['-ex', 'up 2'])
[all …]
Dreadtree.py21 for m in it.chain((m for d in dirs for m in d), mdirs):
22 if set(m.blocks) == set(tail):
24 cycle = m.blocks
35 blocks[id(data[-1])] = block
107 print("%-47s%s" % ("littlefs v%s.%s" % version,
130 ' -> {%#x, %#x}' % struct.unpack('<II', mdir.tail.data)
144 ' ' if j == len(dir)-1 else
145 'v' if k == len(lines)-1 else
177 parser.add_argument('-l', '--log', action='store_true',
179 parser.add_argument('-a', '--all', action='store_true',
[all …]
Dreadmdir.py123 mask = 0x7ff & ~((1 << prefix)-1)
128 type, prefix//4, self.type & ((1 << prefix)-1))
182 while len(block) - off >= 4:
240 return not ((other.rev - self.rev) & 0x80000000)
258 tag.id <= gtag.id - gdiff):
259 if tag.is_('create') and tag.id == gtag.id - gdiff:
266 (int(gmask) & int(gtag.chid(gtag.id - gdiff)))):
276 f.write("%-8s %-8s %-13s %4s %4s" % (
283 f.write("%08x: %08x %-13s %4s %4s" % (
287 f.write(" %-23s %-8s\n" % (
[all …]
/littlefs-2.7.6/
Dlfs.c5 * SPDX-License-Identifier: BSD-3-Clause
10 #define LFS_BLOCK_NULL ((lfs_block_t)-1)
11 #define LFS_BLOCK_INLINE ((lfs_block_t)-2)
18 rcache->block = LFS_BLOCK_NULL; in lfs_cache_drop()
23 memset(pcache->buffer, 0xff, lfs->cfg->cache_size); in lfs_cache_zero()
24 pcache->block = LFS_BLOCK_NULL; in lfs_cache_zero()
32 if (block >= lfs->cfg->block_count || in lfs_bd_read()
33 off+size > lfs->cfg->block_size) { in lfs_bd_read()
40 if (pcache && block == pcache->block && in lfs_bd_read()
41 off < pcache->off + pcache->size) { in lfs_bd_read()
[all …]
DMakefile16 override CFLAGS += -O0 -g3
18 override CFLAGS += -Os
21 override CFLAGS += -m$(WORD)
24 override CFLAGS += -DLFS_YES_TRACE
26 override CFLAGS += -I.
27 override CFLAGS += -std=c99 -Wall -pedantic
28 override CFLAGS += -Wextra -Wshadow -Wjump-misses-init -Wundef
29 # Remove missing-field-initializers because of GCC bug
30 override CFLAGS += -Wno-missing-field-initializers
33 override TFLAGS += -v
[all …]
Dlfs.h5 * SPDX-License-Identifier: BSD-3-Clause
22 // Major (top-nibble), incremented on backwards incompatible changes
23 // Minor (bottom-nibble), incremented on feature additions
28 // Version of On-disk data structures
29 // Major (top-nibble), incremented on backwards incompatible changes
30 // Minor (bottom-nibble), incremented on feature additions
73 LFS_ERR_IO = -5, // Error during device operation
74 LFS_ERR_CORRUPT = -84, // Corrupted
75 LFS_ERR_NOENT = -2, // No directory entry
76 LFS_ERR_EXIST = -17, // Entry already exists
[all …]
D.travis.yml4 - CFLAGS=-Werror
5 - MAKEFLAGS=-j
11 - $HOME/.cache/apt
14 _: &install-common
16 - sudo apt-get install python3 python3-pip
17 - sudo pip3 install toml
18 # setup a ram-backed disk to speed up reentrant tests
19 - mkdir disks
20 - sudo mount -t tmpfs -o size=100m tmpfs disks
21 - export TFLAGS="$TFLAGS --disk=disks/disk"
[all …]
DREADME.md3 A little fail-safe filesystem designed for microcontrollers.
6 | | | .---._____
7 .-----. | |
8 --|o |---| littlefs |
9 --| |---| |
10 '-----' '----------'
14 **Power-loss resilience** - littlefs is designed to handle random power
15 failures. All file operations have strong copy-on-write guarantees and if
18 **Dynamic wear leveling** - littlefs is designed with flash in mind, and
22 **Bounded RAM/ROM** - littlefs is designed to work with a small amount of
[all …]
DSPEC.md10 | | | .---._____
11 .-----. | |
12 --|o |---| littlefs |
13 --| |---| |
14 '-----' '----------'
20 - littlefs is a block-based filesystem. The disk is divided into an array of
23 - Block pointers are stored in 32 bits, with the special value `0xffffffff`
26 - In addition to the logical block size (which usually matches the erase
31 - By default, all values in littlefs are stored in little-endian byte order.
49 The high-level layout of a metadata block is fairly simple:
[all …]
DDESIGN.md3 A little fail-safe filesystem designed for microcontrollers.
6 | | | .---._____
7 .-----. | |
8 --|o |---| littlefs |
9 --| |---| |
10 '-----' '----------'
16 filesystem that is resilient to power-loss and flash wear without using
19 This document covers the high-level design of littlefs, how it is different
21 low-level details covering every bit on disk, check out [SPEC.md](SPEC.md).
25 The embedded systems littlefs targets are usually 32-bit microcontrollers with
[all …]
/littlefs-2.7.6/tests/
Dtest_move.toml97 lfs_block_t block = dir.m.pair[0];
102 int off = LFS_BLOCK_SIZE-1;
104 off -= 1;
106 memset(&bbuffer[off-3], LFS_BLOCK_SIZE, 3);
173 lfs_block_t block = dir.m.pair[0];
178 int off = LFS_BLOCK_SIZE-1;
180 off -= 1;
182 memset(&bbuffer[off-3], LFS_BLOCK_SIZE, 3);
190 block = dir.m.pair[0];
194 off = LFS_BLOCK_SIZE-1;
[all …]
Dtest_orphans.toml14 // to the linked-list entry, which should orphan the orphan. Note this
18 lfs_block_t block = dir.m.pair[0];
23 int off = LFS_BLOCK_SIZE-1;
25 off -= 1;
27 memset(&bbuffer[off-3], LFS_BLOCK_SIZE, 3);
61 # TODO fix this case, caused by non-DAG trees
104 assert(strcmp(info.name, &full_path[2*(DEPTH-1)+1]) == 0);
108 for (int d = DEPTH-1; d >= 0; d--) {