22add n=1 size=100
33----
441 virtual backings, total size 100:
5- 000001: size=100 useCount=0 protectionCount=0 virtualizedSize=0
5+ 000001: size=100 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
66unused virtual backings: 000001
77
88add n=2 size=200
99----
10102 virtual backings, total size 300:
11- 000001: size=100 useCount=0 protectionCount=0 virtualizedSize=0
12- 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0
11+ 000001: size=100 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
12+ 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
1313unused virtual backings: 000001 000002
1414
1515add n=2 size=200
1616----
1717pebble: trying to add an existing file backing
1818
19- add-table n=1 size=10
19+ add-table n=1 size=10 table=1
2020----
21212 virtual backings, total size 300:
22- 000001: size=100 useCount=1 protectionCount=0 virtualizedSize=10
23- 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0
22+ 000001: size=100 useCount=1 protectionCount=0 virtualizedSize=10 tables: [000001]
23+ 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
2424unused virtual backings: 000002
2525
26- add-table n=1 size=10
26+ remove-table n=2 table=1
27+ ----
28+ table 000001 does not use backing 000002
29+
30+
31+ add-table n=1 size=10 table=3
2732----
28332 virtual backings, total size 300:
29- 000001: size=100 useCount=2 protectionCount=0 virtualizedSize=20
30- 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0
34+ 000001: size=100 useCount=2 protectionCount=0 virtualizedSize=20 tables: [000001 000003]
35+ 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
3136unused virtual backings: 000002
3237
33- add-table n=1 size=10
38+ add-table n=1 size=10 table=5
3439----
35402 virtual backings, total size 300:
36- 000001: size=100 useCount=3 protectionCount=0 virtualizedSize=30
37- 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0
41+ 000001: size=100 useCount=3 protectionCount=0 virtualizedSize=30 tables: [000001 000003 000005]
42+ 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
3843unused virtual backings: 000002
3944
45+ add-table n=1 size=10 table=5
46+ ----
47+ table 000005 already uses backing 000001
48+
49+
4050remove n=1
4151----
4252backing 000001 still in use (useCount=3 protectionCount=0)
4353
44- remove-table n=1 size=10
54+ remove-table n=1 table=1
4555----
46562 virtual backings, total size 300:
47- 000001: size=100 useCount=2 protectionCount=0 virtualizedSize=20
48- 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0
57+ 000001: size=100 useCount=2 protectionCount=0 virtualizedSize=20 tables: [000003 000005]
58+ 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
4959unused virtual backings: 000002
5060
51- remove-table n=1 size=10
61+ remove-table n=1 table=3
5262----
53632 virtual backings, total size 300:
54- 000001: size=100 useCount=1 protectionCount=0 virtualizedSize=10
55- 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0
64+ 000001: size=100 useCount=1 protectionCount=0 virtualizedSize=10 tables: [000005]
65+ 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
5666unused virtual backings: 000002
5767
58- remove-table n=1 size=10
68+ remove-table n=1 table=5
5969----
60702 virtual backings, total size 300:
61- 000001: size=100 useCount=0 protectionCount=0 virtualizedSize=0
62- 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0
71+ 000001: size=100 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
72+ 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
6373unused virtual backings: 000001 000002
6474
6575remove n=1
6676----
67771 virtual backings, total size 200:
68- 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0
78+ 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
6979unused virtual backings: 000002
7080
7181protect n=2
7282----
73831 virtual backings, total size 200:
74- 000002: size=200 useCount=0 protectionCount=1 virtualizedSize=0
84+ 000002: size=200 useCount=0 protectionCount=1 virtualizedSize=0 tables: []
7585
7686protect n=2
7787----
78881 virtual backings, total size 200:
79- 000002: size=200 useCount=0 protectionCount=2 virtualizedSize=0
89+ 000002: size=200 useCount=0 protectionCount=2 virtualizedSize=0 tables: []
8090
8191unprotect n=2
8292----
83931 virtual backings, total size 200:
84- 000002: size=200 useCount=0 protectionCount=1 virtualizedSize=0
94+ 000002: size=200 useCount=0 protectionCount=1 virtualizedSize=0 tables: []
8595
8696remove n=2
8797----
@@ -90,36 +100,36 @@ backing 000002 still in use (useCount=0 protectionCount=1)
90100unprotect n=2
91101----
921021 virtual backings, total size 200:
93- 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0
103+ 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
94104unused virtual backings: 000002
95105
96- add-table n=2 size=10
106+ add-table n=2 size=10 table=2
97107----
981081 virtual backings, total size 200:
99- 000002: size=200 useCount=1 protectionCount=0 virtualizedSize=10
109+ 000002: size=200 useCount=1 protectionCount=0 virtualizedSize=10 tables: [000002]
100110
101- add-table n=2 size=10
111+ add-table n=2 size=10 table=4
102112----
1031131 virtual backings, total size 200:
104- 000002: size=200 useCount=2 protectionCount=0 virtualizedSize=20
114+ 000002: size=200 useCount=2 protectionCount=0 virtualizedSize=20 tables: [000002 000004]
105115
106116protect n=2
107117----
1081181 virtual backings, total size 200:
109- 000002: size=200 useCount=2 protectionCount=1 virtualizedSize=20
119+ 000002: size=200 useCount=2 protectionCount=1 virtualizedSize=20 tables: [000002 000004]
110120
111- remove-table n=2 size=10
121+ remove-table n=2 size=10 table=4
112122----
1131231 virtual backings, total size 200:
114- 000002: size=200 useCount=1 protectionCount=1 virtualizedSize=10
124+ 000002: size=200 useCount=1 protectionCount=1 virtualizedSize=10 tables: [000002]
115125
116- remove-table n=2 size=10
126+ remove-table n=2 size=10 table=2
117127----
1181281 virtual backings, total size 200:
119- 000002: size=200 useCount=0 protectionCount=1 virtualizedSize=0
129+ 000002: size=200 useCount=0 protectionCount=1 virtualizedSize=0 tables: []
120130
121131unprotect n=2
122132----
1231331 virtual backings, total size 200:
124- 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0
134+ 000002: size=200 useCount=0 protectionCount=0 virtualizedSize=0 tables: []
125135unused virtual backings: 000002
0 commit comments