Home
last modified time | relevance | path

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

123

/third_party/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()
Dswapfs.c419 unsigned int name_len, rec_len, left; in ext2fs_dirent_swab_in2() local
427 dirent->rec_len = ext2fs_swab16(dirent->rec_len); in ext2fs_dirent_swab_in2()
432 retval = ext2fs_get_rec_len(fs, dirent, &rec_len); in ext2fs_dirent_swab_in2()
435 if ((rec_len < 8) || (rec_len % 4)) { in ext2fs_dirent_swab_in2()
436 rec_len = 8; in ext2fs_dirent_swab_in2()
438 } else if (((name_len & 0xFF) + 8) > rec_len) in ext2fs_dirent_swab_in2()
440 if (rec_len > left) in ext2fs_dirent_swab_in2()
442 left -= rec_len; in ext2fs_dirent_swab_in2()
443 p += rec_len; in ext2fs_dirent_swab_in2()
459 unsigned int rec_len; in ext2fs_dirent_swab_out2() local
[all …]
Dlink.c193 unsigned int rec_len, min_rec_len, curr_rec_len; in link_proc() local
200 rec_len = EXT2_DIR_REC_LEN(ls->namelen); in link_proc()
215 (offset + (int) curr_rec_len + (int) next->rec_len <= blocksize)) { in link_proc()
216 curr_rec_len += next->rec_len; in link_proc()
230 if (curr_rec_len < (min_rec_len + rec_len)) in link_proc()
232 rec_len = curr_rec_len - min_rec_len; in link_proc()
237 dirent->rec_len); in link_proc()
241 ls->err = ext2fs_set_rec_len(ls->fs, rec_len, next); in link_proc()
251 if (curr_rec_len < rec_len) in link_proc()
324 int rec_len = 0; in dx_move_dirents() local
[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
273 rec_len = translate(d->rec_len); in __get_dirent_tail()
274 if ((rec_len < 8) || (rec_len & 0x03)) 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.c177 tdb_len_t rec_len; /* total byte length of record */ member
1118 rec.rec_len = size - sizeof(rec); in tdb_expand()
1821 rec.rec_len = 0; in tdb_recovery_allocate()
1831 if (recovery_head != 0 && *recovery_size <= rec.rec_len) { in tdb_recovery_allocate()
1833 *recovery_max_size = rec.rec_len; in tdb_recovery_allocate()
1919 rec->rec_len = recovery_max_size; in transaction_setup_recovery()
2332 totalsize = sizeof(*rec) + rec->rec_len; in update_tailer()
2354 right = offset + sizeof(*rec) + rec->rec_len; in tdb_free()
2369 rec->rec_len += sizeof(r) + r.rec_len; in tdb_free()
2406 rec->rec_len += leftsize; in tdb_free()
[all …]
Dunlink.c61 prev->rec_len += dirent->rec_len; in unlink_proc()
Dext2_fs.h1015 __u16 rec_len; /* Directory entry length */ member
1036 __u16 rec_len; /* Directory entry length */ member
1109 int rec_len = (name_len + EXT2_DIR_ENTRY_HEADER_LEN + EXT2_DIR_ROUND); in ext2fs_dir_rec_len() local
1111 rec_len &= ~EXT2_DIR_ROUND; in ext2fs_dir_rec_len()
1113 rec_len += EXT2_DIR_ENTRY_HASH_LEN; in ext2fs_dir_rec_len()
1114 return rec_len; in ext2fs_dir_rec_len()
/third_party/e2fsprogs/e2fsck/
Dpass2.c406 unsigned int rec_len, new_len; in check_dot() local
420 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_dot()
425 if (rec_len < 12) in check_dot()
426 rec_len = dirent->rec_len = 12; in check_dot()
442 if (rec_len > 12) { in check_dot()
443 new_len = rec_len - 12; in check_dot()
449 dirent->rec_len = 12; in check_dot()
485 unsigned int rec_len; in check_dotdot() local
497 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_dotdot()
502 if (rec_len < 12) in check_dotdot()
[all …]
Drehash.c131 unsigned int offset, dir_offset, rec_len, name_len; in fill_dir_block() local
173 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in fill_dir_block()
175 if (((dir_offset + rec_len) > fs->blocksize) || in fill_dir_block()
176 (rec_len < min_rec) || in fill_dir_block()
177 ((rec_len % 4) != 0) || in fill_dir_block()
178 (name_len + min_rec > rec_len)) { in fill_dir_block()
182 dir_offset += rec_len; in fill_dir_block()
545 unsigned int rec_len, prev_rec_len, left, slack, offset; in copy_dir_entries() local
578 rec_len = 0; in copy_dir_entries()
588 rec_len = ext2fs_dir_rec_len(ext2fs_dirent_name_len(ent->dir), in copy_dir_entries()
[all …]
Dmessage.c356 unsigned int rec_len, len; in expand_dirent_expression() local
369 if ((ext2fs_get_rec_len(fs, dirent, &rec_len) == 0) && in expand_dirent_expression()
370 (len > rec_len)) in expand_dirent_expression()
371 len = rec_len; in expand_dirent_expression()
375 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in expand_dirent_expression()
376 fprintf(f, "%u", rec_len); in expand_dirent_expression()
Dpass1.c660 unsigned int i, rec_len, not_device = 0; in check_is_really_dir() local
720 de.rec_len = ext2fs_le16_to_cpu(de.rec_len); in check_is_really_dir()
774 retval = ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_is_really_dir()
780 (rec_len < 12) || in check_is_really_dir()
781 (rec_len % 4) || in check_is_really_dir()
782 (rec_len >= ctx->fs->blocksize - 12)) in check_is_really_dir()
785 dirent = (struct ext2_dir_entry *) (buf + rec_len); in check_is_really_dir()
786 retval = ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_is_really_dir()
792 (rec_len < 12) || in check_is_really_dir()
793 (rec_len % 4)) in check_is_really_dir()
/third_party/e2fsprogs/debugfs/
Dhtree.c45 unsigned int rec_len; in htree_dump_leaf_node() local
77 errcode = ext2fs_get_rec_len(fs, dirent, &rec_len); in htree_dump_leaf_node()
85 if (((offset + rec_len) > fs->blocksize) || in htree_dump_leaf_node()
86 (rec_len < 8) || in htree_dump_leaf_node()
87 ((rec_len % 4) != 0) || in htree_dump_leaf_node()
88 ((unsigned) thislen + 8 > rec_len)) { in htree_dump_leaf_node()
104 (dirent->rec_len == csum_size) && in htree_dump_leaf_node()
117 rec_len, name); in htree_dump_leaf_node()
126 offset += rec_len; in htree_dump_leaf_node()
451 unsigned int rec_len; in search_dir_block() local
[all …]
Dls.c166 dirent->rec_len); in list_dir_proc()
/third_party/python/Modules/
D_csv.c129 Py_ssize_t rec_len; /* length of record */ member
1059 self->rec_len = 0; in join_reset()
1075 Py_ssize_t rec_len; in join_append_data() local
1079 if (!copy_phase && rec_len == PY_SSIZE_T_MAX) { \ in join_append_data()
1082 rec_len++; \ in join_append_data()
1088 self->rec[rec_len] = c;\ in join_append_data()
1092 rec_len = self->rec_len; in join_append_data()
1151 return rec_len; in join_append_data()
1161 join_check_rec_size(WriterObj *self, Py_ssize_t rec_len) in join_check_rec_size() argument
1163 assert(rec_len >= 0); in join_check_rec_size()
[all …]
/third_party/e2fsprogs/misc/
De2image.c498 unsigned int rec_len; in scramble_dir_block() local
502 for (p = buf; p < end-8; p += rec_len) { in scramble_dir_block()
504 rec_len = dirent->rec_len; in scramble_dir_block()
506 rec_len = ext2fs_swab16(rec_len); in scramble_dir_block()
508 if (rec_len == EXT4_MAX_REC_LEN || rec_len == 0) in scramble_dir_block()
509 rec_len = fs->blocksize; in scramble_dir_block()
511 rec_len = (rec_len & 65532) | ((rec_len & 3) << 16); in scramble_dir_block()
513 printf("rec_len = %d, name_len = %d\n", rec_len, dirent->name_len); in scramble_dir_block()
515 if (rec_len < 8 || (rec_len % 4) || in scramble_dir_block()
516 (p+rec_len > end)) { in scramble_dir_block()
[all …]
Dtune2fs.c574 unsigned int rec_len, name_size; in rewrite_dir_block() local
583 ctx->errcode = ext2fs_get_rec_len(fs, de, &rec_len); in rewrite_dir_block()
584 if (!ctx->errcode && !rec_len) in rewrite_dir_block()
588 de = (struct ext2_dir_entry *)(((char *)de) + rec_len); in rewrite_dir_block()
590 ctx->errcode = ext2fs_get_rec_len(fs, last_de, &rec_len); in rewrite_dir_block()
600 rec_len != sizeof(struct ext2_dir_entry_tail)) in rewrite_dir_block()
607 &rec_len); in rewrite_dir_block()
608 if (!rec_len) in rewrite_dir_block()
612 ext2fs_set_rec_len(fs, rec_len + in rewrite_dir_block()
625 rec_len == csum_size) { in rewrite_dir_block()
[all …]
/third_party/ffmpeg/libavformat/
Dty.c474 int32_t offset, int32_t rec_len) in check_sync_pes() argument
478 if (offset < 0 || offset + ty->pes_length > rec_len) { in check_sync_pes()
486 if (rec_len > 4) in check_sync_pes()
487 ff_dlog(s, "PES header not found in record of %"PRId32" bytes!\n", rec_len); in check_sync_pes()
491 memcpy(ty->pes_buffer, pkt->data + offset, rec_len - offset); in check_sync_pes()
492 ty->pes_buf_cnt = rec_len - offset; in check_sync_pes()
496 pkt->size -= rec_len - offset; in check_sync_pes()
506 memmove(pkt->data + offset, pkt->data + offset + ty->pes_length, rec_len - ty->pes_length); in check_sync_pes()
/third_party/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()
/third_party/e2fsprogs/tests/f_resize_inode_meta_bg/
Dexpect.117 Entry '' in ??? (2) has rec_len of 0, should be 12.
41 Entry '' in ??? (11) has rec_len of 0, should be 12.
/third_party/e2fsprogs/tests/f_dir_bad_csum/
Dexpect.115 Entry '' in ??? (15) has rec_len of 0, should be 12.
/third_party/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))
/third_party/mbedtls/library/
Dssl_msg.c4094 size_t rec_len; in ssl_load_buffered_record() local
4108 rec_len = hs->buffering.future_record.len; in ssl_load_buffered_record()
4130 if( rec_len > in_buf_len - (size_t)( ssl->in_hdr - ssl->in_buf ) ) in ssl_load_buffered_record()
4136 memcpy( ssl->in_hdr, rec, rec_len ); in ssl_load_buffered_record()
4137 ssl->in_left = rec_len; in ssl_load_buffered_record()

123