cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Abhijith Das <adas@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH] - Bug 537201 - Better error reporting when mounting a gfs fs without enough journals
Date: Fri, 5 Feb 2010 18:25:41 -0500 (EST)	[thread overview]
Message-ID: <140473617.1142161265412341507.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> (raw)
In-Reply-To: <1794011848.1142141265412324522.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>

Please ignore the previous patch. The patch inlining didn't work right. Here's the unmangled one.

--Abhi

----- "Abhijith Das" <adas@redhat.com> wrote:

> From: "Abhijith Das" <adas@redhat.com>
> To: "cluster-devel" <cluster-devel@redhat.com>
> 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 <adas@redhat.com>
> 
> 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: <http://listman.redhat.com/archives/cluster-devel/attachments/20100205/6553d242/attachment.bin>

       reply	other threads:[~2010-02-05 23:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1794011848.1142141265412324522.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2010-02-05 23:25 ` Abhijith Das [this message]
2010-02-08 10:57   ` [Cluster-devel] [GFS2 PATCH] - Bug 537201 - Better error reporting when mounting a gfs fs without enough journals Steven Whitehouse
2010-02-05 23:17 Abhijith Das

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=140473617.1142161265412341507.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com \
    --to=adas@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).