Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 9383e745e23602bc45f9c92184feea59 > files > 78

gfs2-utils-0.1.62-28.el5.src.rpm

commit 953f02c193a4b3236271e8d4221a95d40d86f2ae
Author: Bob Peterson <bob@ganesha.peterson>
Date:   Mon Aug 31 11:24:00 2009 -0500

    gfs2_edit: Indirect pointers missing from list when paging up and down
    
    When using page-up and page-down to scroll a list of indirect
    block pointers, there was sometimes an occasional gap due to
    incorrect end-of-line management.
    
    rhbz#503529

diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c
index a720aac..c180256 100644
--- a/gfs2/edit/hexedit.c
+++ b/gfs2/edit/hexedit.c
@@ -1300,8 +1300,6 @@ int display_indirect(struct iinfo *ind, int indblocks, int level, uint64_t start
 	int offsets[5];
 
 	last_entry_onscreen[dmode] = 0;
-	if (!level)
-		eol(0);
 	if (!has_indirect_blocks())
 		return -1;
 	if (!level) {
@@ -1317,7 +1315,6 @@ int display_indirect(struct iinfo *ind, int indblocks, int level, uint64_t start
 			print_gfs2("This indirect block contains %d indirect blocks",
 				   indblocks);
 	}
-	eol(0);
 	total_dirents = 0;
 	/* Figure out multiplication factors for indirect pointers. */
 	if (!S_ISDIR(di.di_mode)) {
@@ -1351,9 +1348,9 @@ int display_indirect(struct iinfo *ind, int indblocks, int level, uint64_t start
 				factor[i + 1] = factor[i] * inptrs;
 		}
 		if (!level)
-			print_gfs2("  (at height=%d)", cur_height);
-		eol(0);
+			print_gfs2("  (at height %d)", cur_height);
 	}
+	eol(0);
 	if (!level && indblocks) {
 		print_gfs2("Indirect blocks:");
 		eol(0);