[Libguestfs] [PATCH nbdkit v3 2/5] tests: Implement a better nbdkit-partition-filter test.
Richard W.M. Jones
rjones at redhat.com
Wed Jan 23 10:13:45 UTC 2019
On Wed, Jan 23, 2019 at 09:55:00AM +0000, Richard W.M. Jones wrote:
>
> Indeed this test fails:
>
> test dos 2 1 <<'EOF'
> disk2: start=1024 size=1023 type=L
> EOF
>
> with the error "MBR partition 2 not found".
In fact this is because sfdisk interprets "type=L" silently as type=0.
You can't use the short codes instead of type bytes here. Also our
partition filter ignores any partitions with type=0 (should it?).
In any case if I use a proper type byte it works fine.
I'll add the new test anyway.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
More information about the Libguestfs
mailing list