Home
last modified time | relevance | path

Searched refs:rec_len (Results 1 – 25 of 53) 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.c420 unsigned int name_len, rec_len; 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 p += rec_len; in ext2fs_dirent_swab_in2()
456 unsigned int rec_len; in ext2fs_dirent_swab_out2() local
463 retval = ext2fs_get_rec_len(fs, dirent, &rec_len); in ext2fs_dirent_swab_out2()
466 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()
Dunlink.c61 prev->rec_len += dirent->rec_len; in unlink_proc()
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 …]
Dext2_fs.h998 __u16 rec_len; /* Directory entry length */ member
1019 __u16 rec_len; /* Directory entry length */ member
1092 int rec_len = (name_len + EXT2_DIR_ENTRY_HEADER_LEN + EXT2_DIR_ROUND); in ext2fs_dir_rec_len() local
1094 rec_len &= ~EXT2_DIR_ROUND; in ext2fs_dir_rec_len()
1096 rec_len += EXT2_DIR_ENTRY_HASH_LEN; in ext2fs_dir_rec_len()
1097 return rec_len; in ext2fs_dir_rec_len()
/external/e2fsprogs/e2fsck/
Dpass2.c383 unsigned int rec_len, new_len; in check_dot() local
396 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_dot()
399 if (rec_len < 12) in check_dot()
400 rec_len = dirent->rec_len = 12; in check_dot()
416 if (rec_len > 12) { in check_dot()
417 new_len = rec_len - 12; in check_dot()
423 dirent->rec_len = 12; in check_dot()
447 unsigned int rec_len; in check_dotdot() local
458 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_dotdot()
461 if (rec_len < 12) in check_dotdot()
[all …]
Drehash.c130 unsigned int offset, dir_offset, rec_len, name_len; in fill_dir_block() local
172 (void) ext2fs_get_rec_len(fs, dirent, &rec_len); in fill_dir_block()
174 if (((dir_offset + rec_len) > fs->blocksize) || in fill_dir_block()
175 (rec_len < min_rec) || in fill_dir_block()
176 ((rec_len % 4) != 0) || in fill_dir_block()
177 (name_len + min_rec > rec_len)) { in fill_dir_block()
181 dir_offset += rec_len; in fill_dir_block()
474 unsigned int rec_len, prev_rec_len, left, slack, offset; in copy_dir_entries() local
507 rec_len = 0; in copy_dir_entries()
517 rec_len = ext2fs_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.c669 unsigned int i, rec_len, not_device = 0; in check_is_really_dir() local
729 de.rec_len = ext2fs_le16_to_cpu(de.rec_len); in check_is_really_dir()
783 retval = ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_is_really_dir()
789 (rec_len < 12) || in check_is_really_dir()
790 (rec_len % 4) || in check_is_really_dir()
791 (rec_len >= ctx->fs->blocksize - 12)) in check_is_really_dir()
794 dirent = (struct ext2_dir_entry *) (buf + rec_len); in check_is_really_dir()
795 retval = ext2fs_get_rec_len(ctx->fs, dirent, &rec_len); in check_is_really_dir()
801 (rec_len < 12) || in check_is_really_dir()
802 (rec_len % 4)) in check_is_really_dir()
/external/e2fsprogs/debugfs/
Dhtree.c45 unsigned int rec_len; in htree_dump_leaf_node() local
75 errcode = ext2fs_get_rec_len(fs, dirent, &rec_len); in htree_dump_leaf_node()
83 if (((offset + rec_len) > fs->blocksize) || in htree_dump_leaf_node()
84 (rec_len < 8) || in htree_dump_leaf_node()
85 ((rec_len % 4) != 0) || in htree_dump_leaf_node()
86 ((unsigned) thislen + 8 > rec_len)) { in htree_dump_leaf_node()
102 (dirent->rec_len == csum_size) && in htree_dump_leaf_node()
115 rec_len, name); in htree_dump_leaf_node()
124 offset += rec_len; in htree_dump_leaf_node()
427 unsigned int rec_len; in search_dir_block() local
[all …]
Dls.c164 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.c126 Py_ssize_t rec_len; /* length of record */ member
987 self->rec_len = 0; in join_reset()
1003 Py_ssize_t rec_len; in join_append_data() local
1007 if (!copy_phase && rec_len == PY_SSIZE_T_MAX) { \ in join_append_data()
1010 rec_len++; \ in join_append_data()
1016 self->rec[rec_len] = c;\ in join_append_data()
1020 rec_len = self->rec_len; in join_append_data()
1076 return rec_len; in join_append_data()
1086 join_check_rec_size(WriterObj *self, Py_ssize_t rec_len) in join_check_rec_size() argument
1088 assert(rec_len >= 0); in join_check_rec_size()
[all …]
/external/e2fsprogs/misc/
De2image.c496 unsigned int rec_len; in scramble_dir_block() local
500 for (p = buf; p < end-8; p += rec_len) { in scramble_dir_block()
502 rec_len = dirent->rec_len; in scramble_dir_block()
504 rec_len = ext2fs_swab16(rec_len); in scramble_dir_block()
506 if (rec_len == EXT4_MAX_REC_LEN || rec_len == 0) in scramble_dir_block()
507 rec_len = fs->blocksize; in scramble_dir_block()
509 rec_len = (rec_len & 65532) | ((rec_len & 3) << 16); in scramble_dir_block()
511 printf("rec_len = %d, name_len = %d\n", rec_len, dirent->name_len); in scramble_dir_block()
513 if (rec_len < 8 || (rec_len % 4) || in scramble_dir_block()
514 (p+rec_len > end)) { in scramble_dir_block()
[all …]
Dtune2fs.c563 unsigned int rec_len, name_size; in rewrite_dir_block() local
572 ctx->errcode = ext2fs_get_rec_len(fs, de, &rec_len); in rewrite_dir_block()
573 if (!ctx->errcode && !rec_len) in rewrite_dir_block()
577 de = (struct ext2_dir_entry *)(((char *)de) + rec_len); in rewrite_dir_block()
579 ctx->errcode = ext2fs_get_rec_len(fs, last_de, &rec_len); in rewrite_dir_block()
589 rec_len != sizeof(struct ext2_dir_entry_tail)) in rewrite_dir_block()
596 &rec_len); in rewrite_dir_block()
597 if (!rec_len) in rewrite_dir_block()
601 ext2fs_set_rec_len(fs, rec_len + in rewrite_dir_block()
614 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/e2fsprogs/doc/RelNotes/
Dv1.41.1416 E2fsck (and the libext2fs library) will not use the extended rec_len
/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/kernel-headers/original/uapi/linux/
Dnilfs2_ondisk.h302 __le16 rec_len; /* Directory entry length */ member

123