Home
last modified time | relevance | path

Searched refs:state (Results 1 – 11 of 11) sorted by relevance

/littlefs-latest/scripts/
Dprettyasserts.py278 def pop(self, state): argument
279 self.off = state
282 state = p.push()
301 p.pop(state)
318 p.pop(state)
332 p.pop(state)
354 state = p.push()
358 p.pop(state)
379 state = p.push()
393 p.pop(state)
[all …]
Dtracebd.py208 def __new__(cls, state=0, *, argument
214 state
/littlefs-latest/
DSPEC.md239 global state. Even the CRCs used to mark the end of commits get their own tag.
643 but this may change if additional metadata pair state is added.
648 When this happens, littlefs sets the "sync" flag in the global state. How
704 Provides delta bits for global state entries.
706 littlefs has a concept of "global state". This is a small set of state that
709 The way this works is that the global state is stored as a set of deltas
710 distributed across the filesystem such that the global state can be found by
725 so any global state should be kept very small.
727 The size and format of each piece of global state depends on the type, which
728 is stored in the chunk field. Currently, the only global state is move state,
[all …]
Dlfs.c2245 int state = 0; in lfs_dir_relocatingcommit() local
2273 state = LFS_OK_DROPPED; in lfs_dir_relocatingcommit()
2354 state = lfs_dir_splittingcompact(lfs, dir, attrs, attrcount, in lfs_dir_relocatingcommit()
2356 if (state < 0) { in lfs_dir_relocatingcommit()
2357 return state; in lfs_dir_relocatingcommit()
2409 return state; in lfs_dir_relocatingcommit()
2437 int state = lfs_dir_relocatingcommit(lfs, &ldir, dir->pair, in lfs_dir_orphaningcommit() local
2439 if (state < 0) { in lfs_dir_orphaningcommit()
2440 return state; in lfs_dir_orphaningcommit()
2454 if (state == LFS_OK_DROPPED) { in lfs_dir_orphaningcommit()
[all …]
DDESIGN.md127 detect power-loss and fall back to the previous state by ignoring failed
1813 If we only had some sort of global state, then we could also store a flag and
1850 introduction of a mechanism called "global state".
1854 Global state is a small set of state that can be updated from _any_ metadata
1855 pair. Combining global state with metadata pairs' ability to update multiple
1859 How does global state work?
1861 Global state exists as a set of deltas that are distributed across the metadata
1862 pairs in the filesystem. The actual global state can be built out of these
1876 To update the global state from a metadata pair, we take the global state we
1879 the filesystem's global state.
[all …]
DREADME.md16 power is lost the filesystem will fall back to the last known good state.
103 The state of the littlefs is stored in the `lfs_t` type which is left up
/littlefs-latest/runners/
Dtest_runner.c563 uint32_t test_prng(uint32_t *state) { in test_prng() argument
566 uint32_t x = *state; in test_prng()
570 *state = x; in test_prng()
779 struct perm_count_state *state = data; in perm_count() local
784 state->total += 1; in perm_count()
790 state->filtered += 1; in perm_count()
1700 struct powerloss_exhaustive_state *state = c; in powerloss_exhaustive_branch() local
1703 (void**)&state->branches, in powerloss_exhaustive_branch()
1705 &state->branch_count, in powerloss_exhaustive_branch()
1706 &state->branch_capacity); in powerloss_exhaustive_branch()
[all …]
Dbench_runner.h78 uint32_t bench_prng(uint32_t *state);
80 #define BENCH_PRNG(state) bench_prng(state) argument
Dtest_runner.h71 uint32_t test_prng(uint32_t *state);
73 #define TEST_PRNG(state) test_prng(state) argument
Dbench_runner.c547 uint32_t bench_prng(uint32_t *state) { in bench_prng() argument
550 uint32_t x = *state; in bench_prng()
554 *state = x; in bench_prng()
753 struct perm_count_state *state = data; in perm_count() local
757 state->total += 1; in perm_count()
763 state->filtered += 1; in perm_count()
/littlefs-latest/tests/
Dtest_orphans.toml76 // we should have orphans at this state
113 // we should have orphans at this state
143 // we should have orphans at this state
185 // we should have orphans at this state