DATA_BLOB out_output_buffer;
struct smb_request *smbreq;
int in_output_buffer_length;
- struct files_struct *fsp;
+ struct files_struct *dirfsp;
const char *in_file_name;
NTSTATUS empty_status;
uint32_t info_level;
return NULL;
}
state->ev = ev;
- state->fsp = fsp;
+ state->dirfsp = fsp;
state->smb2req = smb2req;
state->in_output_buffer_length = in_output_buffer_length;
state->in_file_name = in_file_name;
SMB_ASSERT(space_remaining >= 0);
status = smbd_dirptr_lanman2_entry(state,
- state->fsp->conn,
- state->fsp->dptr,
+ state->dirfsp->conn,
+ state->dirfsp->dptr,
state->smbreq->flags2,
state->in_file_name,
state->dirtype,
subreq = fetch_write_time_send(state,
state->ev,
- state->fsp->conn,
+ state->dirfsp->conn,
file_id,
state->info_level,
buf,
subreq = fetch_dos_mode_send(state,
state->ev,
- state->fsp,
+ state->dirfsp,
&smb_fname,
state->info_level,
buf);
state->async_dosmode_active++;
outstanding_aio = pthreadpool_tevent_queued_jobs(
- state->fsp->conn->sconn->pool);
+ state->dirfsp->conn->sconn->pool);
if (outstanding_aio > state->max_async_dosmode_active) {
stop = true;
/*
* Make sure we run as the user again
*/
- ok = change_to_user_and_service_by_fsp(state->fsp);
+ ok = change_to_user_and_service_by_fsp(state->dirfsp);
SMB_ASSERT(ok);
state->async_sharemode_count--;
/*
* Make sure we run as the user again
*/
- ok = change_to_user_and_service_by_fsp(state->fsp);
+ ok = change_to_user_and_service_by_fsp(state->dirfsp);
SMB_ASSERT(ok);
status = fetch_dos_mode_recv(subreq);