Makefile.in:
Fix stupid dependency bug.
ChangeLog, debugfs.c, debugfs.h, util.c:
debugfs.c (do_testb, do_testi): Call check_fs_bitmaps to avoid
coredumping if the bitmaps aren't loaded.
util.c (check_fs_bitmaps): New function which checks whether or not
the bitmaps are loaded.
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index 1a93d58..46471d1 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -612,6 +612,8 @@
}
if (check_fs_open(argv[0]))
return;
+ if (check_fs_bitmaps(argv[0]))
+ return;
inode = string_to_inode(argv[1]);
if (!inode)
return;
@@ -682,6 +684,8 @@
}
if (check_fs_open(argv[0]))
return;
+ if (check_fs_bitmaps(argv[0]))
+ return;
block = strtoul(argv[1], &tmp, 0);
if (!block || *tmp) {
com_err(argv[0], 0, "No block 0");