From mboxrd@z Thu Jan 1 00:00:00 1970 From: Abhijith Das Date: Fri, 5 Feb 2010 18:25:41 -0500 (EST) Subject: [Cluster-devel] [GFS2 PATCH] - Bug 537201 - Better error reporting when mounting a gfs fs without enough journals In-Reply-To: <1794011848.1142141265412324522.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> Message-ID: <140473617.1142161265412341507.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Please ignore the previous patch. The patch inlining didn't work right. Here's the unmangled one. --Abhi ----- "Abhijith Das" wrote: > From: "Abhijith Das" > To: "cluster-devel" > Sent: Friday, February 5, 2010 5:17:56 PM GMT -06:00 US/Canada Central > Subject: [Cluster-devel] [GFS2 PATCH] - 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. > > Signed-off-by: Abhijith Das > > diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c > index d405c38..a054b52 100644 > --- a/fs/gfs2/ops_fstype.c > +++ b/fs/gfs2/ops_fstype.c > @@ -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; -------------- next part -------------- A non-text attachment was scrubbed... Name: bz537201-kernel-upstream.patch Type: text/x-patch Size: 362 bytes Desc: not available URL: