Wind River Support Network

HomeDefectsLIN1018-2582
Not to be fixed

LIN1018-2582 : LTP "mkfs01_vfat" and "mkfs01_msdos" failed (additional parameter (-F 16) for mkfs.vfat required)

Created: Oct 10, 2018    Updated: Apr 29, 2021
Resolved Date: Apr 29, 2021
Found In Version: unknown
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: Userspace

Description

This is a bug of LTP test case. The command of "mkfs.vfat" will make 32 bit FAT by default. The number of 16000 is not enough. We need to set additional parameter (-F 16) for mkfs.vfat in test (At the test2() function in mkfs01.sh script in LTP).

The test steps:

1. Build project 

setup.sh --machines intel-x86-64 --distros=wrlinux --dl-layers --accept-eula=yes 

. ./oe-init-build-env build_test 

echo "WRTEMPLATE_append = \" feature/encrypted-storage feature/ima feature/selinux feature/tpm2 feature/efi-secure-boot feature/firewall feature/ids-basic feature/ips feature/openssl-no-weak-ciphers feature/pam-tally2 feature/pam-wheel feature/ltp feature/test\"" >> conf/local.conf 

bitbake wrlinux-image-glibc-std 


2. Deploy image to a target and boot it up 

root@intel-x86-64:/# cat /proc/cmdline 
BOOT_IMAGE=/bzImage root=LABEL=root ro rootwait selinux=0 enforcing=0 
root@intel-x86-64:/# 


3. Run test cases 
/opt/ltp/wrLinux_ltp/wr-runltp -f commands

4. Test result
mkfs01 1 TINFO : Using test device LTP_DEV='/dev/loop0' 
mkfs01 1 TPASS : 'mkfs -t vfat /dev/loop0 ' passed. 
mkfs01 2 TFAIL : 'mkfs -t vfat /dev/loop0 16000' failed. 
Warning: block count mismatch: found 524288 but assuming 16000. 
WARNING: Not enough clusters for a 32 bit FAT! 
mkfs.vfat: Attempting to create a too large filesystem mkfs.fat 4.0 (2016-05-06) 
mkfs01 3 TPASS : 'mkfs -t vfat -c /dev/loop0 ' passed. 
mkfs01 4 TPASS : 'mkfs -V ' passed. 
mkfs01 5 TPASS : 'mkfs -h ' passed. 
<<<execution_status>>> 
initiation_status="ok" 
duration=0 termination_type=exited termination_id=1 corefile=no 
cutime=1 cstime=28 

mkfs01 1 TINFO : Using test device LTP_DEV='/dev/loop0' 
mkfs01 1 TPASS : 'mkfs -t msdos /dev/loop0 ' passed. 
mkfs01 2 TFAIL : 'mkfs -t msdos /dev/loop0 16000' failed. 
Warning: block count mismatch: found 524288 but assuming 16000. 
WARNING: for a 32 bit FAT! 
mkfs.msdos: Attempting to create a too large filesystem mkfs.fat 4.0 (2016-05-06) 
mkfs01 3 TPASS : 'mkfs -t msdos -c /dev/loop0 ' passed. 
mkfs01 4 TPASS : 'mkfs -V ' passed. 
mkfs01 5 TPASS : 'mkfs -h ' passed. 

Steps to Reproduce

1. Build image 

/lpg-build/cdc/fast_prod/wrlinux90RCPL/RCPL0008_LX02/wrlinux-9/setup.sh --machines=intel-x86-64 --kernel=standard --all-layers --layers meta-secure-env --templates feature/efi-secure-boot feature/tpm2 feature/openssl-no-weak-ciphers feature/firewall feature/pam-wheel
feature/pam-tally2 feature/ips feature/test feature/ids-basic --dl-layers --dl-layers

2. Load the image to the target of Intel-NUC5i5 (barcode:25076)

/opt/ltp/wrLinux_ltp/wr-runltp -f commands
Live chat
Online