Whamcloud - gitweb
ext2fs: always attempt to load nls table when loading the filesystem
authorGabriel Krisman Bertazi <krisman@collabora.com>
Sun, 28 Apr 2019 19:06:27 +0000 (15:06 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 28 Apr 2019 19:06:27 +0000 (15:06 -0400)
commit0a8b31cab9ec0d42a877658bc9fadb48da3dc39b
tree77906915bda22df8a53e777798a4ec15e9f81703
parentc554f5558cb37cf640048d693be81bf3b9dff150
ext2fs: always attempt to load nls table when loading the filesystem

fs->encoding is exposed by the library, so we need to at least try to
load it when populating ext2_filsys.  Nevertheless, failing to do so
shouldn't be a fatal error, unless the user really needs that
information.  Thus, we ignore this failure during open/initialization
and let the user who needs it validate that field before trying to use
it.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/unix.c
lib/ext2fs/initialize.c
lib/ext2fs/openfs.c