question about

Jeremy Allison jra at samba.org
Mon Mar 26 21:54:51 UTC 2018


On Mon, Mar 26, 2018 at 11:53:02PM +0200, Stefan Metzmacher wrote:
> Am 26.03.2018 um 22:50 schrieb Jeremy Allison via samba-technical:
> > On Sat, Mar 24, 2018 at 12:53:43PM +0800, ssdl.566 via samba-technical wrote:
> >> Hi Jeremy:
> >>           I have a question about smbXsrv_open_update function call in smb2_create process.
> >>
> >>
> >>          if (update_open ) {
> >> op->global->create_guid = _create_guid;
> >>
> >>
> >>                         what is create_guid field used for ? is it just used in durable connect process?
> > 
> > Yes, I think so.
> 
> No, open_persistent_id is used for the durable reconnect,
> the create guid is new for the durable v2 context
> and is used for replay detection (needed for multichannel and presistent
> handles)

Arg. I mixed them up :-). Thanks for the clarification Metze.

>         if (state->dhnc != NULL) {
>                 state->persistent_id = BVAL(state->dhnc->data.data, 0);
>                 state->do_durable_reconnect = true;
>         }
> 
>         if (state->dh2c != NULL) {
>                 const uint8_t *p = state->dh2c->data.data;
>                 DATA_BLOB create_guid_blob;
> 
>                 state->persistent_id = BVAL(p, 0);
>                 create_guid_blob = data_blob_const(p + 16, 16);
> 
>                 status = GUID_from_ndr_blob(&create_guid_blob,
>                                             &state->_create_guid);
>                 if (tevent_req_nterror(req, status)) {
>                         return;
>                 }
> 
>                 state->create_guid = &state->_create_guid;
>                 state->do_durable_reconnect = true;
>         }
> 
> metze
> 






More information about the samba-technical mailing list