smbstatus: add a basic dictionary with open files
commit95712e61b874404d462b41459e8fe658002ec52f
authorJule Anger <janger@samba.org>
Wed, 30 Mar 2022 13:11:11 +0000 (30 15:11 +0200)
committerJule Anger <janger@samba.org>
Mon, 8 Aug 2022 12:56:29 +0000 (8 12:56 +0000)
treeacb7bcc87f1fd64eaf07c91d01519903e0a07942
parent3ec6e7e31d569fd75354eda967da72a0fe34837e
smbstatus: add a basic dictionary with open files

Adds an empty json dictionary under the key "open_files" and adds foreach
locked file a dictionary with information (path, filename and pending
deletes) to the locked files dictionary. Uses path and filename as key.

Only print to stdout, if json_output is not set.

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