[Libvir] PATCH: 14/16: disk partition backend

Jim Meyering jim at meyering.net
Fri Feb 15 19:12:47 UTC 2008


"Daniel P. Berrange" <berrange at redhat.com> wrote:
> On Fri, Feb 15, 2008 at 07:52:37PM +0100, Jim Meyering wrote:
>> "Daniel P. Berrange" <berrange at redhat.com> wrote:
...
>> Shouldn't size be 1 larger?  i.e.,
>>
>>         unsigned long long size =
>>             dev->freeExtents[i].end -
>>             dev->freeExtents[i].start + 1;
>
> I don't think so - the +1  adjustment is already done in the libvirt_parthelper
> program, but I'll double-check

Yes, you're right:
(from that same patch):

+        /* We do +1 on geom.end, because we want end of the last sector
+         * in bytes, not the last sector number




More information about the libvir-list mailing list