Wind River Support Network

HomeDefectsLIN6-7136
Fixed

LIN6-7136 : [WRL6] wr-runltp should be updated: do not mount loop device on /tmp for NFS rootfs

Created: Apr 15, 2014    Updated: Dec 3, 2018
Resolved Date: Jun 24, 2014
Found In Version: 6.0.0.6
Fix Version: 6.0.0.9
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

In wr-runltp script, it will mount ext4 file system on /tmp over loop device:
# mount ext4 file system on /tmp over loop device on NFS
mount_tmp()
{
......
    [[ $(df -P -T /tmp | tail -1 | awk '{print $2}' ) =~ ext(3|4) ]] || {
......
}

In WRLinux6, /tmp is already mounted as tmpfs, so it is incorrect to remount /tmp as ext4 fs via loop device.

If ltp needs run some testcases of extX fs (with NFS rootfs), please make ext fs with loop device and mount it on another point expect /tmp.

Steps to Reproduce

1, build project with --enable-test=yes
2, boot wrlinux from NFS
3, run ltp:
/opt/ltp/wrLinux_ltp/wr-runltp

Other Downloads


Live chat
Online