]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-nbd.c
qemu-nbd: Detect unused partitions by system == 0
authorMax Reitz <mreitz@redhat.com>
Wed, 25 Feb 2015 18:08:15 +0000 (13:08 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Mar 2015 11:05:36 +0000 (12:05 +0100)
commit453b07b13443713f6a632005977c7ccab17e135d
treeff855d8104bd4aea79a0b0ba80835f0739a49a98
parent2b21233061696feed434317a70e0a8b74f956ec8
qemu-nbd: Detect unused partitions by system == 0

Unused partitions do not necessarily have a total sector count of 0
(although they should have), but they always do have the system field
set to 0, so use that for testing whether a partition is in use rather
than the sector count field alone.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <1424887718-10800-3-git-send-email-mreitz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-nbd.c