Skip to content

Add necessary items for MAP_SYNC testing

Ross Zwisler fstests linux-nvdimm linux-xfs nvdimm 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyIn review
  2. v23 patches 15 repliesSuperseded
  3. v12 patches 10 repliesSuperseded

Changes in v4 from the cover letter

- Fixed indentation of variable declarations (Darrick).

- Added a comment for the case where MAP_SYNC and MAP_SHARED_VALIDATE aren't defined in system headers and we fail an msync command (Darrick).

- Dropped patch 1 of the previous series which fixed compiler warnings. A fix for this issue was already submitted by Dave.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfs_io: add MAP_SYNC support to mmap()configure.ac include/builddefs.in include/linux.h +5 more+60 -61 reply
2/2xfs_io: add a new 'log_writes' commandconfigure.ac debian/control include/builddefs.in +7 more+157 -20 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDarrick J. Wong
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [xfsprogs PATCH v4 0/2] Add necessary items for MAP_SYNC testing

This is the fourth revision of my MAP_SYNC + dm-log-writes support for xfsprogs. The previous revision can be found here:

https://lists.01.org/pipermail/linux-nvdimm/2017-December/013473.html

Changes since v3:

- Fixed indentation of variable declarations (Darrick).

- Added a comment for the case where MAP_SYNC and MAP_SHARED_VALIDATE aren't defined in system headers and we fail an msync command (Darrick).

- Dropped patch 1 of the previous series which fixed compiler warnings. A fix for this issue was already submitted by Dave.

---

As suggested by Dave Chinner:

As I say to all these sorts of one-off test prgrams: please add the new MAP_SYNC flag to xfs_io rather than writing a one-off test program to set it and write some data.

And if we're going to be adding special custom tests just because we need to insert dm-log marks, add that functionality to xfs_io, too.

That way we can create complex custom dm logwrite tests without needing one-off test programs for them all...

This series enhances xfs_io by adding support for the MAP_SYNC mmap() flag and for dm-log-writes marks. This allows the resulting xfstest for MAP_SYNC to be much simpler and have no custom C programs.

Ross Zwisler (2):
xfs_io: add MAP_SYNC support to mmap()
xfs_io: add a new 'log_writes' command

 configure.ac            |   2 +
 debian/control          |   2 +-
 include/builddefs.in    |   3 ++
 include/linux.h         |   8 ++++
 io/Makefile             |  10 +++++
 io/init.c               |   1 +
 io/io.h                 |   7 ++++
 io/log_writes.c         | 106 ++++++++++++++++++++++++++++++++++++++++++++++++
 io/mmap.c               |  29 ++++++++++---
 m4/Makefile             |   1 +
 m4/package_devmapper.m4 |  11 +++++
 m4/package_libcdev.m4   |  16 ++++++++
 man/man8/xfs_io.8       |  29 ++++++++++++-
 13 files changed, 217 insertions(+), 8 deletions(-)
 create mode 100644 io/log_writes.c
 create mode 100644 m4/package_devmapper.m4
Signature · 6 lines
2.14.3

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm