[PATCH 8/8] Limit displayed filesystem size to two decimal places

Vratislav Podzimek vpodzime at redhat.com
Thu Apr 10 17:58:37 UTC 2014


On Thu, 2014-04-10 at 08:54 -0400, David Lehman wrote:
> On Wed, 2014-04-09 at 17:15 +0200, Vratislav Podzimek wrote:
> > Should be enough.
> 
> It's not. When saving changes to a device we read the value from the
> size entry and compare it to the device's current size to determine if
> the size has changed. This will trigger spurious resize requests for
> existing devices whose size is not fully expressed within two decimal
> places. I'd be comfortable with rounding down to the nearest MiB before
> comparing old and new size in save_right_side as a quick way to make
> this patch viable.
Ah, okay, I've tested the change and didn't notice the difference. I'll
rework the patch later. For now, I'm just dropping it from the set and
pushing the others. Thanks!

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list