On Wed, Oct 03, 2012 at 11:29:58AM -0700, Wade Cline wrote: > In this case, dir_iterate_proc() is being passed into > ext2_dir_iterate2() and is called from ext2fs_process_dir_block(), > not readdir(2). It looks like the main issue would be detecting if the > EXT2_FEATURE_INCOMPAT_FILETYPE flag is -unset- and manually > setting the file type to EXT2_FT_UNKNOWN (there appears to be a case for > handling EXT2_FT_UNKNOWN; so long as the file type is not set to an > undefined value it should be okay). EXT2_FT_UNKNOWN == DT_UNKNOWN == 0 Since we've always enforced that name_len < 256, the high 8 bits of name_len will always be zero, even if !EXT2_FEATURE_INCOMPAT_FILETYPE. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
