Whamcloud - gitweb
debugfs: improve dump_mmp handling
authorAndreas Dilger <adilger@dilger.ca>
Sun, 6 Mar 2016 00:38:32 +0000 (17:38 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Mar 2016 23:11:48 +0000 (18:11 -0500)
commit2fe6136c48610791de8bb4c8fcad536292ffe36e
tree4eadca06010247a024ae049e4f1a9029bd551b41
parent865dc0d7534ca881dbe1e9fc9fd95792e7f3f0ab
debugfs: improve dump_mmp handling

If MMP is not enabled on a filesystem (s_mmp_block == 0), print this
clearly rather than "MMP: block number beyond filesystem range".

Add an option to "debugfs dump_mmp" to specify the MMP block number
instead of getting it from the superblock s_mmp_block field.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/debugfs.8.in
debugfs/debugfs.c