Lines Matching refs:rec_len
495 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()
516 (unsigned long long) blk, rec_len); in scramble_dir_block()
517 rec_len = end - p; in scramble_dir_block()
518 (void) ext2fs_set_rec_len(fs, rec_len, in scramble_dir_block()
521 dirent->rec_len = ext2fs_swab16(dirent->rec_len); in scramble_dir_block()
525 if (dirent->name_len + 8U > rec_len) { in scramble_dir_block()
529 dirent->name_len = rec_len - 8; in scramble_dir_block()
533 len = rec_len - dirent->name_len - 8; in scramble_dir_block()