On Thu, Nov 02, 2017 at 04:04:42AM +0300, Mikhail Vorobyov wrote: > libfdisk/src/sun.c | 4 ++++ > 1 file changed, 4 insertions(+) Applied, thanks. It was in my TODO :-) > diff --git a/libfdisk/src/sun.c b/libfdisk/src/sun.c > index 0526227ce..c058637f5 100644 > --- a/libfdisk/src/sun.c > +++ b/libfdisk/src/sun.c > @@ -543,6 +543,10 @@ static int sun_add_partition( > fdisk_ask_number_set_low(ask, 0); /* minimal */ > fdisk_ask_number_set_default(ask, 0); /* default */ > fdisk_ask_number_set_high(ask, 0); /* maximal */ > + } else if (n == 2) { > + fdisk_ask_number_set_low(ask, 0); /* minimal */ > + fdisk_ask_number_set_default(ask, fdisk_scround(cxt, start)); /* default */ > + fdisk_ask_number_set_high(ask, fdisk_scround(cxt, stop)); /* maximal */ I did a small change to the patch, I think we can use 0 as the default for the 3rd partition. > } else { > fdisk_ask_number_set_low(ask, fdisk_scround(cxt, start)); /* minimal */ > fdisk_ask_number_set_default(ask, fdisk_scround(cxt, start)); /* default */ Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html