Home
last modified time | relevance | path

Searched refs:rec_len (Results 1 – 25 of 36) sorted by relevance

12

/external/e2fsprogs/lib/ext2fs/
Ddir_iterate.c28 unsigned int *rec_len) in ext2fs_get_rec_len() argument
30 unsigned int len = dirent->rec_len; in ext2fs_get_rec_len()
33 *rec_len = len; in ext2fs_get_rec_len()
35 *rec_len = fs->blocksize; in ext2fs_get_rec_len()
37 *rec_len = (len & 65532) | ((len & 3) << 16); in ext2fs_get_rec_len()
48 dirent->rec_len = len; in ext2fs_set_rec_len()
53 dirent->rec_len = EXT4_MAX_REC_LEN; in ext2fs_set_rec_len()
55 dirent->rec_len = 0; in ext2fs_set_rec_len()
57 dirent->rec_len = (len & 65532) | ((len >> 16) & 3); in ext2fs_set_rec_len()
74 unsigned int rec_len; in ext2fs_validate_entry() local
[all …]
Ddirblock.c28 unsigned int name_len, rec_len; in ext2fs_read_dir_block3() local
41 dirent->rec_len = ext2fs_swab16(dirent->rec_len); in ext2fs_read_dir_block3()
49 if ((retval = ext2fs_get_rec_len(fs, dirent, &rec_len)) != 0) in ext2fs_read_dir_block3()
51 if ((rec_len < 8) || (rec_len % 4)) { in ext2fs_read_dir_block3()
52 rec_len = 8; in ext2fs_read_dir_block3()
54 } else if (((name_len & 0xFF) + 8) > rec_len) in ext2fs_read_dir_block3()
56 p += rec_len; in ext2fs_read_dir_block3()
81 unsigned int rec_len; in ext2fs_write_dir_block3() local
92 if ((retval = ext2fs_get_rec_len(fs, dirent, &rec_len)) != 0) in ext2fs_write_dir_block3()
94 if ((rec_len < 8) || in ext2fs_write_dir_block3()
[all …]
Dlink.c41 unsigned int rec_len, min_rec_len, curr_rec_len; in link_proc() local
47 rec_len = EXT2_DIR_REC_LEN(ls->namelen); in link_proc()
60 (offset + (int) curr_rec_len + (int) next->rec_len <= blocksize)) { in link_proc()
61 curr_rec_len += next->rec_len; in link_proc()
75 if (curr_rec_len < (min_rec_len + rec_len)) in link_proc()
77 rec_len = curr_rec_len - min_rec_len; in link_proc()
82 dirent->rec_len); in link_proc()
85 ls->err = ext2fs_set_rec_len(ls->fs, rec_len, next); in link_proc()
95 if (curr_rec_len < rec_len) in link_proc()
Dnewdir.c34 int rec_len; in ext2fs_new_dir_block() local
61 rec_len = fs->blocksize - EXT2_DIR_REC_LEN(1); in ext2fs_new_dir_block()
62 dir->rec_len = EXT2_DIR_REC_LEN(1); in ext2fs_new_dir_block()
67 dir = (struct ext2_dir_entry *) (buf + dir->rec_len); in ext2fs_new_dir_block()
68 retval = ext2fs_set_rec_len(fs, rec_len, dir); in ext2fs_new_dir_block()
Dunlink.c60 prev->rec_len += dirent->rec_len; in unlink_proc()
Dtdb.c170 tdb_len_t rec_len; /* total byte length of record */ member
1105 rec.rec_len = size - sizeof(rec); in tdb_expand()
1803 rec.rec_len = 0; in tdb_recovery_allocate()
1813 if (recovery_head != 0 && *recovery_size <= rec.rec_len) { in tdb_recovery_allocate()
1815 *recovery_max_size = rec.rec_len; in tdb_recovery_allocate()
1901 rec->rec_len = recovery_max_size; in transaction_setup_recovery()
2313 totalsize = sizeof(*rec) + rec->rec_len; in update_tailer()
2335 right = offset + sizeof(*rec) + rec->rec_len; in tdb_free()
2350 rec->rec_len += sizeof(r) + r.rec_len; in tdb_free()
2387 rec->rec_len += leftsize; in tdb_free()
[all …]
Dext2_fs.h813 __u16 rec_len; /* Directory entry length */ member
826 __u16 rec_len; /* Directory entry length */ member
Dext2fs.h1033 unsigned int *rec_len);
/external/e2fsprogs/e2fsck/
Dpass2.c356 unsigned int rec_len, new_len; in check_dot() local
369 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_dot()
372 if (rec_len < 12) in check_dot()
373 rec_len = dirent->rec_len = 12; in check_dot()
388 if (rec_len > 12) { in check_dot()
389 new_len = rec_len - 12; in check_dot()
395 dirent->rec_len = 12; in check_dot()
417 unsigned int rec_len; in check_dotdot() local
428 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_dotdot()
431 if (rec_len < 12) in check_dotdot()
[all …]
Drehash.c91 unsigned int offset, dir_offset, rec_len; in fill_dir_block() local
120 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in fill_dir_block()
121 if (((dir_offset + rec_len) > fs->blocksize) || in fill_dir_block()
122 (rec_len < 8) || in fill_dir_block()
123 ((rec_len % 4) != 0) || in fill_dir_block()
124 (((dirent->name_len & 0xFF)+8U) > rec_len)) { in fill_dir_block()
128 dir_offset += rec_len; in fill_dir_block()
406 unsigned int rec_len, prev_rec_len, left, slack, offset; in copy_dir_entries() local
432 rec_len = 0; in copy_dir_entries()
442 rec_len = EXT2_DIR_REC_LEN(ent->dir->name_len & 0xFF); in copy_dir_entries()
[all …]
Dmessage.c363 unsigned int rec_len, len; in expand_dirent_expression() local
376 if ((ext2fs_get_rec_len(fs, dirent, &rec_len) == 0) && in expand_dirent_expression()
377 (len > rec_len)) in expand_dirent_expression()
378 len = rec_len; in expand_dirent_expression()
382 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in expand_dirent_expression()
383 fprintf(f, "%u", rec_len); in expand_dirent_expression()
Dpass1.c413 unsigned int i, rec_len, not_device = 0; in check_is_really_dir() local
487 retval = ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_is_really_dir()
493 (rec_len < 12) || in check_is_really_dir()
494 (rec_len % 4) || in check_is_really_dir()
495 (rec_len >= ctx->fs->blocksize - 12)) in check_is_really_dir()
498 dirent = (struct ext2_dir_entry *) (buf + rec_len); in check_is_really_dir()
499 retval = ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_is_really_dir()
505 (rec_len < 12) || in check_is_really_dir()
506 (rec_len % 4)) in check_is_really_dir()
/external/e2fsprogs/debugfs/
Dhtree.c44 unsigned int rec_len; in htree_dump_leaf_node() local
69 errcode = ext2fs_get_rec_len(fs, dirent, &rec_len); in htree_dump_leaf_node()
76 if (((offset + rec_len) > fs->blocksize) || in htree_dump_leaf_node()
77 (rec_len < 8) || in htree_dump_leaf_node()
78 ((rec_len % 4) != 0) || in htree_dump_leaf_node()
79 ((((unsigned) dirent->name_len & 0xFF)+8) > rec_len)) { in htree_dump_leaf_node()
94 dirent->inode, hash, minor_hash, rec_len, name); in htree_dump_leaf_node()
102 offset += rec_len; in htree_dump_leaf_node()
371 unsigned int rec_len; in search_dir_block() local
387 errcode = ext2fs_get_rec_len(fs, dirent, &rec_len); in search_dir_block()
[all …]
Dls.c111 dirent->rec_len, name); in list_dir_proc()
/external/e2fsprogs/misc/
De2image.c480 unsigned int rec_len; in scramble_dir_block() local
484 for (p = buf; p < end-8; p += rec_len) { in scramble_dir_block()
486 rec_len = dirent->rec_len; in scramble_dir_block()
488 rec_len = ext2fs_swab16(rec_len); in scramble_dir_block()
490 if (rec_len == EXT4_MAX_REC_LEN || rec_len == 0) in scramble_dir_block()
491 rec_len = fs->blocksize; in scramble_dir_block()
493 rec_len = (rec_len & 65532) | ((rec_len & 3) << 16); in scramble_dir_block()
495 printf("rec_len = %d, name_len = %d\n", rec_len, dirent->name_len); in scramble_dir_block()
497 if (rec_len < 8 || (rec_len % 4) || in scramble_dir_block()
498 (p+rec_len > end)) { in scramble_dir_block()
[all …]
/external/e2fsprogs/ext2ed/
Ddir_com.c120 next = dir_entry_ptr->rec_len; in search_dir_entries()
466 dir_entry_ptr->inode,dir_entry_ptr->rec_len,dir_entry_ptr->name_len,temp); in action_show()
622 dir_entry_ptr->rec_len=(unsigned int) atol (value); in type_dir___set()
623 …wprintw (command_win,"Variable %s set to %lu\n",variable,dir_entry_ptr->rec_len);refresh_command_w… in type_dir___set()
651 dir_entry_ptr->inode,dir_entry_ptr->rec_len,dir_entry_ptr->name_len,temp); in type_dir___set()
Ddisk.c213 current_type->length=type_data.u.t_ext2_dir_entry.rec_len; in load_type_data()
Dext2.descriptors379 __u16 rec_len; /* Directory entry length */
/external/libnfc-nci/src/nfc/ndef/
Dndef_utils.c272 UINT32 rec_len = 0; in NDEF_MsgGetRecLength() local
277 rec_len++; in NDEF_MsgGetRecLength()
281 rec_len++; in NDEF_MsgGetRecLength()
287 rec_len++; in NDEF_MsgGetRecLength()
292 rec_len += 4; in NDEF_MsgGetRecLength()
299 rec_len++; in NDEF_MsgGetRecLength()
305 rec_len += (payload_len + type_len + id_len); in NDEF_MsgGetRecLength()
307 return (rec_len); in NDEF_MsgGetRecLength()
/external/autotest/client/tests/aiostress/
Daio-stress.c98 long rec_len = 64 * 1024; variable
1342 rec_len = parse_size(optarg, 1024);
1459 …ize %luKB, depth %d, ios per iteration %d\n", file_size / (1024 * 1024), rec_len / 1024, depth, io…
1476 file_size - j * context_offset, rec_len,
1487 depth, rec_len, max_io_submit))
1492 if (setup_ious(&t[i], t[i].num_files, depth, rec_len, max_io_submit))
/external/toybox/toys/
De2fs.h78 uint16_t rec_len; // Directory entry length member
/external/e2fsprogs/po/
De2fsprogs.pot35 #. %Dr <dirent> -> rec_len
1972 #. @-expanded: entry '%Dn' in %p (%i) has rec_len of %Dr, should be %N.\n
1973 msgid "@E has rec_len of %Dr, @s %N.\n"
3649 msgid "Corrupt directory block %llu: bad rec_len (%d)\n"
Did.po37 #. %Dr <dirent> -> rec_len
2057 #. @-expanded: entry '%Dn' in %p (%i) has rec_len of %Dr, should be %N.\n
2059 msgid "@E has rec_len of %Dr, @s %N.\n"
2060 msgstr "@E memiliki rec_len dari %Dr, @s %N.\n"
Dit.po34 #. %Dr <dirent> -> rec_len
2116 #. @-expanded: entry '%Dn' in %p (%i) has rec_len of %Dr, should be %N.\n
2119 msgid "@E has rec_len of %Dr, @s %N.\n"
2120 msgstr "L'@E ha rec_len di %Dr, dovrebbe essere %N.\n"
Dzh_CN.po32 #. %Dr <dirent> -> rec_len
1963 #. @-expanded: entry '%Dn' in %p (%i) has rec_len of %Dr, should be %N.\n
1965 msgid "@E has rec_len of %Dr, @s %N.\n"

12