Lines Matching refs:rec_len
496 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()
517 (unsigned long long) blk, rec_len); in scramble_dir_block()
518 rec_len = end - p; in scramble_dir_block()
519 (void) ext2fs_set_rec_len(fs, rec_len, in scramble_dir_block()
522 dirent->rec_len = ext2fs_swab16(dirent->rec_len); in scramble_dir_block()
526 if (dirent->name_len + 8U > rec_len) { in scramble_dir_block()
530 dirent->name_len = rec_len - 8; in scramble_dir_block()
534 len = rec_len - dirent->name_len - 8; in scramble_dir_block()