Using "primary" is fine (and common) as a partition *type* for dos
partition tables, but with a partition table of type GPT, it is
downright misleading to specify the partition *name* as "primary".
* tests/t0220-gpt-msftres.sh: Use "p-name" as partition name,
rather than misleading "primary".
* tests/t7000-scripting.sh: Likewise.
for type in $fs_types; do
end=$(expr $start + $part_size - 1)
echo "$i:${start}s:${end}s:${part_size}s::$type:;" >> exp || fail=1
- parted -s $dev mkpart primary $type ${start}s ${end}s > err 2>&1 || fail=1
+ parted -s $dev mkpart p-name $type ${start}s ${end}s > err 2>&1 || fail=1
compare /dev/null err || fail=1
parted -s $dev name $i $type > err 2>&1 || fail=1
compare /dev/null err || fail=1
dd if=/dev/zero of=testfile bs=${ss}c count=$N 2> /dev/null || fail=1
# Test the scripting mode of $mkpart.
- parted -s testfile -- mklabel gpt "$mkpart" primary ext3 1s -1s > out 2>&1
+ parted -s testfile -- mklabel gpt "$mkpart" p-name ext3 1s -1s > out 2>&1
test $? = 1 || fail=1
# Compare the real error and the expected one
# Test the interactive mode of $mkpart
echo n | \
parted ---pretend-input-tty testfile \
- "mklabel gpt '$mkpart' primary ext3 1s -1s" > out 2>&1 && fail=1
+ "mklabel gpt '$mkpart' p-name ext3 1s -1s" > out 2>&1 && fail=1
# We have to format the output before comparing.
# normalize the actual output