History log of /external/ltp/testcases/commands/mkswap/mkswap01.sh
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8435d0c7283b846b9828b2b7e69e8ec1cb42601f 03-Mar-2016 Cyril Hrubis <chrubis@suse.cz> commands/mkswap: Do not TWARN on missing symlink

Apparently the symlink is not the only way how to find a device by its
label. Some versions of swapon use libblkid to probe first 512 bytes of
each block device as well. Unfortunately this is not always case and
there are systems that will fail when the symlink wasn't created yet and
there are systems that does not create the symlink at all.

So the best we can do here is to change the TWARN to TINFO so that the
test works fine in a case that symlink was not created but swapon probes
block devices to get the right device for a given label.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Signed-off-by: Shuang Qiu <shuang.qiu@oracle.com>
/external/ltp/testcases/commands/mkswap/mkswap01.sh
a76b72ad31fa7bb22a09f323dadd5db7c00c7f56 14-Jan-2016 Cyril Hrubis <chrubis@suse.cz> commands/mkswap01: Fix race

It can take up to 10ms for the /dev/disk/by-* files to appear after we
do the mkswap -L or mkswap -U. Now the test waits up to 100ms for the
files to be created before it calls swapon.

This fixes random sporadic failures I've seen on some systems.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/commands/mkswap/mkswap01.sh
ba8c49f0b242033760a8b62f76f6939fedec5923 14-Jan-2016 Cyril Hrubis <chrubis@suse.cz> commands/mkswap: Properly quote parameters

Fixes failures on debian where dash shell breaks the "-L ltp_testswap"
on space when it's assigned as device=$3.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/commands/mkswap/mkswap01.sh
d930040eeec41479ade2367dacff821e5bd118cf 20-Nov-2015 Guangwen Feng <fenggw-fnst@cn.fujitsu.com> commands/mkswap: Added new testcase to test mkswap(8).

Test mkswap(8) command with some basic options.

Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
/external/ltp/testcases/commands/mkswap/mkswap01.sh