s3:open_files.idl: add share_mode_entry_op_type
authorStefan Metzmacher <metze@samba.org>
Sun, 21 Aug 2022 09:17:19 +0000 (11:17 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2022 00:34:34 +0000 (00:34 +0000)
This makes it easier to read log files...

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/librpc/idl/open_files.idl

index 49bc09d77b6baa903616e56676a499023638b1e7..710af36ea272e239a7a24ca07a26732d629f946f 100644 (file)
@@ -12,10 +12,19 @@ import "misc.idl";
 
 interface open_files
 {
+       typedef [enum16bit] enum {
+               SHARE_MODE_ENTRY_OP_TYPE_NONE = 0,
+               SHARE_MODE_ENTRY_OP_TYPE_EXCLUSIVE = 1,
+               SHARE_MODE_ENTRY_OP_TYPE_BATCH_WITHOUT_EXCLUSIVE = 2,
+               SHARE_MODE_ENTRY_OP_TYPE_BATCH = 3,
+               SHARE_MODE_ENTRY_OP_TYPE_LEVEL_II = 4,
+               SHARE_MODE_ENTRY_OP_TYPE_LEASE = 0x100
+       } share_mode_entry_op_type;
+
        typedef [public] struct {
                server_id       pid;
                hyper           op_mid;
-               uint16          op_type;
+               share_mode_entry_op_type op_type;
                GUID            client_guid;
                smb2_lease_key  lease_key;
                uint32          access_mask;