1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

vfs_aio_pthread: use struct initializer for aio_open_private_data

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Ralph Boehme 2019-01-08 10:32:16 +01:00 committed by Stefan Metzmacher
parent 2f406fee52
commit e2f46c9333

View File

@ -209,15 +209,17 @@ static struct aio_open_private_data *create_private_open_data(const files_struct
return NULL;
}
opd->dir_fd = -1;
opd->ret_fd = -1;
opd->ret_errno = EINPROGRESS;
opd->flags = flags;
opd->mode = mode;
opd->mid = fsp->mid;
opd->in_progress = true;
opd->sconn = fsp->conn->sconn;
opd->initial_allocation_size = fsp->initial_allocation_size;
*opd = (struct aio_open_private_data) {
.dir_fd = -1,
.ret_fd = -1,
.ret_errno = EINPROGRESS,
.flags = flags,
.mode = mode,
.mid = fsp->mid,
.in_progress = true,
.sconn = fsp->conn->sconn,
.initial_allocation_size = fsp->initial_allocation_size,
};
/* Copy our current credentials. */
opd->ux_tok = copy_unix_token(opd, get_current_utok(fsp->conn));