[sheepdog] [PATCH v2] dog: type cast miss at vdi_show_progress

Liu Yuan namei.unix at gmail.com
Wed Feb 11 07:29:58 CET 2015


On Tue, Feb 10, 2015 at 08:34:44PM +0900, Saeki Masaki wrote:
> The result of the multiplication of uint32 and uint64 are rounded to uint32
> So, Progress of the command is displayed sometimes back to 0%
> 
> This is only a display issue, command processing can be completed.
> 
> necessary in show_progress of calculation, change type of idx to uint64_t.
> However, idx in the current Sheepdog is within 32bit number,
> so upper limit check idx, using the max_idx can help us avoid the side effect.
> 

Applied, thanks.

Yuan



More information about the sheepdog mailing list