2 * PROJECT: ReactOS kernel-mode tests
3 * LICENSE: LGPLv2+ - See COPYING.LIB in the top level directory
4 * PURPOSE: Kernel-Mode Test Suite FsRtl Test
5 * PROGRAMMER: Pierre Schweitzer <pierre.schweitzer@reactos.org>
13 static VOID
FsRtlMcbTest()
17 static VOID
DumpAllRuns(PLARGE_MCB Mcb
)
20 LONGLONG Vbn
, Lbn
, Count
;
22 trace("MCB %p:\n", Mcb
);
24 for (i
= 0; FsRtlGetNextLargeMcbEntry(Mcb
, i
, &Vbn
, &Lbn
, &Count
); i
++)
26 // print out vbn, lbn, and count
27 trace("\t[%I64d,%I64d,%I64d]\n", Vbn
, Lbn
, Count
);
32 static VOID
FsRtlLargeMcbTest()
36 LONGLONG Vbn
, Lbn
, SectorCount
, StartingLbn
, CountFromStartingLbn
;
38 FsRtlInitializeLargeMcb(&LargeMcb
, PagedPool
);
40 ok(FsRtlLookupLastLargeMcbEntry(&LargeMcb
, &Vbn
, &Lbn
) == FALSE
, "expected FALSE, got TRUE\n");
41 ok(FsRtlLookupLastLargeMcbEntryAndIndex(&LargeMcb
, &Vbn
, &Lbn
, &Index
) == FALSE
, "expected FALSE, got TRUE\n");
43 ok(FsRtlAddLargeMcbEntry(&LargeMcb
, 1, 1, 1024) == TRUE
, "expected TRUE, got FALSE\n");
44 NbRuns
= FsRtlNumberOfRunsInLargeMcb(&LargeMcb
);
45 ok(NbRuns
== 2, "Expected 2 runs, got: %lu\n", NbRuns
);
46 DumpAllRuns(&LargeMcb
); // [0,-1,1][1,1,1024] [vbn,lbn,sc]
47 ok(FsRtlLookupLastLargeMcbEntry(&LargeMcb
, &Vbn
, &Lbn
) == TRUE
, "expected TRUE, got FALSE\n");
48 ok(Vbn
== 1024, "Expected Vbn 1024, got: %I64d\n", Vbn
);
49 ok(Lbn
== 1024, "Expected Lbn 1024, got: %I64d\n", Lbn
);
50 ok(FsRtlLookupLastLargeMcbEntryAndIndex(&LargeMcb
, &Vbn
, &Lbn
, &Index
) == TRUE
, "expected TRUE, got FALSE\n");
51 ok(Vbn
== 1024, "Expected Vbn 1024, got: %I64d\n", Vbn
);
52 ok(Lbn
== 1024, "Expected Lbn 1024, got: %I64d\n", Lbn
);
53 ok(Index
== 1, "Expected Index 1, got: %lu\n", Index
);
55 ok(FsRtlAddLargeMcbEntry(&LargeMcb
, 2048, 2, 1024) == TRUE
, "expected TRUE, got FALSE\n");
56 NbRuns
= FsRtlNumberOfRunsInLargeMcb(&LargeMcb
);
57 ok(NbRuns
== 4, "Expected 4 runs, got: %lu\n", NbRuns
);
58 DumpAllRuns(&LargeMcb
); // [0,-1,1][1,1,1024][1025,-1,1023][2048,2,1024] ======= [(0,1) hole] [(1,1025)=>(1,1025)] [(1025, 2048) hole] [(2048,3072)=>(2,1026)]
59 ok(FsRtlLookupLastLargeMcbEntry(&LargeMcb
, &Vbn
, &Lbn
) == TRUE
, "expected TRUE, got FALSE\n");
60 ok(Vbn
== 3071, "Expected Vbn 3071, got: %I64d\n", Vbn
);
61 ok(Lbn
== 1025, "Expected Lbn 1025, got: %I64d\n", Lbn
);
62 ok(FsRtlLookupLastLargeMcbEntryAndIndex(&LargeMcb
, &Vbn
, &Lbn
, &Index
) == TRUE
, "expected TRUE, got FALSE\n");
63 ok(Vbn
== 3071, "Expected Vbn 3071, got: %I64d\n", Vbn
);
64 ok(Lbn
== 1025, "Expected Lbn 1025, got: %I64d\n", Lbn
);
65 ok(Index
== 3, "Expected Index 3, got: %lu\n", Index
);
67 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 0, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
68 ok(Vbn
== 0, "Expected Vbn 0, got: %I64d\n", Vbn
);
69 ok(Lbn
== -1, "Expected Lbn -1, got: %I64d\n", Lbn
);
70 ok(SectorCount
== 1, "Expected SectorCount 1, got: %I64d\n", SectorCount
);
72 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 1, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
73 ok(Vbn
== 1, "Expected Vbn 1, got: %I64d\n", Vbn
);
74 ok(Lbn
== 1, "Expected Lbn 1, got: %I64d\n", Lbn
);
75 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
77 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 2, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
78 ok(Vbn
== 1025, "Expected Vbn 1025, got: %I64d\n", Vbn
);
79 ok(Lbn
== -1, "Expected Lbn -1, got: %I64d\n", Lbn
);
80 ok(SectorCount
== 1023, "Expected SectorCount 1023, got: %I64d\n", SectorCount
);
82 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 3, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
83 ok(Vbn
== 2048, "Expected Vbn 2048, got: %I64d\n", Vbn
);
84 ok(Lbn
== 2, "Expected Lbn 2, got: %I64d\n", Lbn
);
85 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
87 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 4, &Vbn
, &Lbn
, &SectorCount
) == FALSE
, "expected FALSE, got TRUE\n");
89 ok(FsRtlLookupLargeMcbEntry(&LargeMcb
, 1, &Lbn
, &SectorCount
, &StartingLbn
, &CountFromStartingLbn
, &Index
) == TRUE
, "expected TRUE, got FALSE\n");
90 ok(Lbn
== 1, "Expected Lbn 1, got: %I64d\n", Lbn
);
91 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
92 ok(StartingLbn
== 1, "Expected StartingLbn 1, got: %I64d\n", StartingLbn
);
93 ok(CountFromStartingLbn
== 1024, "Expected CountFromStartingLbn 1024, got: %I64d\n", CountFromStartingLbn
);
94 ok(Index
== 1, "Expected Index 1, got: %lu\n", Index
);
96 ok(FsRtlLookupLargeMcbEntry(&LargeMcb
, 2048, &Lbn
, &SectorCount
, &StartingLbn
, &CountFromStartingLbn
, &Index
) == TRUE
, "expected TRUE, got FALSE\n");
97 ok(Lbn
== 2, "Expected Lbn 2, got: %I64d\n", Lbn
);
98 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
99 ok(StartingLbn
== 2, "Expected StartingLbn 2, got: %I64d\n", StartingLbn
);
100 ok(CountFromStartingLbn
== 1024, "Expected CountFromStartingLbn 1024, got: %I64d\n", CountFromStartingLbn
);
101 ok(Index
== 3, "Expected Index 3, got: %lu\n", Index
);
103 ok(FsRtlLookupLargeMcbEntry(&LargeMcb
, 3073, &Lbn
, &SectorCount
, &StartingLbn
, &CountFromStartingLbn
, &Index
) == FALSE
, "expected FALSE, got TRUE\n");
105 FsRtlRemoveLargeMcbEntry(&LargeMcb
, 1, 1024);
106 NbRuns
= FsRtlNumberOfRunsInLargeMcb(&LargeMcb
);
107 ok(NbRuns
== 2, "Expected 2 runs, got: %lu\n", NbRuns
);
108 DumpAllRuns(&LargeMcb
); // [0,-1,2048][2048,2,1024]
109 ok(FsRtlLookupLargeMcbEntry(&LargeMcb
, 512, &Lbn
, &SectorCount
, &StartingLbn
, &CountFromStartingLbn
, &Index
) == TRUE
, "expected TRUE, got FALSE\n");
110 ok(Lbn
== -1, "Expected Lbn -1, got: %I64d\n", Lbn
);
111 ok(SectorCount
== 1536, "Expected SectorCount 1536, got: %I64d\n", SectorCount
);
112 ok(StartingLbn
== -1, "Expected StartingLbn -1, got: %I64d\n", StartingLbn
);
113 ok(CountFromStartingLbn
== 2048, "Expected CountFromStartingLbn 2048, got: %I64d\n", CountFromStartingLbn
);
114 ok(Index
== 0, "Expected Index 0, got: %lu\n", Index
);
115 ok(FsRtlLookupLastLargeMcbEntryAndIndex(&LargeMcb
, &Vbn
, &Lbn
, &Index
) == TRUE
, "expected TRUE, got FALSE\n");
116 ok(Vbn
== 3071, "Expected Vbn 3071, got: %I64d\n", Vbn
);
117 ok(Lbn
== 1025, "Expected Lbn 1025, got: %I64d\n", Lbn
);
118 ok(Index
== 1, "Expected Index 1, got: %lu\n", Index
);
120 ok(FsRtlSplitLargeMcb(&LargeMcb
, 2048, 1024) == TRUE
, "expected TRUE, got FALSE\n");
121 NbRuns
= FsRtlNumberOfRunsInLargeMcb(&LargeMcb
);
122 ok(NbRuns
== 2, "Expected 2 runs, got: %lu\n", NbRuns
);
123 DumpAllRuns(&LargeMcb
); // [0,-1,3072][3072,2,1024]
124 ok(FsRtlLookupLastLargeMcbEntryAndIndex(&LargeMcb
, &Vbn
, &Lbn
, &Index
) == TRUE
, "expected TRUE, got FALSE\n");
125 ok(Vbn
== 4095, "Expected Vbn 4095, got: %I64d\n", Vbn
);
126 ok(Lbn
== 1025, "Expected Lbn 1025, got: %I64d\n", Lbn
);
127 ok(Index
== 1, "Expected Index 1, got: %lu\n", Index
);
128 ok(FsRtlLookupLargeMcbEntry(&LargeMcb
, 2048, &Lbn
, &SectorCount
, &StartingLbn
, &CountFromStartingLbn
, &Index
) == TRUE
, "expected TRUE, got FALSE\n");
129 ok(Lbn
== -1, "Expected Lbn -1, got: %I64d\n", Lbn
);
130 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
131 ok(StartingLbn
== -1, "Expected StartingLbn -1, got: %I64d\n", StartingLbn
);
132 ok(CountFromStartingLbn
== 3072, "Expected CountFromStartingLbn 3072, got: %I64d\n", CountFromStartingLbn
);
133 ok(Index
== 0, "Expected Index 0, got: %lu\n", Index
);
134 ok(FsRtlLookupLargeMcbEntry(&LargeMcb
, 3072, &Lbn
, &SectorCount
, &StartingLbn
, &CountFromStartingLbn
, &Index
) == TRUE
, "expected TRUE, got FALSE\n");
135 ok(Lbn
== 2, "Expected Lbn 2, got: %I64d\n", Lbn
);
136 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
137 ok(StartingLbn
== 2, "Expected StartingLbn 2, got: %I64d\n", StartingLbn
);
138 ok(CountFromStartingLbn
== 1024, "Expected CountFromStartingLbn 1024, got: %I64d\n", CountFromStartingLbn
);
139 ok(Index
== 1, "Expected Index 1, got: %lu\n", Index
);
141 ok(FsRtlAddLargeMcbEntry(&LargeMcb
, 3584, 3, 1024) == FALSE
, "expected FALSE, got TRUE\n");
143 ok(FsRtlAddLargeMcbEntry(&LargeMcb
, 4095, 1025, 1024) == TRUE
, "expected TRUE, got FALSE\n");
144 NbRuns
= FsRtlNumberOfRunsInLargeMcb(&LargeMcb
);
145 ok(NbRuns
== 2, "Expected 2 runs, got: %lu\n", NbRuns
);
146 DumpAllRuns(&LargeMcb
); // [0,-1,3072][3072,2,2047]
147 ok(FsRtlLookupLastLargeMcbEntry(&LargeMcb
, &Vbn
, &Lbn
) == TRUE
, "expected TRUE, got FALSE\n");
148 ok(Vbn
== 5118, "Expected Vbn 5118, got: %I64d\n", Vbn
);
149 ok(Lbn
== 2048, "Expected Lbn 2048, got: %I64d\n", Lbn
);
150 ok(FsRtlLookupLastLargeMcbEntryAndIndex(&LargeMcb
, &Vbn
, &Lbn
, &Index
) == TRUE
, "expected TRUE, got FALSE\n");
151 ok(Vbn
== 5118, "Expected Vbn 5118, got: %I64d\n", Vbn
);
152 ok(Lbn
== 2048, "Expected Lbn 2048, got: %I64d\n", Lbn
);
153 ok(Index
== 1, "Expected Index 1, got: %lu\n", Index
);
155 FsRtlTruncateLargeMcb(&LargeMcb
, 4607);
156 DumpAllRuns(&LargeMcb
); // [0,-1,3072][3072,2,1535]
157 ok(FsRtlLookupLargeMcbEntry(&LargeMcb
, 4095, &Lbn
, &SectorCount
, &StartingLbn
, &CountFromStartingLbn
, &Index
) == TRUE
, "expected TRUE, got FALSE\n");
158 ok(Lbn
== 1025, "Expected Lbn 1025, got: %I64d\n", Lbn
);
159 ok(SectorCount
== 512, "Expected SectorCount 512, got: %I64d\n", SectorCount
);
160 ok(StartingLbn
== 2, "Expected StartingLbn 2, got: %I64d\n", StartingLbn
);
161 ok(CountFromStartingLbn
== 1535, "Expected CountFromStartingLbn 1535, got: %I64d\n", CountFromStartingLbn
);
162 ok(Index
== 1, "Expected Index 1, got: %lu\n", Index
);
164 FsRtlUninitializeLargeMcb(&LargeMcb
);
166 FsRtlInitializeLargeMcb(&LargeMcb
, PagedPool
);
167 NbRuns
= FsRtlNumberOfRunsInLargeMcb(&LargeMcb
);
168 ok(NbRuns
== 0, "Expected 0 runs, got: %lu\n", NbRuns
);
170 /* Create a mapping with three holes between each mapping
171 * It looks like that:
172 * ----//////-----/////-----///////
174 ok(FsRtlAddLargeMcbEntry(&LargeMcb
, 1024, 1025, 1024) == TRUE
, "expected TRUE, got FALSE\n");
175 DumpAllRuns(&LargeMcb
); // [0,-1,1024][1024,1024,1024]
176 ok(FsRtlAddLargeMcbEntry(&LargeMcb
, 3072, 3072, 1024) == TRUE
, "expected TRUE, got FALSE\n");
177 DumpAllRuns(&LargeMcb
); // [0,-1,1024][1024,1024,1024][2048,-1,1024][3072,3072,1024]
178 ok(FsRtlAddLargeMcbEntry(&LargeMcb
, 5120, 5120, 1024) == TRUE
, "expected TRUE, got FALSE\n");
179 DumpAllRuns(&LargeMcb
); // [0,-1,1024][1024,1024,1024][2048,-1,1024][3072,3072,1024][4096,-1,1024][5120,5120,1024]
181 NbRuns
= FsRtlNumberOfRunsInLargeMcb(&LargeMcb
);
182 ok(NbRuns
== 6, "Expected 6 runs, got: %lu\n", NbRuns
);
184 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 0, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
185 ok(Vbn
== 0, "Expected Vbn 0, got: %I64d\n", Vbn
);
186 ok(Lbn
== -1, "Expected Lbn -1, got: %I64d\n", Lbn
);
187 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
189 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 1, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
190 ok(Vbn
== 1024, "Expected Vbn 1024, got: %I64d\n", Vbn
);
191 ok(Lbn
== 1025, "Expected Lbn 1024, got: %I64d\n", Lbn
);
192 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
194 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 2, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
195 ok(Vbn
== 2048, "Expected Vbn 2048, got: %I64d\n", Vbn
);
196 ok(Lbn
== -1, "Expected Lbn -1, got: %I64d\n", Lbn
);
197 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
199 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 3, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
200 ok(Vbn
== 3072, "Expected Vbn 3072, got: %I64d\n", Vbn
);
201 ok(Lbn
== 3072, "Expected Lbn 3072, got: %I64d\n", Lbn
);
202 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
204 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 4, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
205 ok(Vbn
== 4096, "Expected Vbn 4096, got: %I64d\n", Vbn
);
206 ok(Lbn
== -1, "Expected Lbn -1, got: %I64d\n", Lbn
);
207 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
209 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 5, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
210 ok(Vbn
== 5120, "Expected Vbn 5120, got: %I64d\n", Vbn
);
211 ok(Lbn
== 5120, "Expected Lbn 5120, got: %I64d\n", Lbn
);
212 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
214 /* Fill first hole */
215 ok(FsRtlAddLargeMcbEntry(&LargeMcb
, 0, 1, 1024) == TRUE
, "expected TRUE, got FALSE\n");
216 DumpAllRuns(&LargeMcb
); // [0,1,2048][2048,-1,1024][3072,3072,1024][4096,-1,1024][5120,5120,1024]
218 NbRuns
= FsRtlNumberOfRunsInLargeMcb(&LargeMcb
);
219 ok(NbRuns
== 5, "Expected 5 runs, got: %lu\n", NbRuns
);
221 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 0, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
222 ok(Vbn
== 0, "Expected Vbn 0, got: %I64d\n", Vbn
);
223 ok(Lbn
== 1, "Expected Lbn 1, got: %I64d\n", Lbn
);
224 ok(SectorCount
== 2048, "Expected SectorCount 2048, got: %I64d\n", SectorCount
);
226 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 1, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
227 ok(Vbn
== 2048, "Expected Vbn 2048, got: %I64d\n", Vbn
);
228 ok(Lbn
== -1, "Expected Lbn -1, got: %I64d\n", Lbn
);
229 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
231 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 2, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
232 ok(Vbn
== 3072, "Expected Vbn 3072, got: %I64d\n", Vbn
);
233 ok(Lbn
== 3072, "Expected Lbn 3072, got: %I64d\n", Lbn
);
234 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
236 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 3, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
237 ok(Vbn
== 4096, "Expected Vbn 4096, got: %I64d\n", Vbn
);
238 ok(Lbn
== -1, "Expected Lbn -1, got: %I64d\n", Lbn
);
239 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
241 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 4, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
242 ok(Vbn
== 5120, "Expected Vbn 5120, got: %I64d\n", Vbn
);
243 ok(Lbn
== 5120, "Expected Lbn 5120, got: %I64d\n", Lbn
);
244 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
246 /* Fill half of the last hole and overlap */
247 ok(FsRtlAddLargeMcbEntry(&LargeMcb
, 4608, 4608, 1024) == TRUE
, "expected TRUE, got FALSE\n");
248 DumpAllRuns(&LargeMcb
); // [0,1,2048][2048,-1,1024][3072,3072,1024][4096,-1,512][4608,4608,1536]
250 NbRuns
= FsRtlNumberOfRunsInLargeMcb(&LargeMcb
);
251 ok(NbRuns
== 5, "Expected 5 runs, got: %lu\n", NbRuns
);
253 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 0, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
254 ok(Vbn
== 0, "Expected Vbn 0, got: %I64d\n", Vbn
);
255 ok(Lbn
== 1, "Expected Lbn 1, got: %I64d\n", Lbn
);
256 ok(SectorCount
== 2048, "Expected SectorCount 2048, got: %I64d\n", SectorCount
);
258 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 1, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
259 ok(Vbn
== 2048, "Expected Vbn 2048, got: %I64d\n", Vbn
);
260 ok(Lbn
== -1, "Expected Lbn -1, got: %I64d\n", Lbn
);
261 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
263 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 2, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
264 ok(Vbn
== 3072, "Expected Vbn 3072, got: %I64d\n", Vbn
);
265 ok(Lbn
== 3072, "Expected Lbn 3072, got: %I64d\n", Lbn
);
266 ok(SectorCount
== 1024, "Expected SectorCount 1024, got: %I64d\n", SectorCount
);
268 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 3, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
269 ok(Vbn
== 4096, "Expected Vbn 4096, got: %I64d\n", Vbn
);
270 ok(Lbn
== -1, "Expected Lbn -1, got: %I64d\n", Lbn
);
271 ok(SectorCount
== 512, "Expected SectorCount 512, got: %I64d\n", SectorCount
);
273 ok(FsRtlGetNextLargeMcbEntry(&LargeMcb
, 4, &Vbn
, &Lbn
, &SectorCount
) == TRUE
, "expected TRUE, got FALSE\n");
274 ok(Vbn
== 4608, "Expected Vbn 4608, got: %I64d\n", Vbn
);
275 ok(Lbn
== 4608, "Expected Lbn 4608, got: %I64d\n", Lbn
);
276 ok(SectorCount
== 1536, "Expected SectorCount 1536, got: %I64d\n", SectorCount
);
278 FsRtlUninitializeLargeMcb(&LargeMcb
);