[Cluster-devel] [PATCH] mkfs.gfs2: Add a progress indicator to mkfs.gfs2

Andrew Price anprice at redhat.com
Mon Oct 12 15:37:47 UTC 2015


On 11/10/15 14:37, Paul Evans wrote:
> On 25/09/15 09:38, Andrew Price wrote:
>> Would a running rgrp count/total be a more natural progress indicator
>> than the rgrp address I wonder?
>
> I would agree that a running rgrp count/total would be a more natural
> progress but I did not see a way to check the total number of resource
> groups that were needed. It appears that the total is only known after
> all the rgrps have all been built and placed (sdp->rgrps is only updated
> after the resource group has been placed).
>
> If I have missed out on another location to find the total number of
> resource groups to be built beforehand I am more than happy to move away
> from the rgrp address here.

The information is available once lgfs2_rgrps_plan() has been called but 
until now it has been hidden away. I've just sent a patch to fix that by 
returning the planned rgrp count from that function instead of a rgrp 
size (which mkfs.gfs2 currently throws away).

Cheers,
Andy




More information about the Cluster-devel mailing list