linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
From: Jaegeuk Kim <jaegeuk@kernel.org>
To: Dave Chinner <david@fromorbit.com>
Cc: fstests@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net,
	Jaegeuk Kim <jaegeuk@kernel.org>
Subject: [PATCH 0/8 v4] make xfs/tests generic by introducing shutdown for filesystems
Date: Tue,  3 Feb 2015 15:07:12 -0800	[thread overview]
Message-ID: <1423004840-45315-1-git-send-email-jaegeuk@kernel.org> (raw)

This patch-set modifies several existing xfs's tests to be used by generic
filesystems.

1. FS requirement

In order to activate these testcases, filesystem should support a new feature,
shutdown, triggered by the following ioctl command.

#define FS_IOC_SHUTDOWN _IOR('X', 125, __u32)   /* Shutdown */

This ioctl needs one of three modes passed by a flag according to the syncing
policy.

#define FS_GOING_DOWN_FULLSYNC  0x0     /* going down with full sync */
#define FS_GOING_DOWN_METASYNC  0x1     /* going down with metadata */
#define FS_GOING_DOWN_NOSYNC    0x2     /* going down */

Whenever shutdown is requested with one of the above mode, filesystem must
stop any IOs, and wait for unmount, which is very useful to test power-off-
recovery.

2. Changes in xfstests

In this patch set, common/rc adds three macros:
 o _require_scratch_shutdown : check whether FS supports shutdown
 o _require_bmap             : check bmap tool is defined
 o _require_norecovery       : check filesystem supports norecovery option.

 The following tests become generic.
    xfs/051 -> generic/051
  * xfs/053 -> generic/054
    xfs/085 -> generic/085
    xfs/086 -> generic/086
    xfs/087 -> generic/087
    xfs/137 -> generic/137
    xfs/138 -> generic/138
    xfs/139 -> generic/139
    xfs/140 -> generic/140
    xfs/179 -> generic/179
    xfs/180 -> generic/180
    xfs/182 -> generic/182
    xfs/200 -> generic/200
  * xfs/306 -> generic/305

*) changed test numbers due to conflict.

Jaeeuk Km (8)
  comon/rc: add _require_scratch_shtudown
  common/rc: add _require_bmap
  common/rc: add _require_norecovery
  tests/xfs: convert 10 xfs's tests to be generic ones
  tests/generic: relocate xfs's tests into tests/generic/
  common/rc:  define dump.f2fs and logstate for f2fs
  tests/xfs: add f2fs testcase and convert them being generic
  tests/generic: relocate four xfs's tests into tests/generic/

 common/config              |    3 +
 common/log                 |   20 +-
 common/rc                  |   59 +
 tests/generic/051          |  103 +
 tests/generic/051.out      |    2 +
 tests/generic/054          |  102 +
 tests/generic/054.out      |   10 +
 tests/generic/085          |   98 +
 tests/generic/085.out      |  113 ++
 tests/generic/086          |  178 ++
 tests/generic/086.out.f2fs | 3306 +++++++++++++++++++++++++++++++
 tests/generic/086.out.xfs  | 4722 ++++++++++++++++++++++++++++++++++++++++++++
 tests/generic/087          |  179 ++
 tests/generic/087.out.f2fs |  303 +++
 tests/generic/087.out.xfs  |  389 ++++
 tests/generic/137          |  106 +
 tests/generic/137.out      |    1 +
 tests/generic/138          |  112 ++
 tests/generic/138.out      |    1 +
 tests/generic/139          |  112 ++
 tests/generic/139.out      |    1 +
 tests/generic/140          |  109 +
 tests/generic/140.out      |    1 +
 tests/generic/179          |  107 +
 tests/generic/179.out      |    1 +
 tests/generic/180          |  111 ++
 tests/generic/180.out      |    1 +
 tests/generic/182          |  108 +
 tests/generic/182.out      |    1 +
 tests/generic/200          |  127 ++
 tests/generic/200.out      |   24 +
 tests/generic/305          |  105 +
 tests/generic/305.out      |    2 +
 tests/generic/group        |   14 +
 tests/xfs/051              |   95 -
 tests/xfs/051.out          |    2 -
 tests/xfs/053              |  101 -
 tests/xfs/053.out          |   10 -
 tests/xfs/085              |   93 -
 tests/xfs/085.out          |  113 --
 tests/xfs/086              |  152 --
 tests/xfs/086.out          | 4722 --------------------------------------------
 tests/xfs/087              |  153 --
 tests/xfs/087.out          |  389 ----
 tests/xfs/137              |  104 -
 tests/xfs/137.out          |    1 -
 tests/xfs/138              |  110 --
 tests/xfs/138.out          |    1 -
 tests/xfs/139              |  110 --
 tests/xfs/139.out          |    1 -
 tests/xfs/140              |  107 -
 tests/xfs/140.out          |    1 -
 tests/xfs/179              |  105 -
 tests/xfs/179.out          |    1 -
 tests/xfs/180              |  109 -
 tests/xfs/180.out          |    1 -
 tests/xfs/182              |  106 -
 tests/xfs/182.out          |    1 -
 tests/xfs/200              |  125 --
 tests/xfs/200.out          |   24 -
 tests/xfs/306              |  104 -
 tests/xfs/306.out          |    2 -
 tests/xfs/group            |   14 -
 63 files changed, 10628 insertions(+), 6860 deletions(-)
 create mode 100755 tests/generic/051
 create mode 100644 tests/generic/051.out
 create mode 100755 tests/generic/054
 create mode 100644 tests/generic/054.out
 create mode 100755 tests/generic/085
 create mode 100644 tests/generic/085.out
 create mode 100755 tests/generic/086
 create mode 100644 tests/generic/086.out.f2fs
 create mode 100644 tests/generic/086.out.xfs
 create mode 100755 tests/generic/087
 create mode 100644 tests/generic/087.out.f2fs
 create mode 100644 tests/generic/087.out.xfs
 create mode 100755 tests/generic/137
 create mode 100644 tests/generic/137.out
 create mode 100755 tests/generic/138
 create mode 100644 tests/generic/138.out
 create mode 100755 tests/generic/139
 create mode 100644 tests/generic/139.out
 create mode 100755 tests/generic/140
 create mode 100644 tests/generic/140.out
 create mode 100755 tests/generic/179
 create mode 100644 tests/generic/179.out
 create mode 100755 tests/generic/180
 create mode 100644 tests/generic/180.out
 create mode 100755 tests/generic/182
 create mode 100644 tests/generic/182.out
 create mode 100755 tests/generic/200
 create mode 100644 tests/generic/200.out
 create mode 100755 tests/generic/305
 create mode 100644 tests/generic/305.out
 delete mode 100755 tests/xfs/051
 delete mode 100644 tests/xfs/051.out
 delete mode 100755 tests/xfs/053
 delete mode 100644 tests/xfs/053.out
 delete mode 100755 tests/xfs/085
 delete mode 100644 tests/xfs/085.out
 delete mode 100755 tests/xfs/086
 delete mode 100644 tests/xfs/086.out
 delete mode 100755 tests/xfs/087
 delete mode 100644 tests/xfs/087.out
 delete mode 100755 tests/xfs/137
 delete mode 100644 tests/xfs/137.out
 delete mode 100755 tests/xfs/138
 delete mode 100644 tests/xfs/138.out
 delete mode 100755 tests/xfs/139
 delete mode 100644 tests/xfs/139.out
 delete mode 100755 tests/xfs/140
 delete mode 100644 tests/xfs/140.out
 delete mode 100755 tests/xfs/179
 delete mode 100644 tests/xfs/179.out
 delete mode 100755 tests/xfs/180
 delete mode 100644 tests/xfs/180.out
 delete mode 100755 tests/xfs/182
 delete mode 100644 tests/xfs/182.out
 delete mode 100755 tests/xfs/200
 delete mode 100644 tests/xfs/200.out
 delete mode 100755 tests/xfs/306
 delete mode 100644 tests/xfs/306.out

-- 
2.1.1


             reply	other threads:[~2015-02-03 23:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-03 23:07 Jaegeuk Kim [this message]
2015-02-03 23:07 ` [PATCH 1/8 v4] common/rc: add _require_scratch_shtudown Jaegeuk Kim
2015-02-05  2:01   ` Dave Chinner
2015-02-03 23:07 ` [PATCH 2/8 v4] common/rc: add _require_bmap Jaegeuk Kim
2015-02-05  2:05   ` Dave Chinner
2015-02-03 23:07 ` [PATCH 3/8 v4] common/rc: add _require_norecovery Jaegeuk Kim
2015-02-05  2:08   ` Dave Chinner
2015-02-03 23:07 ` [PATCH 4/8 v4] tests/xfs: convert 10 xfs's tests to be generic ones Jaegeuk Kim
2015-02-05  2:11   ` Dave Chinner
2015-02-03 23:07 ` [PATCH 5/8 v4] tests/generic: relocate xfs's tests into tests/generic/ Jaegeuk Kim
2015-02-05  2:19   ` Dave Chinner
2015-02-03 23:07 ` [PATCH 6/8 v4] common/rc: define dump.f2fs and logstate for f2fs Jaegeuk Kim
2015-02-05  2:48   ` Dave Chinner
2015-02-03 23:07 ` [PATCH 7/8 v4] tests/xfs: add f2fs testcase and convert them being generic Jaegeuk Kim
2015-02-05  3:12   ` Dave Chinner
2015-02-03 23:07 ` [PATCH 8/8 v4] tests/generic: relocate four xfs's tests into tests/generic/ Jaegeuk Kim

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=1423004840-45315-1-git-send-email-jaegeuk@kernel.org \
    --to=jaegeuk@kernel.org \
    --cc=david@fromorbit.com \
    --cc=fstests@vger.kernel.org \
    --cc=linux-f2fs-devel@lists.sourceforge.net \
    /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).