/littlefs-2.7.6/tests/ |
D | test_files.toml | 35 for (lfs_size_t b = 0; b < chunk; b++) { 36 buffer[b] = rand() & 0xff; 51 for (lfs_size_t b = 0; b < chunk; b++) { 52 assert(buffer[b] == (rand() & 0xff)); 74 for (lfs_size_t b = 0; b < chunk; b++) { 75 buffer[b] = rand() & 0xff; 90 for (lfs_size_t b = 0; b < chunk; b++) { 91 assert(buffer[b] == (rand() & 0xff)); 104 for (lfs_size_t b = 0; b < chunk; b++) { 105 buffer[b] = rand() & 0xff; [all …]
|
D | test_attrs.toml | 14 lfs_setattr(&lfs, "hello", 'B', "bbbbbb", 6) => 0; 17 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 6; 23 lfs_setattr(&lfs, "hello", 'B', "", 0) => 0; 25 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 0; 31 lfs_removeattr(&lfs, "hello", 'B') => 0; 33 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => LFS_ERR_NOATTR; 39 lfs_setattr(&lfs, "hello", 'B', "dddddd", 6) => 0; 41 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 6; 47 lfs_setattr(&lfs, "hello", 'B', "eee", 3) => 0; 49 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 3; [all …]
|
D | test_exhaustion.toml | 182 for (lfs_block_t b = 0; b < LFS_BLOCK_COUNT; b++) { 183 lfs_testbd_setwear(&cfg, b, 184 (b < run_block_count[run]) ? 0 : LFS_ERASE_CYCLES) => 0; 274 for (lfs_block_t b = 0; b < LFS_BLOCK_COUNT; b++) { 275 lfs_testbd_setwear(&cfg, b, 276 (b < run_block_count[run]) ? 0 : LFS_ERASE_CYCLES) => 0; 436 for (lfs_block_t b = 2; b < LFS_BLOCK_COUNT; b++) { 437 lfs_testbd_wear_t wear = lfs_testbd_getwear(&cfg, b); 438 printf("%08x: wear %d\n", b, wear); 455 for (lfs_block_t b = 2; b < LFS_BLOCK_COUNT; b++) { [all …]
|
D | test_move.toml | 6 lfs_mkdir(&lfs, "b") => 0; 45 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT; 80 lfs_mkdir(&lfs, "b") => 0; 136 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT; 156 lfs_mkdir(&lfs, "b") => 0; 235 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT; 248 lfs_mkdir(&lfs, "b") => 0; 325 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT; 348 err = lfs_mkdir(&lfs, "b"); 366 if (lfs_stat(&lfs, "b/hello", &info) == 0) { [all …]
|
/littlefs-2.7.6/ |
D | DESIGN.md | 91 | A | | B | 120 | C | new B | new A | | A | B | 159 | A | | B | 200 .--------. .--------. | new B | 201 | A | | B | | | 264 | A'| B'| | 269 A v B v 342 | B | A''' | <- most recent A 388 commit B and A' 396 | | | | | B | | [all …]
|
D | lfs_util.h | 134 static inline uint32_t lfs_max(uint32_t a, uint32_t b) { in lfs_max() argument 135 return (a > b) ? a : b; in lfs_max() 138 static inline uint32_t lfs_min(uint32_t a, uint32_t b) { in lfs_min() argument 139 return (a < b) ? a : b; in lfs_min() 188 // Find the sequence comparison of a and b, this is the distance 189 // between a and b ignoring overflow 190 static inline int lfs_scmp(uint32_t a, uint32_t b) { in lfs_scmp() argument 191 return (int)(unsigned)(a - b); in lfs_scmp()
|
D | .travis.yml | 79 STATUS="Passed, code size is ${CURR}B" 219 - git clone --depth 1 https://github.com/geky/littlefs-fuse -b v2 244 - make -B test 254 - git clone --depth 1 https://github.com/geky/littlefs-fuse -b v2 v2 255 - git clone --depth 1 https://github.com/geky/littlefs-fuse -b v1 v1 282 - make -B test 296 - make -B test
|
D | SPEC.md | 121 | tag AxB |---> xor -> tag B | tag AxB |---> xor -> tag A 123 | data B | | | data B | | 127 | tag BxC |---> xor -> tag C | tag BxC |---> xor -> tag B 151 | | tag AxB | data B | <--. | 189 ||'-- most recent B 338 .| super |->| super |->| super |->| super |->| file B | 431 || file B | || file E | || file H | || | || file K | || file N | 507 | B |<-| E |--| H |<-| K |--| N | | Q | 593 '->| dir B |->| dir B |->| dir C |
|
D | README.md | 155 | A'| B'| | 160 A v B v
|
D | lfs.c | 341 static inline void lfs_gstate_xor(lfs_gstate_t *a, const lfs_gstate_t *b) { in lfs_gstate_xor() argument 343 ((uint32_t*)a)[i] ^= ((const uint32_t*)b)[i]; in lfs_gstate_xor() 2195 lfs_off_t b = lfs->cfg->block_size - 2*4; in lfs_ctz_index() local 2196 lfs_off_t i = size / b; in lfs_ctz_index() 2201 i = (size - 4*(lfs_popc(i-1)+2)) / b; in lfs_ctz_index() 2202 *off = size - b*i - 4*lfs_popc(i); in lfs_ctz_index()
|
/littlefs-2.7.6/scripts/ |
D | readtree.py | 12 gstate = b'\0\0\0\0\0\0\0\0\0\0\0\0' 34 .ljust(args.block_size, b'\xff')) 43 if mdir.tail.size != 8 or mdir.tail.data == 8*b'\xff': 59 gstate = bytes((a or 0) ^ (b or 0) 60 for a,b in it.zip_longest(gstate, ngstate.data)) 106 struct.unpack('<HH', superblock[1].data[0:4].ljust(4, b'\xff')))) 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'))
|
D | readmdir.py | 99 return struct.unpack('b', struct.pack('B', self.chunk))[0] 317 .ljust(args.block_size, b'\xff')) 324 if mdir.tail.size != 8 or mdir.tail.data == 8*b'\xff': 330 ', '.join('%#x' % b 331 for b in [args.block1, args.block2] 332 if b is not None),
|
D | prefix.py | 22 name, count1 = re.subn('\\b'+from_prefix, to_prefix, name) 23 name, count2 = re.subn('\\b'+from_prefix.upper(), to_prefix.upper(), name) 24 name, count3 = re.subn('\\B-D'+from_prefix.upper(),
|
D | readblock.py | 9 .ljust(args.block_size, b'\xff'))
|
D | test.py | 236 '-ex', 'b %s:%d' % (self.suite.path, self.code_lineno), 761 parser.add_argument('-b', '--build', action='store_true',
|