]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: metadump: use printable characters for obfuscated names
authorAlex Elder <aelder@sgi.com>
Fri, 18 Feb 2011 21:21:02 +0000 (21:21 +0000)
committerAlex Elder <aelder@sgi.com>
Tue, 8 Mar 2011 18:04:52 +0000 (12:04 -0600)
commit7c3a9916aaa8eeb76329df710a50bc97080e9265
tree58c17ae5df021210f24472ffe2629af574815861
parent1167ddc4073c81da207e128cb99fc2cb8d78888d
xfsprogs: metadump: use printable characters for obfuscated names

There is probably not much need for an extreme amount of randomness
in the obfuscated names produced in metadumps.  Limit the character
set used for (most of) these names to printable characters rather
than every permittable byte.  The result makes metadumps a bit more
natural to work with.

I chose the set of all upper- and lower-case letters, digits, and
the dash and underscore for the alphabet.  It could easily be
expanded to include others (or reduced for that matter).

This change also avoids ever having to retry after picking an
unusable character.

Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
db/metadump.c