public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Lukáš Czerner" <lczerner@redhat.com>
To: Rich Johnston <rjohnston@sgi.com>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH 10/10 v2] xfstests: Remount file system if MOUNT_OPTIONS changedx
Date: Thu, 17 Oct 2013 12:49:10 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.00.1310171248010.3490@localhost.localdomain> (raw)
In-Reply-To: <525EFC49.7090300@sgi.com>

On Wed, 16 Oct 2013, Rich Johnston wrote:

> Date: Wed, 16 Oct 2013 15:51:21 -0500
> From: Rich Johnston <rjohnston@sgi.com>
> To: Lukas Czerner <lczerner@redhat.com>, xfs@oss.sgi.com
> Subject: Re: [PATCH 10/10 v2] xfstests: Remount file system if MOUNT_OPTIONS
>     changed
> 
> Hi Lukas,
> 
> On 07/11/2013 05:38 AM, Lukas Czerner wrote:
> > When MOUNT_OPTIONS change we should remount TEST_DEV to put the changes
> > in effect. This will allow us to have different MOUNT_OPTIONS in sections
> > in configuration file.
> > 
> > Signed-off-by: Lukas Czerner <lczerner@redhat.com>
> > ---
> >   README.config-sections | 8 ++++++++
> >   check                  | 8 ++++++++
> >   2 files changed, 16 insertions(+)
> > 
> > diff --git a/README.config-sections b/README.config-sections
> > index 4d60272..2849fd5 100644
> > --- a/README.config-sections
> > +++ b/README.config-sections
> > @@ -36,6 +36,14 @@ For every section xfstests will run with specified
> > options and will produce
> >   separate results in the '$RESULT_BASE/$section_name' directory.
> > 
> > 
> > +Different mount options
> > +-----------------------
> > +
> > +Specifying different mount options in difference config sections is
> > allowed.
> > +When MOUNT_OPTIONS differs in the following section TEST_DEV will be
> > remounted
> > +with new MOUNT_OPTIONS automatically before running the test.
> > +
> > +
> >   Multiple file systems
> >   ---------------------
> > 
> > diff --git a/check b/check
> > index 5775276..ef91260 100755
> > --- a/check
> > +++ b/check
> > @@ -394,6 +394,7 @@ fi
> > 
> >   for section in $HOST_OPTIONS_SECTIONS; do
> >   	OLD_FSTYP=$FSTYP
> > +	OLD_MOUNT_OPTIONS=$MOUNT_OPTIONS
> >   	get_next_config $section
> > 
> >   	mkdir -p $RESULT_BASE
> > @@ -422,6 +423,13 @@ for section in $HOST_OPTIONS_SECTIONS; do
> >   			exit 1
> >   		fi
> >   		_prepare_test_list
> > +	elif [ "$OLD_MOUNT_OPTIONS" != "$MOUNT_OPTIONS" ]; then
> > +		_umount_or_remount_ro $TEST_DEV 2>&1> /dev/null
> > +		out=`_mount_or_remount_rw "$MOUNT_OPTIONS" $TEST_DEV
> > $TEST_DIR`
> > +		if [ $? -ne 1 ]; then
> > +			echo $out
> > +			exit 1
> > +		fi
> >   	fi
> > 
> >   	init_rc
> > 
> 
> Sorry this took so long to get to but this no longer applies cleanly.

Yeah, it has been a long time. I planned to rebase and resend,
however I have not had a time to do so. But hopefully I'll be able
to get to it at some point.

Thanks!
-Lukas

> 
> Thanks
> --Rich
> 

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2013-10-17 10:49 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-11 10:37 [RFC][PATCH 00/10 v2] xfstests: Add support for config section Lukas Czerner
2013-07-11 10:37 ` [PATCH 01/10 v2] xfstests: Run all tests when nothing is specified Lukas Czerner
2013-08-02 23:48   ` Chandra Seetharaman
2013-10-16 19:36   ` Rich Johnston
2013-07-11 10:37 ` [PATCH 02/10 v2] xfstests: Export all important variables in common/config Lukas Czerner
2013-08-02 23:49   ` Chandra Seetharaman
2013-07-11 10:37 ` [PATCH 03/10 v2] xfstests: Refactor code for obtaining test list Lukas Czerner
2013-08-02 23:49   ` Chandra Seetharaman
2013-07-11 10:37 ` [PATCH 04/10 v2] xfstests: Allow to recheck options in common/rc Lukas Czerner
2013-08-02 23:50   ` Chandra Seetharaman
2013-07-11 10:38 ` [PATCH 05/10 v2] xfstests: Allow to re-read configuration Lukas Czerner
2013-08-02 23:51   ` Chandra Seetharaman
2013-07-11 10:38 ` [PATCH 06/10 v2] xfstests: Allow to specify RESULT_BASE directory Lukas Czerner
2013-08-02 23:51   ` Chandra Seetharaman
2013-07-11 10:38 ` [PATCH 07/10 v2] xfstests: Prepare for config section Lukas Czerner
2013-08-02 23:53   ` Chandra Seetharaman
2013-07-11 10:38 ` [PATCH 08/10 v2] xfstests: Add support for sections in config file Lukas Czerner
2013-08-03  0:05   ` Chandra Seetharaman
2013-07-11 10:38 ` [PATCH 09/10 v2] xfstests: Allow to recreate TEST_DEV Lukas Czerner
2013-08-03  0:13   ` Chandra Seetharaman
2013-07-11 10:38 ` [PATCH 10/10 v2] xfstests: Remount file system if MOUNT_OPTIONS changed Lukas Czerner
2013-08-03  0:14   ` Chandra Seetharaman
2013-10-16 20:51   ` Rich Johnston
2013-10-17 10:49     ` Lukáš Czerner [this message]
2013-08-16 15:43 ` [RFC][PATCH 00/10 v2] xfstests: Add support for config section Rich Johnston

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=alpine.LFD.2.00.1310171248010.3490@localhost.localdomain \
    --to=lczerner@redhat.com \
    --cc=rjohnston@sgi.com \
    --cc=xfs@oss.sgi.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