Home
last modified time | relevance | path

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

/third_party/toybox/toys/other/
Dblkid.c43 } static const fstypes[] = { variable
101 for (i=0; i<ARRAY_LEN(fstypes); i++) { in do_blkid()
105 if (fstypes[i].magic_offset > off+sizeof(toybuf)) { in do_blkid()
109 if (fstypes[i].magic_offset < off) continue; in do_blkid()
113 for (j = 0; j < fstypes[i].magic_len; j++) in do_blkid()
114 test += ((uint64_t)toybuf[j+fstypes[i].magic_offset-off])<<(8*j); in do_blkid()
115 if (test == fstypes[i].magic) break; in do_blkid()
118 if (i == ARRAY_LEN(fstypes)) { in do_blkid()
127 type = fstypes[i].name; in do_blkid()
142 len = fstypes[i].label_len; in do_blkid()
[all …]