Makes the interface more obvious to me. Also, I want to remove
fsp->share_access, which is not really used anywhere after the fsp has
been fully established.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
uid_t uid,
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)
{
ZERO_STRUCTP(e);
e->pid = messaging_server_id(fsp->conn->sconn->msg_ctx);
- e->share_access = fsp->share_access;
+ e->share_access = share_access;
e->private_options = fsp->fh->private_options;
- e->access_mask = fsp->access_mask;
+ e->access_mask = access_mask;
e->op_mid = mid;
e->op_type = op_type;
uid_t uid,
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);
void remove_stale_share_mode_entries(struct share_mode_data *d);
get_current_uid(fsp->conn),
req ? req->mid : 0,
fsp->oplock_type,
+ fsp->share_access,
+ fsp->access_mask,
client_guid,
lease_key);
if (!ok) {
get_current_uid(conn),
req ? req->mid : 0,
NO_OPLOCK,
+ fsp->share_access,
+ fsp->access_mask,
NULL,
NULL);
if (!ok) {