[LTP] [PATCH] mkswap: make the test device size is aligned to pagesize

Cyril Hrubis
2016-08-09T16:41:18Z

Hi!
> We get failures like below because of 'DEVICE_SIZE-10000' makes the
> loop device size is not aligned to system PAGE_SIZE any more.

What version of mkswap.c you have?

Looking into util-linux-2.26.2 all it does with user specified number of
blocks is:

ctl.npages = blks / (ctl.pagesize / 1024);

There is no check that blks is divideable by pagesize/1024.