Home
last modified time | relevance | path

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

123

/external/e2fsprogs/lib/ext2fs/
Ddir_iterate.c29 unsigned int *rec_len) in ext2fs_get_rec_len() argument
31 unsigned int len = dirent->rec_len; in ext2fs_get_rec_len()
34 *rec_len = len; in ext2fs_get_rec_len()
36 *rec_len = fs->blocksize; in ext2fs_get_rec_len()
38 *rec_len = (len & 65532) | ((len & 3) << 16); in ext2fs_get_rec_len()
49 dirent->rec_len = len; in ext2fs_set_rec_len()
54 dirent->rec_len = EXT4_MAX_REC_LEN; in ext2fs_set_rec_len()
56 dirent->rec_len = 0; in ext2fs_set_rec_len()
58 dirent->rec_len = (len & 65532) | ((len >> 16) & 3); in ext2fs_set_rec_len()
75 unsigned int rec_len; in ext2fs_validate_entry() local
[all …]
Dnewdir.c35 int rec_len; in ext2fs_new_dir_block() local
67 rec_len = (fs->blocksize - csum_size) - EXT2_DIR_REC_LEN(1); in ext2fs_new_dir_block()
68 dir->rec_len = EXT2_DIR_REC_LEN(1); in ext2fs_new_dir_block()
73 dir = (struct ext2_dir_entry *) (buf + dir->rec_len); in ext2fs_new_dir_block()
74 retval = ext2fs_set_rec_len(fs, rec_len, dir); in ext2fs_new_dir_block()
104 int rec_len; in ext2fs_new_dir_inline_data() local
113 rec_len = EXT4_MIN_INLINE_DATA_SIZE - EXT4_INLINE_DATA_DOTDOT_SIZE; in ext2fs_new_dir_inline_data()
114 retval = ext2fs_set_rec_len(fs, rec_len, dir); in ext2fs_new_dir_inline_data()
119 retval = ext2fs_dirent_swab_out2(fs, (char *)dir, rec_len, 0); in ext2fs_new_dir_inline_data()
Dlink.c42 unsigned int rec_len, min_rec_len, curr_rec_len; in link_proc() local
50 rec_len = EXT2_DIR_REC_LEN(ls->namelen); in link_proc()
65 (offset + (int) curr_rec_len + (int) next->rec_len <= blocksize)) { in link_proc()
66 curr_rec_len += next->rec_len; in link_proc()
114 if (curr_rec_len < (min_rec_len + rec_len)) in link_proc()
116 rec_len = curr_rec_len - min_rec_len; in link_proc()
121 dirent->rec_len); in link_proc()
125 ls->err = ext2fs_set_rec_len(ls->fs, rec_len, next); in link_proc()
135 if (curr_rec_len < rec_len) in link_proc()
Dswapfs.c417 unsigned int name_len, rec_len; in ext2fs_dirent_swab_in2() local
424 dirent->rec_len = ext2fs_swab16(dirent->rec_len); in ext2fs_dirent_swab_in2()
429 retval = ext2fs_get_rec_len(fs, dirent, &rec_len); in ext2fs_dirent_swab_in2()
432 if ((rec_len < 8) || (rec_len % 4)) { in ext2fs_dirent_swab_in2()
433 rec_len = 8; in ext2fs_dirent_swab_in2()
435 } else if (((name_len & 0xFF) + 8) > rec_len) in ext2fs_dirent_swab_in2()
437 p += rec_len; in ext2fs_dirent_swab_in2()
453 unsigned int rec_len; in ext2fs_dirent_swab_out2() local
460 retval = ext2fs_get_rec_len(fs, dirent, &rec_len); in ext2fs_dirent_swab_out2()
463 if ((rec_len < 8) || in ext2fs_dirent_swab_out2()
[all …]
Dcsum.c202 unsigned int rec_len; in __get_dx_countlimit() local
205 rec_len = translate(dirent->rec_len); in __get_dx_countlimit()
207 if (rec_len == fs->blocksize && translate(dirent->name_len) == 0) in __get_dx_countlimit()
209 else if (rec_len == 12) { in __get_dx_countlimit()
210 dp = (struct ext2_dir_entry *)(((char *)dirent) + rec_len); in __get_dx_countlimit()
211 rec_len = translate(dp->rec_len); in __get_dx_countlimit()
212 if (rec_len != fs->blocksize - 12) in __get_dx_countlimit()
262 unsigned int rec_len; in __get_dirent_tail() local
269 rec_len = translate(d->rec_len); in __get_dirent_tail()
270 while (rec_len && !(rec_len & 0x3)) { in __get_dirent_tail()
[all …]
Dinline_data.c280 unsigned int rec_len; in ext2fs_inline_data_convert_dir() local
299 rec_len = (fs->blocksize - csum_size) - EXT2_DIR_REC_LEN(1); in ext2fs_inline_data_convert_dir()
300 dir->rec_len = EXT2_DIR_REC_LEN(1); in ext2fs_inline_data_convert_dir()
305 dir = (struct ext2_dir_entry *) (bbuf + dir->rec_len); in ext2fs_inline_data_convert_dir()
306 dir->rec_len = EXT2_DIR_REC_LEN(2); in ext2fs_inline_data_convert_dir()
325 retval = ext2fs_get_rec_len(fs, dir, &rec_len); in ext2fs_inline_data_convert_dir()
328 offset += rec_len; in ext2fs_inline_data_convert_dir()
331 rec_len += fs->blocksize - csum_size - offset; in ext2fs_inline_data_convert_dir()
332 retval = ext2fs_set_rec_len(fs, rec_len, dir2); in ext2fs_inline_data_convert_dir()
Dtdb.c171 tdb_len_t rec_len; /* total byte length of record */ member
1110 rec.rec_len = size - sizeof(rec); in tdb_expand()
1808 rec.rec_len = 0; in tdb_recovery_allocate()
1818 if (recovery_head != 0 && *recovery_size <= rec.rec_len) { in tdb_recovery_allocate()
1820 *recovery_max_size = rec.rec_len; in tdb_recovery_allocate()
1906 rec->rec_len = recovery_max_size; in transaction_setup_recovery()
2318 totalsize = sizeof(*rec) + rec->rec_len; in update_tailer()
2340 right = offset + sizeof(*rec) + rec->rec_len; in tdb_free()
2355 rec->rec_len += sizeof(r) + r.rec_len; in tdb_free()
2392 rec->rec_len += leftsize; in tdb_free()
[all …]
Dunlink.c61 prev->rec_len += dirent->rec_len; in unlink_proc()
Dext2_fs.h977 __u16 rec_len; /* Directory entry length */ member
998 __u16 rec_len; /* Directory entry length */ member
/external/e2fsprogs/e2fsck/
Dpass2.c379 unsigned int rec_len, new_len; in check_dot() local
392 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_dot()
395 if (rec_len < 12) in check_dot()
396 rec_len = dirent->rec_len = 12; in check_dot()
412 if (rec_len > 12) { in check_dot()
413 new_len = rec_len - 12; in check_dot()
419 dirent->rec_len = 12; in check_dot()
443 unsigned int rec_len; in check_dotdot() local
454 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_dotdot()
457 if (rec_len < 12) in check_dotdot()
[all …]
Drehash.c115 unsigned int offset, dir_offset, rec_len, name_len; in fill_dir_block() local
150 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in fill_dir_block()
152 if (((dir_offset + rec_len) > fs->blocksize) || in fill_dir_block()
153 (rec_len < 8) || in fill_dir_block()
154 ((rec_len % 4) != 0) || in fill_dir_block()
155 (name_len + 8 > rec_len)) { in fill_dir_block()
159 dir_offset += rec_len; in fill_dir_block()
437 unsigned int rec_len, prev_rec_len, left, slack, offset; in copy_dir_entries() local
468 rec_len = 0; in copy_dir_entries()
478 rec_len = EXT2_DIR_REC_LEN(ext2fs_dirent_name_len(ent->dir)); in copy_dir_entries()
[all …]
Dmessage.c358 unsigned int rec_len, len; in expand_dirent_expression() local
371 if ((ext2fs_get_rec_len(fs, dirent, &rec_len) == 0) && in expand_dirent_expression()
372 (len > rec_len)) in expand_dirent_expression()
373 len = rec_len; in expand_dirent_expression()
377 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in expand_dirent_expression()
378 fprintf(f, "%u", rec_len); in expand_dirent_expression()
Dpass1.c667 unsigned int i, rec_len, not_device = 0; in check_is_really_dir() local
727 de.rec_len = ext2fs_le16_to_cpu(de.rec_len); in check_is_really_dir()
781 retval = ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_is_really_dir()
787 (rec_len < 12) || in check_is_really_dir()
788 (rec_len % 4) || in check_is_really_dir()
789 (rec_len >= ctx->fs->blocksize - 12)) in check_is_really_dir()
792 dirent = (struct ext2_dir_entry *) (buf + rec_len); in check_is_really_dir()
793 retval = ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_is_really_dir()
799 (rec_len < 12) || in check_is_really_dir()
800 (rec_len % 4)) in check_is_really_dir()
/external/e2fsprogs/debugfs/
Dhtree.c45 unsigned int rec_len; in htree_dump_leaf_node() local
74 errcode = ext2fs_get_rec_len(fs, dirent, &rec_len); in htree_dump_leaf_node()
82 if (((offset + rec_len) > fs->blocksize) || in htree_dump_leaf_node()
83 (rec_len < 8) || in htree_dump_leaf_node()
84 ((rec_len % 4) != 0) || in htree_dump_leaf_node()
85 ((unsigned) thislen + 8 > rec_len)) { in htree_dump_leaf_node()
100 (dirent->rec_len == csum_size) && in htree_dump_leaf_node()
113 rec_len, name); in htree_dump_leaf_node()
122 offset += rec_len; in htree_dump_leaf_node()
410 unsigned int rec_len; in search_dir_block() local
[all …]
Dls.c176 dirent->rec_len); in list_dir_proc()
/external/python/cpython2/Modules/
D_csv.c139 int rec_len; /* length of record */ member
974 self->rec_len = 0; in join_reset()
988 int i, rec_len; in join_append_data() local
993 if (!copy_phase && rec_len == INT_MAX) { \ in join_append_data()
996 rec_len++; \ in join_append_data()
1002 self->rec[rec_len] = c;\ in join_append_data()
1010 rec_len = self->rec_len; in join_append_data()
1078 return rec_len; in join_append_data()
1088 join_check_rec_size(WriterObj *self, int rec_len) in join_check_rec_size() argument
1093 assert(rec_len >= 0); in join_check_rec_size()
[all …]
/external/python/cpython3/Modules/
D_csv.c119 Py_ssize_t rec_len; /* length of record */ member
982 self->rec_len = 0; in join_reset()
998 Py_ssize_t rec_len; in join_append_data() local
1002 if (!copy_phase && rec_len == PY_SSIZE_T_MAX) { \ in join_append_data()
1005 rec_len++; \ in join_append_data()
1011 self->rec[rec_len] = c;\ in join_append_data()
1015 rec_len = self->rec_len; in join_append_data()
1071 return rec_len; in join_append_data()
1081 join_check_rec_size(WriterObj *self, Py_ssize_t rec_len) in join_check_rec_size() argument
1083 assert(rec_len >= 0); in join_check_rec_size()
[all …]
/external/e2fsprogs/misc/
De2image.c495 unsigned int rec_len; in scramble_dir_block() local
499 for (p = buf; p < end-8; p += rec_len) { in scramble_dir_block()
501 rec_len = dirent->rec_len; in scramble_dir_block()
503 rec_len = ext2fs_swab16(rec_len); in scramble_dir_block()
505 if (rec_len == EXT4_MAX_REC_LEN || rec_len == 0) in scramble_dir_block()
506 rec_len = fs->blocksize; in scramble_dir_block()
508 rec_len = (rec_len & 65532) | ((rec_len & 3) << 16); in scramble_dir_block()
510 printf("rec_len = %d, name_len = %d\n", rec_len, dirent->name_len); in scramble_dir_block()
512 if (rec_len < 8 || (rec_len % 4) || in scramble_dir_block()
513 (p+rec_len > end)) { in scramble_dir_block()
[all …]
Dtune2fs.c617 unsigned int rec_len, name_size; in rewrite_dir_block() local
626 ctx->errcode = ext2fs_get_rec_len(fs, de, &rec_len); in rewrite_dir_block()
627 if (!ctx->errcode && !rec_len) in rewrite_dir_block()
631 de = (struct ext2_dir_entry *)(((char *)de) + rec_len); in rewrite_dir_block()
633 ctx->errcode = ext2fs_get_rec_len(fs, last_de, &rec_len); in rewrite_dir_block()
643 rec_len != sizeof(struct ext2_dir_entry_tail)) in rewrite_dir_block()
650 &rec_len); in rewrite_dir_block()
651 if (!rec_len) in rewrite_dir_block()
655 ext2fs_set_rec_len(fs, rec_len + in rewrite_dir_block()
668 rec_len == csum_size) { in rewrite_dir_block()
[all …]
/external/e2fsprogs/ext2ed/
Ddir_com.c121 next = dir_entry_ptr->rec_len; in search_dir_entries()
467 dir_entry_ptr->inode,dir_entry_ptr->rec_len,dir_entry_ptr->name_len,temp); in action_show()
623 dir_entry_ptr->rec_len=(unsigned int) atol (value); in type_dir___set()
624 …wprintw (command_win,"Variable %s set to %lu\n",variable,dir_entry_ptr->rec_len);refresh_command_w… in type_dir___set()
652 dir_entry_ptr->inode,dir_entry_ptr->rec_len,dir_entry_ptr->name_len,temp); in type_dir___set()
Ddisk.c214 current_type->length=type_data.u.t_ext2_dir_entry.rec_len; in load_type_data()
/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/ltp/testcases/kernel/io/ltp-aiodio/
Daio-stress.c99 long rec_len = 64 * 1024; variable
1376 rec_len = parse_size(optarg, 1024);
1500 rec_len / 1024, depth, io_iter);
1525 file_size - j * context_offset, rec_len,
1536 depth, rec_len, max_io_submit)) {
1541 (&t[i], t[i].num_files, depth, rec_len, max_io_submit))
/external/e2fsprogs/doc/RelNotes/
Dv1.41.1416 E2fsck (and the libext2fs library) will not use the extended rec_len
/external/kernel-headers/original/uapi/linux/
Dnilfs2_ondisk.h302 __le16 rec_len; /* Directory entry length */ member

123