diff options
author | Max Reitz <mreitz@redhat.com> | 2015-02-25 13:08:15 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-03-18 12:05:36 +0100 |
commit | 453b07b13443713f6a632005977c7ccab17e135d (patch) | |
tree | ff855d8104bd4aea79a0b0ba80835f0739a49a98 /block/nbd.c | |
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>
Diffstat (limited to 'block/nbd.c')
0 files changed, 0 insertions, 0 deletions