Searched refs:rec_len (Results 1 - 22 of 22) sorted by relevance

/external/e2fsprogs/lib/ext2fs/
H A Ddir_iterate.c28 unsigned int *rec_len)
30 unsigned int len = dirent->rec_len;
33 *rec_len = len;
35 *rec_len = fs->blocksize;
37 *rec_len = (len & 65532) | ((len & 3) << 16);
48 dirent->rec_len = len;
53 dirent->rec_len = EXT4_MAX_REC_LEN;
55 dirent->rec_len = 0;
57 dirent->rec_len = (len & 65532) | ((len >> 16) & 3);
74 unsigned int rec_len; local
26 ext2fs_get_rec_len(ext2_filsys fs, struct ext2_dir_entry *dirent, unsigned int *rec_len) argument
191 unsigned int rec_len, size; local
[all...]
H A Ddirblock.c28 unsigned int name_len, rec_len; local
41 dirent->rec_len = ext2fs_swab16(dirent->rec_len);
49 if ((retval = ext2fs_get_rec_len(fs, dirent, &rec_len)) != 0)
51 if ((rec_len < 8) || (rec_len % 4)) {
52 rec_len = 8;
54 } else if (((name_len & 0xFF) + 8) > rec_len)
56 p += rec_len;
81 unsigned int rec_len; local
[all...]
H A Dnewdir.c34 int rec_len; local
61 rec_len = fs->blocksize - EXT2_DIR_REC_LEN(1);
62 dir->rec_len = EXT2_DIR_REC_LEN(1);
67 dir = (struct ext2_dir_entry *) (buf + dir->rec_len);
68 retval = ext2fs_set_rec_len(fs, rec_len, dir);
H A Dlink.c41 unsigned int rec_len, min_rec_len, curr_rec_len; local
47 rec_len = EXT2_DIR_REC_LEN(ls->namelen);
60 (offset + (int) curr_rec_len + (int) next->rec_len <= blocksize)) {
61 curr_rec_len += next->rec_len;
75 if (curr_rec_len < (min_rec_len + rec_len))
77 rec_len = curr_rec_len - min_rec_len;
82 dirent->rec_len);
85 ls->err = ext2fs_set_rec_len(ls->fs, rec_len, next);
95 if (curr_rec_len < rec_len)
H A Dunlink.c60 prev->rec_len += dirent->rec_len;
H A Dtdb.c170 tdb_len_t rec_len; /* total byte length of record */ member in struct:list_struct
177 char record[rec_len];
1105 rec.rec_len = size - sizeof(rec);
1803 rec.rec_len = 0;
1813 if (recovery_head != 0 && *recovery_size <= rec.rec_len) {
1815 *recovery_max_size = rec.rec_len;
1901 rec->rec_len = recovery_max_size;
2313 totalsize = sizeof(*rec) + rec->rec_len;
2335 right = offset + sizeof(*rec) + rec->rec_len;
2350 rec->rec_len
2488 tdb_len_t rec_len; member in struct:__anon19677
[all...]
H A Dext2_fs.h767 __u16 rec_len; /* Directory entry length */ member in struct:ext2_dir_entry
780 __u16 rec_len; /* Directory entry length */ member in struct:ext2_dir_entry_2
H A Dext2fs.h1028 unsigned int *rec_len);
/external/e2fsprogs/debugfs/
H A Dhtree.c44 unsigned int rec_len; local
69 errcode = ext2fs_get_rec_len(fs, dirent, &rec_len);
72 "while getting rec_len for block %lu",
76 if (((offset + rec_len) > fs->blocksize) ||
77 (rec_len < 8) ||
78 ((rec_len % 4) != 0) ||
79 ((((unsigned) dirent->name_len & 0xFF)+8) > rec_len)) {
94 dirent->inode, hash, minor_hash, rec_len, name);
102 offset += rec_len;
371 unsigned int rec_len; local
[all...]
H A Dls.c111 dirent->rec_len, name);
/external/e2fsprogs/e2fsck/
H A Dpass2.c15 * - The length of the directory entry (rec_len) should be at
19 * should be less than (rec_len - 8).
352 unsigned int rec_len, new_len; local
365 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len);
368 if (rec_len < 12)
369 rec_len = dirent->rec_len = 12;
384 if (rec_len > 12) {
385 new_len = rec_len - 12;
391 dirent->rec_len
413 unsigned int rec_len; local
648 unsigned int rec_len, prev_rec_len; local
721 unsigned int rec_len; local
[all...]
H A Drehash.c91 unsigned int offset, dir_offset, rec_len; local
120 (void) ext2fs_get_rec_len(fs, dirent, &rec_len);
121 if (((dir_offset + rec_len) > fs->blocksize) ||
122 (rec_len < 8) ||
123 ((rec_len % 4) != 0) ||
124 (((dirent->name_len & 0xFF)+8U) > rec_len)) {
128 dir_offset += rec_len;
406 unsigned int rec_len, prev_rec_len, left, slack, offset; local
432 rec_len = 0;
442 rec_len
[all...]
H A Dmessage.c21 * %Dr <dirent>->rec_len
363 unsigned int rec_len, len; local
376 if ((ext2fs_get_rec_len(fs, dirent, &rec_len) == 0) &&
377 (len > rec_len))
378 len = rec_len;
382 (void) ext2fs_get_rec_len(fs, dirent, &rec_len);
383 fprintf(f, "%u", rec_len);
H A Dpass1.c407 unsigned int i, rec_len, not_device = 0; local
481 retval = ext2fs_get_rec_len(ctx->fs, dirent, &rec_len);
487 (rec_len < 12) ||
488 (rec_len % 4) ||
489 (rec_len >= ctx->fs->blocksize - 12))
492 dirent = (struct ext2_dir_entry *) (buf + rec_len);
493 retval = ext2fs_get_rec_len(ctx->fs, dirent, &rec_len);
499 (rec_len < 12) ||
500 (rec_len % 4))
/external/e2fsprogs/misc/
H A De2image.c480 unsigned int rec_len; local
484 for (p = buf; p < end-8; p += rec_len) {
486 rec_len = dirent->rec_len;
488 rec_len = ext2fs_swab16(rec_len);
490 if (rec_len == EXT4_MAX_REC_LEN || rec_len == 0)
491 rec_len = fs->blocksize;
493 rec_len
501 (unsigned long long) blk, rec_len); local
[all...]
/external/qemu/distrib/ext4_utils/src/
H A Dcontents.c62 u16 rec_len = 8 + ALIGN(name_len, 4); local
66 u32 end_block = (*offset + rec_len - 1) / info.block_size;
72 prev->rec_len += end_block * info.block_size - *offset;
78 dentry->rec_len = rec_len;
83 *offset += rec_len;
166 dentry->rec_len += len - offset;
H A Dext4.h536 __le16 rec_len; member in struct:ext4_dir_entry
543 __le16 rec_len; member in struct:ext4_dir_entry_2
H A Dext4fixup.c683 * didn't properly include the rest of the block in rec_len.
684 * Update rec_len on the previous entry to include the rest of
688 printf("fixing up short rec_len for diretory entry for %s\n", name);
690 prev_dirp->rec_len += leftover_space;
765 dirp = (struct ext4_dir_entry_2*)((char *)dirp + dirp->rec_len);
815 #if 0 // If we have to fix the directory rec_len issue, we can't use this check
/external/qemu/telephony/
H A Dsim_card.c176 byte_t rec_len; member in struct:__anon29354
217 file_size = file->linear.rec_count * file->linear.rec_len;
277 gsm_hex_from_byte( dst, file->linear.rec_len );
/external/e2fsprogs/ext2ed/
H A Ddir_com.c120 next = dir_entry_ptr->rec_len;
465 wprintw (show_pad,"inode = %-8lu rec_len = %-4lu name_len = %-3lu name = %s\n", /* Display the various fields */
466 dir_entry_ptr->inode,dir_entry_ptr->rec_len,dir_entry_ptr->name_len,temp);
620 if (strcasecmp ("rec_len",variable)==0) {
622 dir_entry_ptr->rec_len=(unsigned int) atol (value);
623 wprintw (command_win,"Variable %s set to %lu\n",variable,dir_entry_ptr->rec_len);refresh_command_win ();
650 wprintw (show_pad,"inode = %-8lu rec_len = %-4lu name_len = %-3lu name = %s\n",
651 dir_entry_ptr->inode,dir_entry_ptr->rec_len,dir_entry_ptr->name_len,temp);
H A Ddisk.c213 current_type->length=type_data.u.t_ext2_dir_entry.rec_len;
/external/libnfc-nci/src/nfc/ndef/
H A Dndef_utils.c272 UINT32 rec_len = 0; local
277 rec_len++;
281 rec_len++;
287 rec_len++;
292 rec_len += 4;
299 rec_len++;
305 rec_len += (payload_len + type_len + id_len);
307 return (rec_len);

Completed in 260 milliseconds