xref: /illumos-gate/usr/src/cmd/smbsrv/testoplock/case14.txt (revision 012e6ce759c490003aed29439cc47d3d73a99ad3)
1# Input for testoplock, case 13
2# simulate smbtorture smb2.lease.v2_rename
3
4# Create (open_if, lease=e0dd(1), RWH, epoch=0x4711 )
5#  resp: fid=1, RWH, epoch=0x4712
6# Expect no breaks, one handle, state=RWH
7open 1 1
8req 1 0x807
9show
10
11# SetInfo fid=1, newname=...dst.dat
12#  resp OK (no breaks)
13brk-setinfo 1 0xa
14show
15
16# Create, open_if, lease=e0dd(1), RWH, epoch=0x4712
17#  resp fid=5 RWH, flags=0 (not breaking)
18# Close fid=5 / resp
19# This is handled without calling the common oplock layer,
20# by logic at the top of smb2_lease_acquire
21
22# Create, open_if, lease=feed(2), RWH, epoch=0x0044
23#  (resp pending, will break RWH to RH)
24open 2 2
25brk-open 2
26show
27
28# Lease Break Notify, lease=e0dd(1), RWH to RH, epoch=0x4713
29# Lease Break Ack, lease=e0dd, RH
30#  resp (same)
31ack 1 0x803
32show
33
34# Create-resp, fid=9 lease=feed(2), state=RH, epoch=0x0045
35# Now that open 2 breaking is done, it can request.
36# Will fail RWH, succeed RH
37req 2 0x807
38req 2 0x803
39
40# SetInfo fid=1, newname=...src.dat
41#  (resp blocked -- win10 does not go pending? we do)
42# Should get rid of handle caching (RH to R)
43brk-setinfo 1 0xa
44show
45
46# Lease Break Notify, lease=feed(2), RH to R, epoch=0x0046
47# Lease Break Ack, lease=feed(2), state=R
48#   Break Ack Resp (same)
49ack 2 0x801
50show
51# SetInfo resp, fid=1 (note: races with Break Ack resp.)
52