Searched refs:gstate (Results 1 – 7 of 7) sorted by relevance
/littlefs-3.7.0-3.6.0/tests/ |
D | test_orphans.toml | 77 assert(lfs_gstate_hasorphans(&lfs.gstate)); 83 assert(lfs_gstate_hasorphans(&lfs.gstate)); 87 assert(!lfs_gstate_hasorphans(&lfs.gstate)); 114 assert(lfs_gstate_hasorphans(&lfs.gstate)); 120 assert(lfs_gstate_hasorphans(&lfs.gstate)); 124 assert(!lfs_gstate_hasorphans(&lfs.gstate)); 129 # test that we can persist gstate with lfs_fs_mkconsistent 144 assert(lfs_gstate_hasorphans(&lfs.gstate)); 150 assert(lfs_gstate_hasorphans(&lfs.gstate)); 154 assert(!lfs_gstate_hasorphans(&lfs.gstate)); [all …]
|
D | test_evil.toml | 207 // create an invalid gstate 219 // we try to fix the gstate
|
/littlefs-3.7.0-3.6.0/scripts/ |
D | readtree.py | 12 gstate = b'\0\0\0\0\0\0\0\0\0\0\0\0' 59 gstate = bytes((a or 0) ^ (b or 0) 60 for a,b in it.zip_longest(gstate, ngstate.data)) 112 print("gstate 0x%s" % ''.join('%02x' % c for c in gstate)) 113 tag = Tag(struct.unpack('<I', gstate[0:4].ljust(4, b'\xff'))[0]) 114 blocks = struct.unpack('<II', gstate[4:4+8].ljust(8, b'\xff'))
|
/littlefs-3.7.0-3.6.0/ |
D | lfs.c | 1365 lfs_gstate_t *gstate) { in lfs_dir_getgstate() argument 1376 lfs_gstate_xor(gstate, &temp); in lfs_dir_getgstate() 2003 lfs_gstate_xor(&delta, &lfs->gstate); in lfs_dir_compact() 2044 lfs->gdisk = lfs->gstate; in lfs_dir_compact() 2251 lfs_gstate_xor(&delta, &lfs->gstate); in lfs_dir_relocatingcommit() 2287 lfs->gdisk = lfs->gstate; in lfs_dir_relocatingcommit() 2464 if (lfs_gstate_hasmovehere(&lfs->gstate, pdir.pair)) { in lfs_dir_orphaningcommit() 2465 moveid = lfs_tag_id(lfs->gstate.tag); in lfs_dir_orphaningcommit() 2505 if (lfs_gstate_hasorphans(&lfs->gstate)) { in lfs_dir_orphaningcommit() 2516 if (lfs_gstate_hasmovehere(&lfs->gstate, pdir.pair)) { in lfs_dir_orphaningcommit() [all …]
|
D | DESIGN.md | 1873 0x00 --> xor ------------------> xor ------> xor --> gstate 0x12 1889 0x00 --> xor ----------------> xor -|------> xor --> gstate = 0x12 1892 change gstate to 0xab --> xor <------------|--------------------------' 1904 0x00 --> xor ------------------> xor ------> xor --> gstate = 0xab 1925 .--------. gstate = no move 1946 begin move, add reference in dir C, change gstate to have move 1948 .--------. gstate = moving file D in dir A (m1) 1970 complete move, remove reference in dir A, change gstate to no move 1972 .--------. gstate = no move (m1^~m1) 2002 .--------. gstate = moving file D in dir A (m1) [all …]
|
D | lfs.h | 429 lfs_gstate_t gstate; member
|
D | SPEC.md | 720 0x00 --> xor ------------------> xor ------> xor --> gstate = 0x12
|