public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Boris Ranto <ranto.boris@gmail.com>
Cc: xfs@oss.sgi.com
Subject: Re: [RFE] xfstests: Add support for tmpfs filesystem
Date: Fri, 24 Aug 2012 09:40:51 +1000	[thread overview]
Message-ID: <20120823234051.GX19235@dastard> (raw)
In-Reply-To: <CAFZPdfipr3FkLJ3B7zDPXRA5Nw3Qerpri05gsnJopyMQwQfGUw@mail.gmail.com>

On Thu, Aug 23, 2012 at 10:42:56PM +0200, Boris Ranto wrote:
> This is resent with the improved subject line.
> This is just a simple patch to get the tmpfs working. I've made the full
> xfstests run with the tmpfs as the target filesystem and it works quite
> well. Some tests passed properly, some tests failed (and some of them due
> to the nature of tmpfs).
> 
> I didn't change the xfstests logic to recognize a proper SCRATCH_DEV so the
> SCRATCH_DEV for tmpfs should be in the nfs form (with the : in it) for this
> to work properly.

The patch format isn't quite right. it is normally:

 Subject: One-line description

 <description>

 Signed-off-by: ....

 ---
 <diff>

As it is, it would be nice if you could rebase this on top of my
series that reworks xfstests - all the option parsing is changed,
the common.rc file is now in common/rc, and so on.

>           fi
>           ;;
> +    tmpfs)
> +        if [ -z "$SCRATCH_DEV" -o ! -d "$SCRATCH_MNT" ];
> +        then
> +            _notrun "this test requires a valid \$SCRATCH_MNT and unique
> $SCRATCH_DEV"
> +        fi
> +        ;;

The patch also has line wrap issues.

> @@ -1552,6 +1604,10 @@ _cleanup_testdir()
>      # umount testdir as it is $SCRATCH_MNT which could be used by xfs next
>      [ -n "$testdir" ] && $UMOUNT_PROG $testdir
>      ;;
> +    tmpfs)
> +    # umount testdir since it is actually a scrath mount

scratch mount.

Cheers,

Dave.

-- 
Dave Chinner
david@fromorbit.com

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

      reply	other threads:[~2012-08-23 23:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-23 20:42 [RFE] xfstests: Add support for tmpfs filesystem Boris Ranto
2012-08-23 23:40 ` Dave Chinner [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=20120823234051.GX19235@dastard \
    --to=david@fromorbit.com \
    --cc=ranto.boris@gmail.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