btrfs-progs: convert: access name_len and file_type the old way
authorDavid Sterba <dsterba@suse.cz>
Fri, 15 Mar 2013 16:10:45 +0000 (17:10 +0100)
committerDavid Sterba <dsterba@suse.cz>
Mon, 18 Mar 2013 18:33:42 +0000 (19:33 +0100)
commit35ba8fc39eb413189c9f762afceaa8e991eb56e7
treed974d22e66a36b846075a53f8a2312c7cf88694c
parent7854c8b667654502f69e05584729146a06827bc6
btrfs-progs: convert: access name_len and file_type the old way

We can't use ext2_dir_entry_2 typecast on big endian machines directly.
The bytes do not get converted during extX block read due to missing
flag EXT2_DIRBLOCK_V2_STRUCT passed down to ext2fs_read_dir_block4 from
ext2fs_process_dir_block. Fixing on the ext2 side needs updating callers
and (maybe) the library interfaces. We'll fix it on the convert side for
now.

CC: Jan Kara <jack@suse.cz>
Signed-off-by: David Sterba <dsterba@suse.cz>
convert.c