2
2
add n=1 size=100
3
3
----
4
4
1 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: []
6
6
unused virtual backings: 000001
7
7
8
8
add n=2 size=200
9
9
----
10
10
2 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: []
13
13
unused virtual backings: 000001 000002
14
14
15
15
add n=2 size=200
16
16
----
17
17
pebble: trying to add an existing file backing
18
18
19
- add-table n=1 size=10
19
+ add-table n=1 size=10 table=1
20
20
----
21
21
2 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: []
24
24
unused virtual backings: 000002
25
25
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
27
32
----
28
33
2 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: []
31
36
unused virtual backings: 000002
32
37
33
- add-table n=1 size=10
38
+ add-table n=1 size=10 table=5
34
39
----
35
40
2 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: []
38
43
unused virtual backings: 000002
39
44
45
+ add-table n=1 size=10 table=5
46
+ ----
47
+ table 000005 already uses backing 000001
48
+
49
+
40
50
remove n=1
41
51
----
42
52
backing 000001 still in use (useCount=3 protectionCount=0)
43
53
44
- remove-table n=1 size=10
54
+ remove-table n=1 table=1
45
55
----
46
56
2 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: []
49
59
unused virtual backings: 000002
50
60
51
- remove-table n=1 size=10
61
+ remove-table n=1 table=3
52
62
----
53
63
2 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: []
56
66
unused virtual backings: 000002
57
67
58
- remove-table n=1 size=10
68
+ remove-table n=1 table=5
59
69
----
60
70
2 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: []
63
73
unused virtual backings: 000001 000002
64
74
65
75
remove n=1
66
76
----
67
77
1 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: []
69
79
unused virtual backings: 000002
70
80
71
81
protect n=2
72
82
----
73
83
1 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: []
75
85
76
86
protect n=2
77
87
----
78
88
1 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: []
80
90
81
91
unprotect n=2
82
92
----
83
93
1 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: []
85
95
86
96
remove n=2
87
97
----
@@ -90,36 +100,36 @@ backing 000002 still in use (useCount=0 protectionCount=1)
90
100
unprotect n=2
91
101
----
92
102
1 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: []
94
104
unused virtual backings: 000002
95
105
96
- add-table n=2 size=10
106
+ add-table n=2 size=10 table=2
97
107
----
98
108
1 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]
100
110
101
- add-table n=2 size=10
111
+ add-table n=2 size=10 table=4
102
112
----
103
113
1 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]
105
115
106
116
protect n=2
107
117
----
108
118
1 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]
110
120
111
- remove-table n=2 size=10
121
+ remove-table n=2 size=10 table=4
112
122
----
113
123
1 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]
115
125
116
- remove-table n=2 size=10
126
+ remove-table n=2 size=10 table=2
117
127
----
118
128
1 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: []
120
130
121
131
unprotect n=2
122
132
----
123
133
1 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: []
125
135
unused virtual backings: 000002
0 commit comments