Home
last modified time | relevance | path

Searched refs:commit (Results 1 – 5 of 5) sorted by relevance

/littlefs-3.5.0-3.4.0/
Dlfs.c1441 static int lfs_dir_commitprog(lfs_t *lfs, struct lfs_commit *commit, in lfs_dir_commitprog() argument
1445 commit->block, commit->off , in lfs_dir_commitprog()
1451 commit->crc = lfs_crc(commit->crc, buffer, size); in lfs_dir_commitprog()
1452 commit->off += size; in lfs_dir_commitprog()
1458 static int lfs_dir_commitattr(lfs_t *lfs, struct lfs_commit *commit, in lfs_dir_commitattr() argument
1462 if (commit->off + dsize > commit->end) { in lfs_dir_commitattr()
1467 lfs_tag_t ntag = lfs_tobe32((tag & 0x7fffffff) ^ commit->ptag); in lfs_dir_commitattr()
1468 int err = lfs_dir_commitprog(lfs, commit, &ntag, sizeof(ntag)); in lfs_dir_commitattr()
1475 err = lfs_dir_commitprog(lfs, commit, buffer, dsize-sizeof(tag)); in lfs_dir_commitattr()
1492 err = lfs_dir_commitprog(lfs, commit, &dat, 1); in lfs_dir_commitattr()
[all …]
DSPEC.md56 | | | +-- 1st commit
63 | | | +-- 2nd commit
69 | | | +-- 3rd commit
83 commits. Each commit contains a variable number of metadata entries followed
88 aligned to our program block size. This means each commit may have padding for
137 tag contains a valid bit used to indicate if the tag and containing commit is
138 valid. This valid bit is the first bit found in the tag and the commit and can
153 | | | | +-- 1st commit
165 | | +-------------------+----| || +-- 2nd commit
175 | |---------+-------------------+ | |||| +-- 3rd commit
[all …]
DDESIGN.md364 commit A
383 operation. What we can do instead is group multiple entries into a commit
388 commit B and A'
418 the revision count. Because we can commit multiple entries at once, we can
420 loss. It's only when the commit's checksum is written that the compacted
424 commit B', need to compact
455 and then inserting the tail pointer during the commit to the original
459 commit C and D, need to split
815 commit to metadata pair
1823 In littlefs we can atomically commit to directories, but we can't create
[all …]
/littlefs-3.5.0-3.4.0/tests/
Dtest_orphans.toml3 if = 'LFS_PROG_SIZE <= 0x3fe' # only works with one crc per commit
13 // corrupt the child's most recent commit, this should be the update
Dtest_move.toml151 if = 'LFS_PROG_SIZE <= 0x3fe' # only works with one crc per commit
243 if = 'LFS_PROG_SIZE <= 0x3fe' # only works with one crc per commit
598 if = 'LFS_PROG_SIZE <= 0x3fe' # only works with one crc per commit
698 if = 'LFS_PROG_SIZE <= 0x3fe' # only works with one crc per commit
982 [[case]] # create + delete in same commit with neighbors
1128 [[case]] # create + delete + delete in same commit with neighbors