e2fsprogs/e2fsprogs-1.39-check_fs_open-in-dump_unused.patch

15 lines
581 B
Diff
Raw Normal View History

diff -upNr e2fsprogs-1.38.orig/debugfs/unused.c e2fsprogs-1.38/debugfs/unused.c
--- e2fsprogs-1.38.orig/debugfs/unused.c 2006-09-23 13:55:27.000000000 -0500
+++ e2fsprogs-1.38/debugfs/unused.c 2006-09-23 13:56:14.000000000 -0500
@@ -31,6 +31,10 @@ void do_dump_unused(int argc EXT2FS_ATTR
unsigned int i;
errcode_t retval;
+ if (common_args_process(argc, argv, 1, 1,
+ "dump_unused", "", 0))
+ return;
+
for (blk=current_fs->super->s_first_data_block;
blk < current_fs->super->s_blocks_count; blk++) {
if (ext2fs_test_block_bitmap(current_fs->block_map,blk))