Partilhar via


2.2.14.2.10 SMB2_CREATE_RESPONSE_LEASE

The server responds with a lease that is granted for this open. The data in the Buffer field of the SMB2_CREATE_CONTEXT structure MUST contain the following structure.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

LeaseKey

...

...

...

LeaseState

LeaseFlags

LeaseDuration

...

LeaseKey (16 bytes): The client-generated key that identifies the owner of the lease.

LeaseState (4 bytes): The granted lease state. This field MUST be constructed using the following values.

Value

Meaning

SMB2_LEASE_NONE

0x00

No lease is granted.

SMB2_LEASE_READ_CACHING

0x01

A read caching lease is granted.

SMB2_LEASE_HANDLE_CACHING

0x02

A handle caching lease is granted.

SMB2_LEASE_WRITE_CACHING

0x04

A write caching lease is granted.

LeaseFlags (4 bytes): This field MUST be set to zero or more of the following values.

Value

Meaning

SMB2_LEASE_FLAG_BREAK_IN_PROGRESS

0x02

A break for the lease identified by the lease key is in progress.

LeaseDuration (8 bytes): This field MUST NOT be used and MUST be reserved. The server MUST set this to 0, and the client MUST ignore it on receipt.