Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 774363
Collapse All | Expand All

(-)a/tests/t0205-gpt-list-clobbers-pmbr.sh (-2 / +2 lines)
Lines 36-43 parted -m -s $dev u s p || fail=1 Link Here
36
36
37
# Write non-NUL bytes all over the MBR, so we're likely to see any change.
37
# Write non-NUL bytes all over the MBR, so we're likely to see any change.
38
# However, be careful to leave the type of the first partition, 0xEE,
38
# However, be careful to leave the type of the first partition, 0xEE,
39
# as well as the final two magic bytes.
39
# as well as the final two magic bytes, 0x55 0xAA.
40
printf '%0450d\xee%059d\x55\xaa' 0 0 | dd of=$dev count=1 conv=notrunc || fail=1
40
printf '%0450d\356%059d\125\252' 0 0 | dd of=$dev count=1 conv=notrunc || fail=1
41
41
42
dd if=$dev of=before count=1 || fail=1
42
dd if=$dev of=before count=1 || fail=1
43
43
(-)a/tests/t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh (-2 / +2 lines)
Lines 32-39 parted -m -s $dev u s p || fail=1 Link Here
32
32
33
# Write non-NUL bytes all over the MBR, so we're likely to see any change.
33
# Write non-NUL bytes all over the MBR, so we're likely to see any change.
34
# However, be careful to leave the type of the first partition, 0xEE,
34
# However, be careful to leave the type of the first partition, 0xEE,
35
# as well as the final two magic bytes.
35
# as well as the final two magic bytes, 0x55 0xAA.
36
printf '%0450d\xee%059d\x55\xaa' 0 0 | dd of=$dev count=1 conv=notrunc || fail=1
36
printf '%0450d\356%059d\125\252' 0 0 | dd of=$dev count=1 conv=notrunc || fail=1
37
37
38
dd if=$dev of=before count=1 || fail=1
38
dd if=$dev of=before count=1 || fail=1
39
39
(-)a/tests/t2500-probe-corrupt-hfs.sh (-3 / +2 lines)
Lines 29-36 compare /dev/null out || fail=1 Link Here
29
29
30
parted -s "$dev" u s p || fail=1
30
parted -s "$dev" u s p || fail=1
31
31
32
# Poke an HFS+ signature into place
32
# Poke an HFS+ signature into place (0x48 0x2B)
33
printf '\x48\x2b' | dd of=$dev seek=$((2048+2)) conv=notrunc || fail=1
33
printf '\110\053' | dd of=$dev seek=$((2048+2)) conv=notrunc || fail=1
34
34
35
# Or, if starting from a valid HFS/HFS+ file system, poke these:
35
# Or, if starting from a valid HFS/HFS+ file system, poke these:
36
# offset 18 total_blocks=0(16b)
36
# offset 18 total_blocks=0(16b)
37
- 

Return to bug 774363