commit | 453b07b13443713f6a632005977c7ccab17e135d | [log] [tgz] |
---|---|---|
author | Max Reitz <mreitz@redhat.com> | Wed Feb 25 13:08:15 2015 -0500 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Wed Mar 18 12:05:36 2015 +0100 |
tree | ff855d8104bd4aea79a0b0ba80835f0739a49a98 | |
parent | 2b21233061696feed434317a70e0a8b74f956ec8 [diff] |
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>