mbox series

[v2,00/16] generic: add some mmap CoW tests

Message ID 20211125074752.274176-1-ruansy.fnst@fujitsu.com (mailing list archive)
Headers show
Series generic: add some mmap CoW tests | expand

Message

Shiyang Ruan Nov. 25, 2021, 7:47 a.m. UTC
Changes since v1:
  - Replace 'xxx' in each header with real sequence number
  - Combine two patchsets together because they both aim to add mmap tests

This series is to add missing mmap CoW tests in some sets of testcases:
Set 1. CoW on shared blocks which are interleaving reflinked by two files.
  - P1:            add mmap test
Set 2. CoW a range covers shared blocks and multiple kind of unshared blocks of
   the destination file.
  - P2 ~ P6:       add mmap test
Set 3. CoW a range covers shared blocks and multiple kind of unshared blocks of
   the source file.
  - P11, P12:      add missing buffered-io and direct-io test for mixed blocks
  - P7 ~ P10, P13: add mmap test
Set 4. races tests
  - P14: race between reflink and mmap reading
  - P15: race between mmap writing to and reflink source file
  - P16: race between mmap writing to and reflink target file


Shiyang Ruan (16):
  generic: add mmap CoW test for ranges of two shared files
  generic: add mmap CoW test for regular&destination extents
  generic: add mmap CoW test for unwritten&destination extents
  generic: add mmap CoW test for holes&destination extents
  generic: add mmap CoW test for delalloc&destination extents
  generic: add mmap CoW test for mixed&destination extents
  generic: add mmap CoW test for regular&source extents
  generic: add mmap CoW test for unwritten&source extents
  generic: add mmap CoW test for holes&source extents
  generic: add mmap CoW test for delalloc&source extents
  generic: add buffered-io CoW test for mixed&source extents
  generic: add direct-io CoW test for mixed&source extents
  generic: add mmap CoW test for mixed&source extents
  generic: add race test between reflink and mmap read
  generic: add race test that mmap write to source of reflink
  generic: add race test that mmap write to target of reflink

 common/reflink        | 74 +++++++++++++++++++++++++++++++++++++++++++
 tests/generic/900     | 69 ++++++++++++++++++++++++++++++++++++++++
 tests/generic/900.out | 14 ++++++++
 tests/generic/901     | 59 ++++++++++++++++++++++++++++++++++
 tests/generic/901.out | 12 +++++++
 tests/generic/902     | 59 ++++++++++++++++++++++++++++++++++
 tests/generic/902.out | 12 +++++++
 tests/generic/903     | 59 ++++++++++++++++++++++++++++++++++
 tests/generic/903.out | 12 +++++++
 tests/generic/904     | 61 +++++++++++++++++++++++++++++++++++
 tests/generic/904.out | 12 +++++++
 tests/generic/905     | 68 +++++++++++++++++++++++++++++++++++++++
 tests/generic/905.out | 12 +++++++
 tests/generic/906     | 60 +++++++++++++++++++++++++++++++++++
 tests/generic/906.out | 12 +++++++
 tests/generic/907     | 62 ++++++++++++++++++++++++++++++++++++
 tests/generic/907.out | 12 +++++++
 tests/generic/908     | 62 ++++++++++++++++++++++++++++++++++++
 tests/generic/908.out | 12 +++++++
 tests/generic/909     | 64 +++++++++++++++++++++++++++++++++++++
 tests/generic/909.out | 12 +++++++
 tests/generic/910     | 66 ++++++++++++++++++++++++++++++++++++++
 tests/generic/910.out | 12 +++++++
 tests/generic/911     | 66 ++++++++++++++++++++++++++++++++++++++
 tests/generic/911.out | 12 +++++++
 tests/generic/912     | 67 +++++++++++++++++++++++++++++++++++++++
 tests/generic/912.out | 12 +++++++
 tests/generic/913     | 72 +++++++++++++++++++++++++++++++++++++++++
 tests/generic/913.out |  5 +++
 tests/generic/914     | 64 +++++++++++++++++++++++++++++++++++++
 tests/generic/914.out |  4 +++
 tests/generic/915     | 64 +++++++++++++++++++++++++++++++++++++
 tests/generic/915.out |  4 +++
 33 files changed, 1267 insertions(+)
 create mode 100755 tests/generic/900
 create mode 100644 tests/generic/900.out
 create mode 100755 tests/generic/901
 create mode 100644 tests/generic/901.out
 create mode 100755 tests/generic/902
 create mode 100644 tests/generic/902.out
 create mode 100755 tests/generic/903
 create mode 100644 tests/generic/903.out
 create mode 100755 tests/generic/904
 create mode 100644 tests/generic/904.out
 create mode 100755 tests/generic/905
 create mode 100644 tests/generic/905.out
 create mode 100755 tests/generic/906
 create mode 100644 tests/generic/906.out
 create mode 100755 tests/generic/907
 create mode 100644 tests/generic/907.out
 create mode 100755 tests/generic/908
 create mode 100644 tests/generic/908.out
 create mode 100755 tests/generic/909
 create mode 100644 tests/generic/909.out
 create mode 100755 tests/generic/910
 create mode 100644 tests/generic/910.out
 create mode 100755 tests/generic/911
 create mode 100644 tests/generic/911.out
 create mode 100755 tests/generic/912
 create mode 100644 tests/generic/912.out
 create mode 100755 tests/generic/913
 create mode 100644 tests/generic/913.out
 create mode 100755 tests/generic/914
 create mode 100644 tests/generic/914.out
 create mode 100755 tests/generic/915
 create mode 100644 tests/generic/915.out

Comments

Shiyang Ruan Dec. 3, 2021, 7:30 a.m. UTC | #1
Ping

> This series is to add missing mmap CoW tests in some sets of testcases:
> Set 1. CoW on shared blocks which are interleaving reflinked by two files.
>   - P1:            add mmap test
> Set 2. CoW a range covers shared blocks and multiple kind of unshared blocks of
>    the destination file.
>   - P2 ~ P6:       add mmap test
> Set 3. CoW a range covers shared blocks and multiple kind of unshared blocks of
>    the source file.
>   - P11, P12:      add missing buffered-io and direct-io test for mixed blocks
>   - P7 ~ P10, P13: add mmap test
> Set 4. races tests
>   - P14: race between reflink and mmap reading
>   - P15: race between mmap writing to and reflink source file
>   - P16: race between mmap writing to and reflink target file
Eryu Guan Dec. 5, 2021, 2:57 p.m. UTC | #2
On Fri, Dec 03, 2021 at 03:30:53PM +0800, Shiyang Ruan wrote:
> Ping

The patchset is in my to-review queue, but just didn't get enough time
to review them.. Will try to find some time to review them next week.

Thanks,
Eryu

> 
> > This series is to add missing mmap CoW tests in some sets of testcases:
> > Set 1. CoW on shared blocks which are interleaving reflinked by two files.
> >   - P1:            add mmap test
> > Set 2. CoW a range covers shared blocks and multiple kind of unshared blocks of
> >    the destination file.
> >   - P2 ~ P6:       add mmap test
> > Set 3. CoW a range covers shared blocks and multiple kind of unshared blocks of
> >    the source file.
> >   - P11, P12:      add missing buffered-io and direct-io test for mixed blocks
> >   - P7 ~ P10, P13: add mmap test
> > Set 4. races tests
> >   - P14: race between reflink and mmap reading
> >   - P15: race between mmap writing to and reflink source file
> >   - P16: race between mmap writing to and reflink target file
>
Shiyang Ruan Dec. 6, 2021, 1:18 a.m. UTC | #3
在 2021/12/5 22:57, Eryu Guan 写道:
> On Fri, Dec 03, 2021 at 03:30:53PM +0800, Shiyang Ruan wrote:
>> Ping
> 
> The patchset is in my to-review queue, but just didn't get enough time
> to review them.. Will try to find some time to review them next week.

OK, Thanks~


--
Ruan

> 
> Thanks,
> Eryu
> 
>>
>>> This series is to add missing mmap CoW tests in some sets of testcases:
>>> Set 1. CoW on shared blocks which are interleaving reflinked by two files.
>>>    - P1:            add mmap test
>>> Set 2. CoW a range covers shared blocks and multiple kind of unshared blocks of
>>>     the destination file.
>>>    - P2 ~ P6:       add mmap test
>>> Set 3. CoW a range covers shared blocks and multiple kind of unshared blocks of
>>>     the source file.
>>>    - P11, P12:      add missing buffered-io and direct-io test for mixed blocks
>>>    - P7 ~ P10, P13: add mmap test
>>> Set 4. races tests
>>>    - P14: race between reflink and mmap reading
>>>    - P15: race between mmap writing to and reflink source file
>>>    - P16: race between mmap writing to and reflink target file
>>
Darrick J. Wong Dec. 6, 2021, 5:02 p.m. UTC | #4
On Mon, Dec 06, 2021 at 09:18:16AM +0800, Shiyang Ruan wrote:
> 
> 在 2021/12/5 22:57, Eryu Guan 写道:
> > On Fri, Dec 03, 2021 at 03:30:53PM +0800, Shiyang Ruan wrote:
> > > Ping
> > 
> > The patchset is in my to-review queue, but just didn't get enough time
> > to review them.. Will try to find some time to review them next week.
> 
> OK, Thanks~

Same here, I didn't have any time to look at this set last week, too
many other regressions going on. :(

--D

> 
> --
> Ruan
> 
> > 
> > Thanks,
> > Eryu
> > 
> > > 
> > > > This series is to add missing mmap CoW tests in some sets of testcases:
> > > > Set 1. CoW on shared blocks which are interleaving reflinked by two files.
> > > >    - P1:            add mmap test
> > > > Set 2. CoW a range covers shared blocks and multiple kind of unshared blocks of
> > > >     the destination file.
> > > >    - P2 ~ P6:       add mmap test
> > > > Set 3. CoW a range covers shared blocks and multiple kind of unshared blocks of
> > > >     the source file.
> > > >    - P11, P12:      add missing buffered-io and direct-io test for mixed blocks
> > > >    - P7 ~ P10, P13: add mmap test
> > > > Set 4. races tests
> > > >    - P14: race between reflink and mmap reading
> > > >    - P15: race between mmap writing to and reflink source file
> > > >    - P16: race between mmap writing to and reflink target file
> > > 
> 
>