[parted-devel] [PATCH 1/2] parted: mkpart: subtract one sector fron end if IEC unit is used
Petr Uzel
petr.uzel at suse.cz
Wed Nov 2 16:22:20 UTC 2011
On Wed, Nov 02, 2011 at 04:26:24PM +0100, Jim Meyering wrote:
> Petr Uzel wrote:
> ...
> >> Would you please suggest a patch on top of these 4 (which I plan
> >> to merge into yours) that fixes the new failing test?
> >
> > What about the one below?
> ...
> > Subject: [PATCH] parted: fix test failing because of incomplete mkpart & IEC units feature
> >
> > Prior to this fix, if the user specified default unit as one of the IEC
> > ones, but yet used explicit ending sector, parted did adjust the ending
> > sector, which is unwanted. Fix by checking the default unit only if no
> > unit is specified explicitly.
> >
> > * parted/parted.c (_string_has_unit_suffix): New function.
> > (_adjust_end_if_iec): Use _string_has_unit_suffix.
> > * tests/t0208-mkpart-end-in-IEC.sh: Add missing colon to expected
> > output.
> ...
> Thanks. Folded into your two change-sets below,
> along with all other feedback.
>
> Please review. I'll push if/when you ACK.
Reviewed and ACKed.
Thanks,
Petr
--
Petr Uzel
IRC: ptr_uzl @ freenode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20111102/1c55a2c9/attachment.pgp>
More information about the parted-devel
mailing list