[LTP] [PATCH] mkswap: make the test device size is aligned to pagesize
Cyril Hrubis
chrubis@suse.cz
Tue Aug 9 18:41:18 CEST 2016
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.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list