FS/XFS testing framework
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Add lease testing
@ 2019-09-03 21:05 ira.weiny
  2019-09-03 21:05 ` [RFC PATCH 1/2] src/leasetest: Add lease test executable ira.weiny
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: ira.weiny @ 2019-09-03 21:05 UTC (permalink / raw)
  To: fstests
  Cc: john.hubbard, Dave Chinner, Jason Gunthorpe, Jan Kara,
	Dan Williams, Jeff Layton, Ira Weiny

From: Ira Weiny <ira.weiny@intel.com>

To get to a point of developing and testing the new Lease semantics for long
term file pins[1], add a simple lease test.

Currently the following tests are performed based on the fcntl() man page.

    /*  1 */"Take Read Lease",
    /*  2 */"Take Write Lease",
    /*  3 */"Fail Write Lease if file is open somewhere else",
    /*  4 */"Fail Read Lease if opened with write permissions",
    /*  5 */"Read lease gets SIGIO on write open",
    /*  6 */"Write lease gets SIGIO on read open",

[1] https://lkml.org/lkml/2019/8/14/435

Ira Weiny (2):
  src/leasetest: Add lease test executable
  generic: Add Lease testing

 src/Makefile          |   2 +-
 src/leasetest.c       | 837 ++++++++++++++++++++++++++++++++++++++++++
 tests/generic/567     | 100 +++++
 tests/generic/567.out |   2 +
 tests/generic/group   |   1 +
 5 files changed, 941 insertions(+), 1 deletion(-)
 create mode 100644 src/leasetest.c
 create mode 100755 tests/generic/567
 create mode 100644 tests/generic/567.out

-- 
2.20.1

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

end of thread, other threads:[~2019-09-05 16:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-03 21:05 [RFC PATCH 0/2] Add lease testing ira.weiny
2019-09-03 21:05 ` [RFC PATCH 1/2] src/leasetest: Add lease test executable ira.weiny
2019-09-03 21:05 ` [RFC PATCH 2/2] generic: Add Lease testing ira.weiny
2019-09-03 21:42 ` [RFC PATCH 0/2] Add lease testing Dave Chinner
2019-09-03 22:22   ` Ira Weiny
2019-09-05 10:11     ` Jeff Layton
2019-09-05 16:11       ` Weiny, Ira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox