From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Peterson Date: Mon, 9 May 2016 12:35:14 -0400 (EDT) Subject: [Cluster-devel] [fsck.gfs2 v2 PATCH 12/40] fsck.gfs2: Separate out functions that may only be done after pass1 In-Reply-To: <5730A4E3.2030305@redhat.com> References: <5730A4E3.2030305@redhat.com> Message-ID: <1198085361.2942715.1462811714292.JavaMail.zimbra@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ----- Original Message ----- | On 06/05/16 18:39, Bob Peterson wrote: | > This patch adds a new header file and source file which has the | > purpose of separating out the functions that may only be called | > after pass1 from the functions that pass1 may call. This is to | > ensure that there will never be inconsistencies between blockmap | > (which pass1 uses) and bitmap (which subsequent passes use). | > | > Signed-off-by: Bob Peterson | > --- | > gfs2/fsck/Makefile.am | 1 + | > gfs2/fsck/afterpass1_common.c | 272 | > ++++++++++++++++++++++++++++++++++++++++++ | > gfs2/fsck/afterpass1_common.h | 31 +++++ | > gfs2/fsck/metawalk.c | 272 | > +----------------------------------------- | > gfs2/fsck/metawalk.h | 32 +---- | > gfs2/fsck/pass1.c | 22 ++++ | > gfs2/fsck/pass1b.c | 1 + | > gfs2/fsck/pass2.c | 1 + | > gfs2/fsck/pass3.c | 1 + | > gfs2/fsck/pass4.c | 1 + | > 10 files changed, 335 insertions(+), 299 deletions(-) | > create mode 100644 gfs2/fsck/afterpass1_common.c | > create mode 100644 gfs2/fsck/afterpass1_common.h | | The .h file should be added to noinst_HEADERS in gfs2/fsck/Makefile.am | | Andy Hi Andy, Good catch. I'll add it before pushing. Bob Peterson Red Hat File Systems