e2fsprogs/debugfs
Eric Sandeen 290ac0e321 print "mostly-printable" xattr strings in debugfs
Taking a cue from getfattr... if a string is "mostly"
printable characters, go ahead & print as a string,
and escape what's left over.

so we get:

Extended attributes stored in inode body:
  selinux = "system_u:object_r:root_t:s0\000" (28)

instead of:

Extended attributes stored in inode body:
  selinux = "73 79 73 74 65 6d 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a 72 6f 6f 74 5f 74 3a 73 30 00 " (28)

(selinux includes the trailing null in "len" so it
never prints as a string today)

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-02-18 22:11:20 -05:00
..
Makefile.in Fix Debian FTBFS problem caused by devmapper library using pthreads 2006-10-01 22:18:08 -04:00
debug_cmds.ct Add new debugfs command "set_block_group" 2007-04-13 15:56:00 -04:00
debugfs.8.in debugfs: allow the undel command reallocate without linking the inode 2008-01-01 11:43:41 -05:00
debugfs.c print "mostly-printable" xattr strings in debugfs 2008-02-18 22:11:20 -05:00
debugfs.h Handle large setb/testb/freeb commands in debugfs 2007-04-10 15:40:04 -04:00
dump.c debugfs: support > 2GB files for the dump and rdump commands 2007-04-02 18:30:46 -04:00
htree.c Fix gcc -Wall warnings, especially on 64-bit systems 2007-05-25 11:18:11 -04:00
icheck.c [COVERITY] Fix memory leak on error handling in the debugfs's icheck command 2007-03-21 19:16:11 -04:00
jfs_user.h Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the 2001-12-23 19:33:51 -05:00
logdump.c [COVERITY] Fix file handle leak in debugfs's logdump (in error case) 2007-03-23 23:01:09 -04:00
ls.c Fix gcc -Wall warnings, especially on 64-bit systems 2007-05-25 11:18:11 -04:00
lsdel.c debugfs: Change lsdel to use ext2fs_block_iterate2 it can find large files 2008-01-03 14:53:31 -05:00
ncheck.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
set_fields.c debugfs: Add #include <string.h> to pick up prototype for strcasecmp 2008-01-01 10:27:38 -05:00
unused.c Fix dump_usued segault in debugfs if used without open filesystem 2007-01-28 12:40:28 -05:00
util.c Fix gcc -Wall warnings, especially on 64-bit systems 2007-05-25 11:18:11 -04:00