smbstatus: add lease information about open files to json output
commit1973c3a9ac953f2e8c9ef83ce77a2339cf20c019
authorJule Anger <janger@samba.org>
Wed, 30 Mar 2022 15:05:02 +0000 (30 17:05 +0200)
committerJule Anger <janger@samba.org>
Mon, 8 Aug 2022 12:56:29 +0000 (8 12:56 +0000)
tree1e5c115b2dc4410858f3606cf5512746b6d70ac1
parent595b0198ec3678018a7a4f551c6324ea88e7f601
smbstatus: add lease information about open files to json output

Adds a dictionary named "lease" to a opens dictionary.
If leases are used, the dictionary contains a boolean for each type
(READE, WRITE and HANDLE or UNKNOWN) and a string representation of
the lease. Otherwise the dict is left empty.

Signed-off-by: Jule Anger <janger@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/utils/status.c
source3/utils/status_json.c
source3/utils/status_json.h
source3/utils/status_json_dummy.c