s4:torture:smb2: add comment explaining lease upgrade in the non-contended case
commit363c4ade52b36a986b2e7bd35563459d8fd49485
authorMichael Adam <obnox@samba.org>
Tue, 5 Nov 2013 17:10:25 +0000 (5 18:10 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Mon, 11 Nov 2013 15:09:38 +0000 (11 16:09 +0100)
tree363cc9fc34934bd6fad61dbf8aaf0ab9892939d0
parent0eaae1a87fee60675d8d9f48f8a5f5cb583f0e14
s4:torture:smb2: add comment explaining lease upgrade in the non-contended case

The summary of the behaviour is this:
-------------------------------------
An uncontended lease upgrade results in a change
if and only if the requested lease state is
- valid, and
- strictly a superset of the lease state already held.

In that case the resulting lease state is the one
requested in the upgrade.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source4/torture/smb2/lease.c