Skip to contentSkip to conversation

gfs2-utils: master - GFS2: fsck.gfs2 sometimes needs to be run twice

Cluster-devel Andrew Price 1 participant 1 message Aug 11, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Bob,

gfs2/fsck/main.c static int check_system_inode(struct gfs2_inode *sysinode, const char *filename, · line 191

Quoted 4 lines · Bob Peterson
gfs2/fsck/main.c +0 -0
@@ -191,9 +191,9 @@ static int check_system_inode(struct gfs2_inode *sysinode, const char *filename,
 	if(!sysinode || ds.q.block_type != mark) {

Doesn't this ^^^ ...

gfs2/fsck/main.c static int check_system_inode(struct gfs2_inode *sysinode, const char *filename, · line 197

Quoted 9 lines
gfs2/fsck/main.c +3 -3
 		log_err( _("Invalid or missing %s system inode.\n"), filename);
 		errors_found++;
-		if ((errors_corrected +=
-		    query(&opts, _("Create new %s system inode? (y/n) "),
-			  filename))) {
+		if (query(&opts, _("Create new %s system inode? (y/n) "),
+			  filename)) {
+			errors_corrected++;
 			builder(sysinode->i_sbd);

... mean that this ^^^ could be a null pointer dereference bug?

I know it's not part of the patch but it just caught my eye :-)

--
Andrew Price