xfs
[Top] [All Lists]

[PATCH 0/4] xfstests: seek data/hole and hole punching improvements

To: xfs@xxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx
Subject: [PATCH 0/4] xfstests: seek data/hole and hole punching improvements
From: Zheng Liu <gnehzuil.liu@xxxxxxxxx>
Date: Mon, 28 Jan 2013 15:32:47 +0800
Cc: Zheng Liu <wenqing.lz@xxxxxxxxxx>, "Theodore Ts'o" <tytso@xxxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=P7E7DhI6Lz3pwT/K4dnlMRVic7MOa082tm3SQlSKjrY=; b=q/F6Wsktfr0Nm6e8mA2TqLkO82Uk/QcQliI/nw9yN5cck6E3MW+SqgA6qlPcb6LrGe 7EbMz2khhpCCCqhc4FBOaDxCIujixq0Xtzy4Oko90m3mYsjJBy5KC+l7vQm1/mWhVslf UVT9qzBPLy83WiSuTtDqXgZHjqRDxRfW8RfNYQHx+eA+X0ZtoMHVX2KX7DPJaGdV/WTJ LEGf34QKqbdUU2yXuUycRYCtj4kAtJsWkbXGPjXidXkRIZO+1wy4QujEmYrz3o2Ttbj6 gWa7EEDbJONnwC+wCP5yAlBmzdtbD90/ve9UJ5zTs0pLLZSlObmRPNXqRMvdHybbbj7H Csig==
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

<Prev in Thread] Current Thread [Next in Thread>