Lines Matching defs:rec_len
480 unsigned int rec_len;
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 = (rec_len & 65532) | ((rec_len & 3) << 16);
495 printf("rec_len = %d, name_len = %d\n", rec_len, dirent->name_len);
497 if (rec_len < 8 || (rec_len % 4) ||
498 (p+rec_len > end)) {
500 "bad rec_len (%d)\n"),
501 (unsigned long long) blk, rec_len);
502 rec_len = end - p;
503 (void) ext2fs_set_rec_len(fs, rec_len,
506 dirent->rec_len = ext2fs_swab16(dirent->rec_len);
510 if (dirent->name_len + 8U > rec_len) {
514 dirent->name_len = rec_len - 8;
518 len = rec_len - dirent->name_len - 8;