Whamcloud - gitweb
libext2fs: implement NLS framework support
authorGabriel Krisman Bertazi <krisman@collabora.co.uk>
Sat, 1 Dec 2018 00:39:05 +0000 (19:39 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 3 Dec 2018 04:36:20 +0000 (23:36 -0500)
commitab93e183180730b55ee1803978014fd4e623907b
treec3a343af1ca9184a45d8cd2a8458c04f8b09bf20
parent1378bb6515e98a27f0f5c220381d49d20544204e
libext2fs: implement NLS framework support

Basic NLS support is required in e2fsprogs because of fsck, which
needsto calculate dx hashes for encoding aware filesystems.  this patch
implements this infrastructure as well as ascii support.

We don't need to do all the dance of versioning as we do in the kernel,
because we know before-hand which encodings and versions we
support (those we know how to store in the sb), so it is simpler just to
create static tables.

This version only has support for ASCII; we'll add support for Unicode
later.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/Makefile.in
lib/ext2fs/nls.h [new file with mode: 0644]
lib/ext2fs/nls_ascii.c [new file with mode: 0644]