Skip to content

Commit

Permalink
torture:smb2:replay: extend CHECK_CREATE_OUT() to know leases
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Adam <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
obnoxxx committed Mar 3, 2016
1 parent 9ac9d28 commit 6eac2ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source4/torture/smb2/replay.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@
__IO_OUT_VAL(__io1, __io2, persistent_open); \
__IO_OUT_VAL(__io1, __io2, timeout); \
__IO_OUT_VAL(__io1, __io2, blobs.num_blobs); \
if ((__io1)->out.oplock_level == SMB2_OPLOCK_LEVEL_LEASE) { \
__IO_OUT_VAL(__io1, __io2, lease_response.lease_state);\
__IO_OUT_VAL(__io1, __io2, lease_response.lease_key.data[0]);\
__IO_OUT_VAL(__io1, __io2, lease_response.lease_key.data[1]);\
} \
} while(0)

#define BASEDIR "replaytestdir"
Expand Down

0 comments on commit 6eac2ae

Please sign in to comment.