Skip to contentSkip to conversation

cluster/gfs2/edit hexedit.c

Cluster-devel [email protected] 1 participant 1 message Nov 8, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2007-11-08 18:10:09

Modified files:
gfs2/edit : hexedit.c

Log message:
Printing the quota file wasn't printing its contents due to a bug.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/hexedit.c.diff?cvsroot=cluster&r1=1.23&r2=1.24

gfs2/edit/hexedit.c +2 -2
@@ -1247,8 +1247,6 @@
 		parse_rindex(tmp_inode, TRUE);
 		brelse(tmp_bh, not_updated);
 	}
-	else if (display_indirect(indirect, indirect_blocks, 0, 0) == 0)
-		return -1;
 	else if (block_is_rglist()) {
 		tmp_bh = bread(&sbd, masterblock("rindex"));
 		tmp_inode = inode_get(&sbd, tmp_bh);
@@ -1279,6 +1277,8 @@
 		print_quota(tmp_inode);
 		brelse(tmp_bh, not_updated);
 	}
+	else if (display_indirect(indirect, indirect_blocks, 0, 0) == 0)
+		return -1;
 	return 0;
 }