Whamcloud - gitweb
debugfs: fix several errors and add assertions in the set_fields command
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Sat, 20 Jun 2015 01:54:09 +0000 (21:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 20 Jun 2015 01:54:09 +0000 (21:54 -0400)
commitf7e37e8b95c84ef33cfb3d7f190cdd28ec6a5d25
tree2acc091bd44dc0a071965f1c32a3f23e9d7badb9
parenta6eeac1cebbdb35ba268e25587907f46c3010f59
debugfs: fix several errors and add assertions in the set_fields command

Fix copy-n-paste errors:
* remove duplicate "lastcheck" and "min_extra_isize"
* fix pointer for "first_error_line" and "last_error_line"
* remove superblock field "inodes_count" from inode fields
* add null-termination for mmp_fields

Add assertions for catching such errors in the future.
Mark true aliases with flag "FLAG_ALIAS" and suppress assert for them.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/Makefile.in
debugfs/set_fields.c