cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [Patch 13/44] dirent_repair needs to mark the buffer as modified
Date: Fri, 12 Aug 2011 10:26:55 +0100	[thread overview]
Message-ID: <1313141215.2704.30.camel@menhir> (raw)
In-Reply-To: <953935204.544710.1313096628700.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>

Ack,

Steve.

On Thu, 2011-08-11 at 17:03 -0400, Bob Peterson wrote:
> >From fa744b806ad8655c9ed3a18fcbec1c7992735be5 Mon Sep 17 00:00:00 2001
> From: Bob Peterson <rpeterso@redhat.com>
> Date: Mon, 8 Aug 2011 14:47:49 -0500
> Subject: [PATCH 13/44] dirent_repair needs to mark the buffer as modified
> 
> This patch adds a call to bmodified to function dirent_repair.  Without
> setting the modified bit, directory repairs may be forgotten and never
> written back to disk, leaving the damage in place.
> 
> rhbz#675723
> ---
>  gfs2/fsck/metawalk.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/gfs2/fsck/metawalk.c b/gfs2/fsck/metawalk.c
> index a4d7d3e..6bdea5a 100644
> --- a/gfs2/fsck/metawalk.c
> +++ b/gfs2/fsck/metawalk.c
> @@ -266,6 +266,7 @@ static int dirent_repair(struct gfs2_inode *ip, struct gfs2_buffer_head *bh,
>  		de->de_rec_len = GFS2_DIRENT_SIZE(de->de_name_len);
>  	}
>  	gfs2_dirent_out(de, (char *)dent);
> +	bmodified(bh);
>  	return 0;
>  }
>  




      reply	other threads:[~2011-08-12  9:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-11 21:03 [Cluster-devel] [Patch 13/44] dirent_repair needs to mark the buffer as modified Bob Peterson
2011-08-12  9:26 ` Steven Whitehouse [this message]

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=1313141215.2704.30.camel@menhir \
    --to=swhiteho@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).