[parted-devel] [PATCH] Avoid unnecessary writes in test scripts.

Jim Meyering jim at meyering.net
Thu Jun 14 20:55:29 UTC 2007


"Håkon Løvdal" <hlovdal at gmail.com> wrote:
> On 11/06/07, Jim Meyering <jim at meyering.net> wrote:
>
> This change
>
>>      'erase the left-over label' \
>> -    'dd if=/dev/zero of=$dev bs=$N count=1 2> /dev/null'
>> +    'dd if=/dev/zero of=$dev bs=1K count=1 2> /dev/null'
...
> and to me it looks like an error. Is it?

Hi Håkon,

It does look different, but it's supposed to be that way.
Unlike the other test scripts, t0000-basic.sh is used solely
for creating an msdos partition table via mklabel, so a size
of 1KB is more than enough.  It would have worked with bs=512c, too --
but not bs=511c.

Jim



More information about the parted-devel mailing list