summaryrefslogtreecommitdiffstats
path: root/source3/utils
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-11-27 18:34:56 +0100
committerJeremy Allison <jra@samba.org>2014-12-04 05:45:09 +0100
commit6b2f19a5e6e8b3eb2a44cd24408ba4f27cfb8745 (patch)
tree1472e1c6a0959a17f69d13cf162173a33e736265 /source3/utils
parent14fac5dbc05823562760ac424522fb39817ec062 (diff)
downloadsamba-6b2f19a5e6e8b3eb2a44cd24408ba4f27cfb8745.tar.gz
samba-6b2f19a5e6e8b3eb2a44cd24408ba4f27cfb8745.tar.xz
samba-6b2f19a5e6e8b3eb2a44cd24408ba4f27cfb8745.zip
s3:open_files.idl: add data structures for SMB2.1 and SMB3.0 leases.
Pair-Programmed-With: Volker Lendecke <vl@samba.org> Signed-off-by: Volker Lendecke <vl@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/status.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c
index 4e1dae78e8..cd6a988b2f 100644
--- a/source3/utils/status.c
+++ b/source3/utils/status.c
@@ -175,6 +175,15 @@ static int print_share_mode(const struct share_mode_entry *e,
d_printf("BATCH ");
} else if (e->op_type & LEVEL_II_OPLOCK) {
d_printf("LEVEL_II ");
+ } else if (e->op_type == LEASE_OPLOCK) {
+ uint32_t lstate = e->lease->current_state;
+ d_printf("LEASE(%s%s%s)%s%s%s ",
+ (lstate & SMB2_LEASE_READ)?"R":"",
+ (lstate & SMB2_LEASE_WRITE)?"W":"",
+ (lstate & SMB2_LEASE_HANDLE)?"H":"",
+ (lstate & SMB2_LEASE_READ)?"":" ",
+ (lstate & SMB2_LEASE_WRITE)?"":" ",
+ (lstate & SMB2_LEASE_HANDLE)?"":" ");
} else {
d_printf("NONE ");
}