bug#23511: extra sector in resize

Шокуров Антон <[email protected]>
Newsgroups gmane.comp.gnu.parted.bugs
Message-ID <[email protected]>
Dear parted developers!

Recently i had to resize one of my partitions.
i decided to give the ending in mibs, so i set the units to mibs.
Then i entered the resirepart command and had set the new ending.
Being pedantic i decided to check the byte value (set the unit to b beforehand), and it showed that apparently there was actually a extra sector added it its ending.

So, i deiced to do it another way. I recreated the partition (removed the partition and created again). And it worked. There was no extra sector being added to the ending value.

Verdict, there is a bug in the resizepart command (in comparison with the mkpart command command the ending value it being processed differently, which by itself is a bad programming style...)

Thanks!
Anton
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.