Skip to contentSkip to conversation

- Bug 537201 - Better error reporting when mounting a gfs fs without enough journals

PATCH New Abhijith Das 1 participant 1 message Feb 5, 2010 GFS2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 - Bug 537201 - Better error reporting when mounting a gfs fs without enough journals

Hi,

We need this one-liner to signal the mount helper of the 'insufficient journals' condition.

fs/gfs2/ops_fstype.c +1 -1
index d405c38..a054b52 100644
@@ -724,7 +724,7 @@ static int init_journal(struct gfs2_sbd *sdp, int undo)
 		goto fail;
 	}
 
-	error = -EINVAL;
+	error = -EUSERS;
 	if (!gfs2_jindex_size(sdp)) {
 		fs_err(sdp, "no journals!\n");
 		goto fail_jindex;