smbtorture: simplify test_lease_v2_request()
commit4aa0f90ac21e58d1f799dbd4425e8d2a4c7d3b5f
authorRalph Boehme <slow@samba.org>
Fri, 6 Sep 2024 16:07:35 +0000 (6 18:07 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 5 Nov 2024 14:39:31 +0000 (5 14:39 +0000)
treef07c7b101867b9fdca9e245a223b9f121c932f02
parent9695cda30fc165d9afe33f770c37d862af8a0ca0
smbtorture: simplify test_lease_v2_request()

- Add and use test_rearm_dirlease().
- Rename variable "ls2" to "dirlease".
- Simplify lease epoch tracking by using dirlease.lease_epoch as a counter.
- Add comments.
- Zero out a handle after closing it.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/smb2/lease.c