Home
last modified time | relevance | path

Searched refs:rec_len (Results 1 – 25 of 37) 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 = fs->blocksize; in ext2fs_get_rec_len()
35 *rec_len = (len & 65532) | ((len & 3) << 16); in ext2fs_get_rec_len()
46 dirent->rec_len = len; in ext2fs_set_rec_len()
51 dirent->rec_len = EXT4_MAX_REC_LEN; in ext2fs_set_rec_len()
53 dirent->rec_len = 0; in ext2fs_set_rec_len()
55 dirent->rec_len = (len & 65532) | ((len >> 16) & 3); in ext2fs_set_rec_len()
72 unsigned int rec_len; in ext2fs_validate_entry() local
78 if (ext2fs_get_rec_len(fs, dirent, &rec_len)) in ext2fs_validate_entry()
[all …]
Ddirblock.c28 unsigned int name_len, rec_len; in ext2fs_read_dir_block2() local
41 dirent->rec_len = ext2fs_swab16(dirent->rec_len); in ext2fs_read_dir_block2()
49 if ((retval = ext2fs_get_rec_len(fs, dirent, &rec_len)) != 0) in ext2fs_read_dir_block2()
51 if ((rec_len < 8) || (rec_len % 4)) { in ext2fs_read_dir_block2()
52 rec_len = 8; in ext2fs_read_dir_block2()
54 } else if (((name_len & 0xFF) + 8) > rec_len) in ext2fs_read_dir_block2()
56 p += rec_len; in ext2fs_read_dir_block2()
75 unsigned int rec_len; in ext2fs_write_dir_block2() local
86 if ((retval = ext2fs_get_rec_len(fs, dirent, &rec_len)) != 0) in ext2fs_write_dir_block2()
88 if ((rec_len < 8) || in ext2fs_write_dir_block2()
[all …]
Dlink.c41 unsigned int rec_len, min_rec_len, curr_rec_len; in link_proc() local
44 rec_len = EXT2_DIR_REC_LEN(ls->namelen); in link_proc()
57 (offset + curr_rec_len + next->rec_len <= blocksize)) { in link_proc()
58 curr_rec_len += next->rec_len; in link_proc()
72 if (curr_rec_len < (min_rec_len + rec_len)) in link_proc()
74 rec_len = curr_rec_len - min_rec_len; in link_proc()
79 dirent->rec_len); in link_proc()
82 ls->err = ext2fs_set_rec_len(ls->fs, rec_len, next); in link_proc()
92 if (curr_rec_len < rec_len) in link_proc()
Dnewdir.c34 int rec_len; in ext2fs_new_dir_block() local
59 rec_len = fs->blocksize - EXT2_DIR_REC_LEN(1); in ext2fs_new_dir_block()
60 dir->rec_len = EXT2_DIR_REC_LEN(1); in ext2fs_new_dir_block()
65 dir = (struct ext2_dir_entry *) (buf + dir->rec_len); in ext2fs_new_dir_block()
66 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.c172 tdb_len_t rec_len; /* total byte length of record */ member
1107 rec.rec_len = size - sizeof(rec); in tdb_expand()
1805 rec.rec_len = 0; in tdb_recovery_allocate()
1815 if (recovery_head != 0 && *recovery_size <= rec.rec_len) { in tdb_recovery_allocate()
1817 *recovery_max_size = rec.rec_len; in tdb_recovery_allocate()
1903 rec->rec_len = recovery_max_size; in transaction_setup_recovery()
2315 totalsize = sizeof(*rec) + rec->rec_len; in update_tailer()
2337 right = offset + sizeof(*rec) + rec->rec_len; in tdb_free()
2352 rec->rec_len += sizeof(r) + r.rec_len; in tdb_free()
2389 rec->rec_len += leftsize; in tdb_free()
[all …]
Dext2_fs.h683 __u16 rec_len; /* Directory entry length */ member
696 __u16 rec_len; /* Directory entry length */ member
Dext2fs.h801 unsigned int *rec_len);
/external/e2fsprogs/misc/
De2image.c348 unsigned int rec_len; in scramble_dir_block() local
352 for (p = buf; p < end-8; p += rec_len) { in scramble_dir_block()
354 rec_len = dirent->rec_len; in scramble_dir_block()
356 rec_len = ext2fs_swab16(rec_len); in scramble_dir_block()
358 if (rec_len == EXT4_MAX_REC_LEN || rec_len == 0) in scramble_dir_block()
359 rec_len = fs->blocksize; in scramble_dir_block()
361 rec_len = (rec_len & 65532) | ((rec_len & 3) << 16); in scramble_dir_block()
363 printf("rec_len = %d, name_len = %d\n", rec_len, dirent->name_len); in scramble_dir_block()
365 if (rec_len < 8 || (rec_len % 4) || in scramble_dir_block()
366 (p+rec_len > end)) { in scramble_dir_block()
[all …]
/external/e2fsprogs/e2fsck/
Dpass2.c347 unsigned int rec_len, new_len; in check_dot() local
360 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_dot()
363 if (rec_len < 12) in check_dot()
364 rec_len = dirent->rec_len = 12; in check_dot()
379 if (rec_len > 12) { in check_dot()
380 new_len = rec_len - 12; in check_dot()
386 dirent->rec_len = 12; in check_dot()
407 int rec_len, problem = 0; in check_dotdot() local
418 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_dotdot()
421 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)+8) > rec_len)) { in fill_dir_block()
128 dir_offset += rec_len; in fill_dir_block()
406 unsigned int rec_len, prev_rec_len; in copy_dir_entries() local
442 rec_len = EXT2_DIR_REC_LEN(ent->dir->name_len & 0xFF); in copy_dir_entries()
443 if (rec_len > left) { in copy_dir_entries()
[all …]
Dmessage.c361 unsigned int rec_len; in expand_dirent_expression() local
377 if ((ext2fs_get_rec_len(fs, dirent, &rec_len) == 0) && in expand_dirent_expression()
378 (len > rec_len)) in expand_dirent_expression()
379 len = rec_len; in expand_dirent_expression()
383 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in expand_dirent_expression()
384 printf("%u", rec_len); in expand_dirent_expression()
Dpass1.c409 unsigned int i, rec_len, not_device = 0; in check_is_really_dir() local
482 retval = ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_is_really_dir()
488 (rec_len < 12) || in check_is_really_dir()
489 (rec_len % 4) || in check_is_really_dir()
490 (rec_len >= ctx->fs->blocksize - 12)) in check_is_really_dir()
493 dirent = (struct ext2_dir_entry *) (buf + rec_len); in check_is_really_dir()
494 retval = ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_is_really_dir()
500 (rec_len < 12) || in check_is_really_dir()
501 (rec_len % 4)) in check_is_really_dir()
/external/e2fsprogs/debugfs/
Dhtree.c44 unsigned int rec_len; in htree_dump_leaf_node() local
70 errcode = ext2fs_get_rec_len(fs, dirent, &rec_len); in htree_dump_leaf_node()
77 if (((offset + rec_len) > fs->blocksize) || in htree_dump_leaf_node()
78 (rec_len < 8) || in htree_dump_leaf_node()
79 ((rec_len % 4) != 0) || in htree_dump_leaf_node()
80 ((((unsigned) dirent->name_len & 0xFF)+8) > rec_len)) { in htree_dump_leaf_node()
95 hash, minor_hash, rec_len, name); in htree_dump_leaf_node()
103 offset += rec_len; in htree_dump_leaf_node()
397 unsigned int rec_len; in search_dir_block() local
413 errcode = ext2fs_get_rec_len(fs, dirent, &rec_len); in search_dir_block()
[all …]
Dls.c110 dirent->rec_len, name); in list_dir_proc()
/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/qemu/telephony/
Dsim_card.c176 byte_t rec_len; member
217 file_size = file->linear.rec_count * file->linear.rec_len; in sim_file_to_hex()
277 gsm_hex_from_byte( dst, file->linear.rec_len ); in sim_file_to_hex()
/external/kernel-headers/original/linux/
Dext2_fs.h512 __le16 rec_len; /* Directory entry length */ member
525 __le16 rec_len; /* Directory entry length */ member
Dext3_fs.h607 __le16 rec_len; /* Directory entry length */ member
620 __le16 rec_len; /* Directory entry length */ member
/external/grub/stage2/
Dfsys_ext2fs.c177 __u16 rec_len; /* Directory entry length */ member
750 loc += dp->rec_len; in ext2fs_dir()
/external/e2fsprogs/po/
De2fsprogs.pot34 #. %Dr <dirent> -> rec_len
1884 #. @-expanded: entry '%Dn' in %p (%i) has rec_len of %Dr, should be %N.\n
1885 msgid "@E has rec_len of %Dr, @s %N.\n"
Dzh_CN.po32 #. %Dr <dirent> -> rec_len
1871 #. @-expanded: entry '%Dn' in %p (%i) has rec_len of %Dr, should be %N.\n
1873 msgid "@E has rec_len of %Dr, @s %N.\n"
Dnl.po34 #. %Dr <dirent> -> rec_len
1967 #. @-expanded: entry '%Dn' in %p (%i) has rec_len of %Dr, should be %N.\n
1969 msgid "@E has rec_len of %Dr, @s %N.\n"
1970 msgstr "@E heeft een 'rec_len' van %Dr, zou %N moeten zijn.\n"

12