Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 4 of 4) sorted by relevance

/littlefs-latest/tests/
Dtest_superblocks.toml17 # make sure the magic string "littlefs" is always at offset=8
23 // check our magic string
25 // note if we lose power we may not have the magic string in both blocks!
26 // but we don't lose power in this test so we can assert the magic string
28 uint8_t magic[lfs_max(16, READ_SIZE)];
29 cfg->read(cfg, 0, 0, magic, lfs_max(16, READ_SIZE)) => 0;
30 assert(memcmp(&magic[8], "littlefs", 8) == 0);
31 cfg->read(cfg, 1, 0, magic, lfs_max(16, READ_SIZE)) => 0;
32 assert(memcmp(&magic[8], "littlefs", 8) == 0);
155 # make sure the magic string "littlefs" is always at offset=8
[all …]
Dtest_paths.toml4840 # superblock magic shouldn't appear as a file
4873 # superblock magic shouldn't conflict with files, that would be silly
/littlefs-latest/
DSPEC.md394 superblock type and an inline-struct tag. The name tag contains the magic
404 ^ ^ ^ ^- size (8) ^- magic string ("littlefs")
446 so that the magic string "littlefs" will always reside at offset=8 in a valid
Dlfs.c5359 char magic[8]; member
5673 if (err || memcmp(superblock.d.magic, "littlefs", 8) != 0) {