linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] xfstests: seek data/hole and hole punching improvements
@ 2013-01-28  7:32 Zheng Liu
  2013-01-28  7:32 ` [PATCH 1/4] xfstests: check unwritten extent preallocation in 255 Zheng Liu
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Zheng Liu @ 2013-01-28  7:32 UTC (permalink / raw)
  To: xfs, linux-ext4; +Cc: Zheng Liu, Theodore Ts'o, Dave Chinner

Hi all,

Here is my first try to improve seek data/hole and hole punching test
cases in xfstests.  The key issue in 255 and 285 is that they assume that
all file systems that are tested support unwritten extent preallocation.
Before 3.8 kernel it is correct.  But now ext4 file system has ability
to seek data/hole and punch a hole for a file w/o unwritten extent.  So
it is time to improve these test cases.

In this patch series it calls _require_xfs_io_falloc in 255 and 285 to
make sure that unwritten extent is supprted by tested file system.  A
new argument '-t' is added into seek_sanity_test to check a file system
that supports seek data/hole or not.  In the mean time _require_seek_data_hole
is defined to be used by all tests.

Further two new test cases are created to test seek data/hole and hole
punching w/o unwritten extent, which do the same thing like 255 and 285
except that they don't do some test cases which are related to unwritten
extent.

Any comments or feedbacks are welcome.

Thanks,
						- Zheng

Zheng Liu (4):
  xfstests: check unwritten extent preallocation in 255
  xfstests: 295: test fallocate hole punching for all file systems
  xfstests: check llseek(2) SEEK_DATA/HOLE and unwritten extent
    preallocation in 285
  xfstests: 296: add a seek data/hole test w/o unwritten extent

 255                    |   3 +-
 285                    |   7 +-
 295                    |  68 +++++++++++
 295.out                | 307 +++++++++++++++++++++++++++++++++++++++++++++++++
 296                    |  57 +++++++++
 296.out                |   1 +
 common.rc              |  12 ++
 group                  |   2 +
 src/seek_sanity_test.c |  46 ++++++--
 9 files changed, 491 insertions(+), 12 deletions(-)
 mode change 100644 => 100755 285
 create mode 100755 295
 create mode 100644 295.out
 create mode 100755 296
 create mode 100644 296.out

-- 
1.7.12.rc2.18.g61b472e


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-02-06  2:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-28  7:32 [PATCH 0/4] xfstests: seek data/hole and hole punching improvements Zheng Liu
2013-01-28  7:32 ` [PATCH 1/4] xfstests: check unwritten extent preallocation in 255 Zheng Liu
2013-01-28  7:32 ` [PATCH 2/4] xfstests: 295: test fallocate hole punching for all file systems Zheng Liu
2013-01-28  7:32 ` [PATCH 3/4] xfstests: check llseek(2) SEEK_DATA/HOLE and unwritten extent preallocation in 285 Zheng Liu
2013-01-28  7:32 ` [PATCH 4/4] xfstests: 296: add a seek data/hole test w/o unwritten extent Zheng Liu
2013-02-05 15:39 ` [PATCH 0/4] xfstests: seek data/hole and hole punching improvements Mark Tinguely
2013-02-06  2:42   ` Zheng Liu

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).