uint64_t mid,
uint16_t op_type,
uint32_t share_access,
- uint32_t access_mask,
- const struct GUID *client_guid,
- const struct smb2_lease_key *lease_key)
+ uint32_t access_mask)
{
struct share_mode_data *d = lck->data;
struct share_mode_entry *tmp, *e;
e->op_type = op_type;
if (op_type == LEASE_OPLOCK) {
+ const struct GUID *client_guid = fsp_client_guid(fsp);
e->client_guid = *client_guid;
- e->lease_key = *lease_key;
+ e->lease_key = fsp->lease->lease.lease_key;
}
e->time.tv_sec = fsp->open_time.tv_sec;
uint64_t mid,
uint16_t op_type,
uint32_t share_access,
- uint32_t access_mask,
- const struct GUID *client_guid,
- const struct smb2_lease_key *lease_key);
+ uint32_t access_mask);
void remove_stale_share_mode_entries(struct share_mode_data *d);
bool del_share_mode(struct share_mode_lock *lck, files_struct *fsp);
bool mark_share_mode_disconnected(struct share_mode_lock *lck,
bool got_oplock = false;
uint32_t i;
uint32_t granted;
- const struct GUID *client_guid = NULL;
- const struct smb2_lease_key *lease_key = NULL;
bool ok;
NTSTATUS status;
}
*lease = fsp->lease->lease;
- lease_key = &fsp->lease->lease.lease_key;
- client_guid = fsp_client_guid(fsp);
-
DEBUG(10, ("lease_state=%d\n", lease->lease_state));
} else {
if (got_handle_lease) {
req ? req->mid : 0,
fsp->oplock_type,
share_access,
- access_mask,
- client_guid,
- lease_key);
+ access_mask);
if (!ok) {
return NT_STATUS_NO_MEMORY;
}
req ? req->mid : 0,
NO_OPLOCK,
share_access,
- fsp->access_mask,
- NULL,
- NULL);
+ fsp->access_mask);
if (!ok) {
TALLOC_FREE(lck);
fd_close(fsp);