smbstatus: add a basic byte-range locks dictionary
commitdc3b10cda6839f6ff21bec2c39518c0dd2c83efe
authorJule Anger <janger@samba.org>
Thu, 31 Mar 2022 08:30:30 +0000 (31 10:30 +0200)
committerJule Anger <janger@samba.org>
Mon, 8 Aug 2022 12:56:29 +0000 (8 12:56 +0000)
tree48f73e6ab7b7886ad02812edd54b71c2bc33ac7b
parent6b6b586b8d594eebe5aec4b97c6d3fa7d0aae16c
smbstatus: add a basic byte-range locks dictionary

Adds an empty json dictionary under the key "byte_range_locks"
and adds foreach locked file a dictionary with information
(path and filename) to the byte-range locks dictionary.

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