If we are using the hash seed and hash version from an open file
systenm, then we should also use the unsigned version of the hash
algorithm if the superblock as the unsigned hash flag set.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
hash_seed[3] = current_fs->super->s_hash_seed[3];
hash_version = current_fs->super->s_def_hash_version;
+ if (hash_version <= EXT2_HASH_TEA &&
+ current_fs->super->s_flags & EXT2_FLAGS_UNSIGNED_HASH)
+ hash_version += 3;
}
reset_getopt();