Lines Matching full:zero
62 expected_zero="$zero" # Space-separated list of zero subcluster indexes
91 # zero -> write -z
100 zero)
156 alloc="0"; zero=""
160 alloc="0 1"; zero=""
164 alloc="0 1 2"; zero=""
168 alloc="0 1 2 3"; zero=""
172 alloc="$(seq 0 6)"; zero=""
176 alloc="$(seq 0 9)"; zero=""
180 alloc="$(seq 0 9) 16"; zero=""
184 alloc="$(seq 0 9) 16 31"; zero=""
186 alloc="0 1" ; zero=""
189 ### Zero subcluster #1
190 alloc="0 $(seq 2 9) 16 31"; zero="1"
191 _run_test sc=1 len=2k cmd=zero
193 ### Zero cluster #0
194 alloc=""; zero="$(seq 0 31)"
195 _run_test sc=0 len=64k cmd=zero
198 alloc="$(seq 0 31)"; zero=""
201 ### Zero and unmap half of cluster #0 (this won't unmap it)
202 alloc="$(seq 16 31)"; zero="$(seq 0 15)"
205 ### Zero and unmap cluster #0
206 alloc=""; zero="$(seq 0 31)"
210 alloc="1"; zero="0 $(seq 2 31)"
214 alloc="$(seq 0 31)"; zero=""
218 alloc=""; zero="$(seq 0 31)"
222 alloc=""; zero=""
226 alloc="$(seq 0 31)"; zero=""
243 alloc="$(seq 12 31)"; zero=""
247 alloc="13"; zero=""
251 alloc="14"; zero=""
253 alloc=""; zero="14"
254 _run_test c=2 sc=14 len=2k cmd=zero
257 alloc="$(seq 0 16)"; zero=""
261 alloc="$(seq 12 31)"; zero=""
263 alloc="$(seq 0 31)"; zero=""
267 alloc="$(seq 0 16)"; zero=""
283 alloc=""; zero="$(seq 0 31)"
284 _run_test c=0 sc=0 len=192k cmd=zero
289 alloc=""; zero="$(seq 16 31)"
290 _run_test c=3 sc=16 len=128k cmd=zero
291 alloc=""; zero="$(seq 0 31)"
293 alloc=""; zero="$(seq 0 15)"
298 alloc="15"; zero="$(seq 16 31)" # copy-on-write happening here
300 alloc=""; zero="$(seq 15 31)"
302 _run_test c=6 sc=15 off=1 len=128k cmd=zero
303 alloc=""; zero="$(seq 0 31)"
306 alloc="15"; zero="$(seq 0 14)" # copy-on-write happening here
308 alloc=""; zero="$(seq 0 15)"
315 alloc="$(seq 0 31)"; zero=""
327 alloc=""; zero="$(seq 0 31)"
328 _run_test c=9 sc=0 len=192k cmd=zero
333 alloc="$(seq 0 15)"; zero="$(seq 16 31)"
334 _run_test c=12 sc=16 len=128k cmd=zero
335 alloc=""; zero="$(seq 0 31)"
337 alloc="$(seq 16 31)"; zero="$(seq 0 15)"
341 alloc="$(seq 0 15)"; zero="$(seq 16 31)"
342 _run_test c=15 sc=15 off=1 len=128k cmd=zero
343 alloc=""; zero="$(seq 0 31)"
345 alloc="$(seq 15 31)"; zero="$(seq 0 14)"
351 alloc=""; zero=""
357 alloc=""; zero="$(seq 0 31)"
358 _run_test c=18 sc=0 len=192k cmd=zero
363 # We cannot partially zero a compressed cluster so the code
367 alloc="$(seq 0 31)"; zero=""
368 _run_test c=21 sc=16 len=128k cmd=zero
378 alloc="$(seq 0 31)"; zero=""
379 _run_test c=24 sc=15 off=1 len=129k cmd=zero
389 alloc="$(seq 0 15)"; zero="$(seq 16 31)"
390 _run_test c=27 sc=15 off=1 len=128k cmd=zero
391 alloc=""; zero="$(seq 0 31)"
394 alloc="15"; zero="$(seq 0 14)" # copy-on-write happening here
396 alloc=""; zero="$(seq 0 15)"
408 alloc="15 19"; zero="$(seq 16 18)" # copy-on-write happening here
410 alloc=""; zero="$(seq 15 19)"
412 _run_test c=30 sc=15 off=1 len=8k cmd=zero
416 alloc=""; zero="$(seq 0 17)"
417 _run_test c=32 sc=0 len=35k cmd=zero
424 # Zero + unmap
427 echo "### Zero + unmap 1: allocated clusters (backing file: $use_backing_file) ###"
431 alloc="$(seq 0 31)"; zero=""
443 alloc=""; zero="$(seq 0 31)"
449 alloc="$(seq 0 15)"; zero="$(seq 16 31)"
451 alloc=""; zero="$(seq 0 31)"
453 alloc="$(seq 16 31)"; zero="$(seq 0 15)"
457 alloc="$(seq 0 15)"; zero="$(seq 16 31)"
459 alloc=""; zero="$(seq 0 31)"
461 alloc="$(seq 15 31)"; zero="$(seq 0 14)"
465 echo "### Zero + unmap 2: compressed clusters (backing file: $use_backing_file) ###"
467 alloc=""; zero=""
473 alloc=""; zero="$(seq 0 31)"
479 # We cannot partially zero a compressed cluster so the code
483 alloc="$(seq 0 31)"; zero=""
494 alloc="$(seq 0 31)"; zero=""
505 alloc="$(seq 0 15)"; zero="$(seq 16 31)"
507 alloc=""; zero="$(seq 0 31)"
510 alloc="15"; zero="$(seq 0 14)" # copy-on-write happening here
512 alloc=""; zero="$(seq 0 15)"
524 echo "### Discarding clusters with non-zero bitmaps (backing file: $use_backing_file) ###"
535 # cluster, so both clusters have all zero bits set now
536 alloc=""; zero="$(seq 0 31)"
541 # Discard cluster #0 again to see how the zero bits have changed
546 # A normal discard sets all 'zero' bits only if the image has a
549 alloc=""; zero="$(seq 0 31)"
551 alloc=""; zero="$(seq 0 15)"
558 alloc=""; zero="$(seq 0 31)"
560 alloc=""; zero=""
575 echo "# 'cluster is zero' bit set on the standard cluster descriptor"
578 # The 'cluster is zero' bit is unused in extended L2 entries so
584 alloc="0"; zero=""
588 alloc="0"; zero=""
593 echo "# Both 'subcluster is zero' and 'subcluster is allocated' bits set"
600 alloc="$(seq 0 31)"; zero="0"
607 echo "# 'cluster is zero' bit set on the standard cluster descriptor"
610 # The 'cluster is zero' bit is unused in extended L2 entries so
618 alloc=""; zero=""
622 alloc="0"; zero=""
634 alloc="0"; zero=""
639 echo "# Both 'subcluster is zero' and 'subcluster is allocated' bits set"
647 alloc="0"; zero="0"
660 alloc="31"; zero="0"
665 alloc="$(seq 0 31)"; zero=""
827 alloc="13 18"; zero="7"
852 alloc="$(seq 13 18)"; zero="7" _verify_l2_bitmap 0
853 alloc="$(seq 10 18)"; zero="7" _verify_l2_bitmap 1
854 alloc="$(seq 13 20)"; zero="7" _verify_l2_bitmap 2
855 alloc="$(seq 13 18)"; zero="7" _verify_l2_bitmap 3
856 alloc="$(seq 7 18)"; zero="" _verify_l2_bitmap 4
857 alloc="$(seq 0 18)"; zero="" _verify_l2_bitmap 5
858 alloc="13 18"; zero="7 15 16" _verify_l2_bitmap 6
859 alloc="18"; zero="7 13" _verify_l2_bitmap 7
860 alloc="$(seq 13 18)"; zero="7" _verify_l2_bitmap 8
861 alloc="13 18"; zero="6 7" _verify_l2_bitmap 9
966 TEST_IMG="$TEST_IMG.top" alloc="1 30" zero="" _verify_l2_bitmap 0
1029 TEST_IMG="$TEST_IMG.top" alloc="" zero="" _verify_l2_bitmap 0
1030 TEST_IMG="$TEST_IMG.top" alloc="" zero="" _verify_l2_bitmap 1
1031 TEST_IMG="$TEST_IMG.top" alloc="" zero="" _verify_l2_bitmap 2