From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Biggers Subject: Re: [xfstests-bld PATCH 1/2] test-appliance: fix specifying f2fs mount options in config file Date: Mon, 30 Apr 2018 12:13:44 -0700 Message-ID: <20180430191344.GA193968@gmail.com> References: <20180419205020.16868-1-ebiggers3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fDEFF-0001YC-7l for linux-f2fs-devel@lists.sourceforge.net; Mon, 30 Apr 2018 19:13:53 +0000 Received: from mail-pf0-f196.google.com ([209.85.192.196]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) id 1fDEFD-0036Jx-Ru for linux-f2fs-devel@lists.sourceforge.net; Mon, 30 Apr 2018 19:13:53 +0000 Received: by mail-pf0-f196.google.com with SMTP id f189so7475056pfa.7 for ; Mon, 30 Apr 2018 12:13:51 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20180419205020.16868-1-ebiggers3@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: Theodore Ts'o Cc: Eric Biggers , fstests@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net On Thu, Apr 19, 2018 at 01:50:19PM -0700, Eric Biggers wrote: > From: Eric Biggers > > setup_mount_opts() is supposed to prepend "-o " to the mount options, > but it failed to do so in the case where mount options are specified in > a config file rather than on the command line. Fix it. > > Signed-off-by: Eric Biggers > --- > kvm-xfstests/test-appliance/files/root/fs/f2fs/config | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/kvm-xfstests/test-appliance/files/root/fs/f2fs/config b/kvm-xfstests/test-appliance/files/root/fs/f2fs/config > index b0c2196..94c402b 100644 > --- a/kvm-xfstests/test-appliance/files/root/fs/f2fs/config > +++ b/kvm-xfstests/test-appliance/files/root/fs/f2fs/config > @@ -31,12 +31,9 @@ function format_filesystem() > function setup_mount_opts() > { > if test -n "$MNTOPTS" ; then > - if test -n "$F2FS_MOUNT_OPTIONS" ; then > - export F2FS_MOUNT_OPTIONS="$F2FS_MOUNT_OPTIONS,$MNTOPTS" > - else > - export F2FS_MOUNT_OPTIONS="-o $MNTOPTS" > - fi > + F2FS_MOUNT_OPTIONS+="${F2FS_MOUNT_OPTIONS:+,}$MNTOPTS" > fi > + export F2FS_MOUNT_OPTIONS="${F2FS_MOUNT_OPTIONS:+-o }$F2FS_MOUNT_OPTIONS" > } > > function get_mkfs_opts() > -- > 2.17.0.484.g0c8726318c-goog > Ping. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot