Lines Matching +full:2 +full:gb
39 IMG="${OUT_DIR}/3GB"
44 # $BIG_FILE is the name of the 2.5GB file in the file system image
45 BIG_FILE="2.5GB.file"
111 # 2nd parameter is the filesystem - fat16 ext4 etc
115 case "$2" in
153 # 2nd parameter is file system type - fat16/ext4/...
165 case "$2" in
180 echo "Unhandled filesystem $2. Exiting!"
234 # Test Case 2a - size of small file
238 # Test Case 2b - size of small file via a path using '..'
243 # 2.5GB (1024*1024*2500) is 0x9C40 0000
276 # Test Case 7a - One from the last 1MB chunk of 2GB
279 # Test Case 7b - One from the last 1MB chunk of 2GB
284 # Test Case 8a - One from the start 1MB chunk from 2GB
287 # Test Case 8b - One from the start 1MB chunk from 2GB
292 # Test Case 9a - One 1MB chunk crossing the 2GB boundary
295 # Test Case 9b - One 1MB chunk crossing the 2GB boundary
300 # Test Case 10 - 2MB chunk from the last 1MB of big file
327 ${PREFIX}${WRITE} host${SUFFIX} $addr ${FPATH}./${FILE_WRITE}2 \$filesize
329 ${PREFIX}load host${SUFFIX} $addr ${FPATH}./${FILE_WRITE}2
334 ${PREFIX}load host${SUFFIX} $addr ${FPATH}${FILE_WRITE}2
345 # 2nd argument is the file where we generate the md5s of the files
348 # $GB2p5 is the path of the big file (2.5 GB)
360 # Note that we work only on the start 1MB, couple MBs in the 2GB range
361 # and the last 1 MB of the huge 2.5GB file.
366 sudo dd if=/dev/urandom of="${GB2p5}" bs=1M count=2 seek=2047 \
384 dd if="${MB1}" bs=1M skip=0 count=1 2> /dev/null | md5sum > "$2"
389 2> /dev/null | md5sum >> "$2"
393 2> /dev/null | md5sum >> "$2"
395 # One from the last 1MB chunk of 2GB
397 2> /dev/null | md5sum >> "$2"
399 # One from the start 1MB chunk from 2GB
401 2> /dev/null | md5sum >> "$2"
403 # One 1MB chunk crossing the 2GB boundary
404 dd if="${GB2p5}" bs=512K skip=4095 count=2 \
405 2> /dev/null | md5sum >> "$2"
426 # 2nd parameter is the file we grep, for that string
436 md5_src=`grep -A2 "$1" "$2" | grep "md5 for" | tr -d '\r'`
442 # the 2nd field is the actual md5
453 # 2nd parameter is the name of the file containing the md5 expected
464 # Check if the ls is showing correct results for 2.5 gb file
473 egrep -A3 "Test Case 2a " "$1" | grep -q "filesize=100000"
476 egrep -A3 "Test Case 2b " "$1" | grep -q "filesize=100000"
479 # Check size command on 2.5GB.file
486 check_md5 "Test Case 4b " "$1" "$2" 1 "TC4: load from $3"
488 # Check first mb of 2.5GB.file
491 check_md5 "Test Case 5b " "$1" "$2" 2 "TC5: load of 1st MB from $4"
493 # Check last mb of 2.5GB.file
496 check_md5 "Test Case 6b " "$1" "$2" 3 "TC6: load of last MB from $4"
498 # Check last 1mb chunk of 2gb from 2.5GB file
500 pass_fail "TC7: load of last 1mb chunk of 2GB from $4 size"
501 check_md5 "Test Case 7b " "$1" "$2" 4 \
502 "TC7: load of last 1mb chunk of 2GB from $4"
504 # Check first 1mb chunk after 2gb from 2.5GB file
506 pass_fail "TC8: load 1st MB chunk after 2GB from $4 size"
507 check_md5 "Test Case 8b " "$1" "$2" 5 \
508 "TC8: load 1st MB chunk after 2GB from $4"
510 # Check 1mb chunk crossing the 2gb boundary from 2.5GB file
512 pass_fail "TC9: load 1MB chunk crossing 2GB boundary from $4 size"
513 check_md5 "Test Case 9b " "$1" "$2" 6 \
514 "TC9: load 1MB chunk crossing 2GB boundary from $4"
516 # Check 2mb chunk from the last 1MB of 2.5GB file loads 1MB
518 pass_fail "TC10: load 2MB from the last 1MB of $4 loads 1MB"
523 check_md5 "Test Case 11b " "$1" "$2" 1 \
533 check_md5 "Test Case 13b " "$1" "$2" 1 \
535 check_md5 "Test Case 13c " "$1" "$2" 1 \
550 > ${OUT_FILE} 2>&1
605 > ${OUT_FILE} 2>&1