Fixed
Created: May 18, 2015
Updated: Dec 3, 2018
Resolved Date: Sep 15, 2015
Previous ID: LIN4-32616
Found In Version: unknown
Fix Version: 6.0.0.25
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP
Customer use WRlinux4.3, they upgrade to the latest RCPL 29 from RCPL 25.
They found that the fdisk -l command output is different after upgrade to RCPL 29.
On customer's board, a SPI nor flash is present for boot. With RCPL 25, they use fdisk -l, the /dev/mtdblock0 for the flash device will not listed.
But with RCPL 29 kernel, the fdisk -l will list the /dev/mtdblock0, and print
"Disk /dev/mtdblock0 doesn't contain a valid partition table" to serial console.
This make customer's application in trouble, they parse the fdisk output for their application feature.
From customer's analysis, they think it's related to the change in the drivers/mtd/mtd_blkdevs.c , the blktrans_getgeo return value is different.
According to the strace output with RCPL 25 and RCPL 29, they fount fdisk call HDIO_GETGEO ioctl method, with RCPL 25 , it return -ENOTTY,
with RCPL 29, it return 0.
The change is from the patch mtd-blktrans-Hotplug-fixes.patch, seems Liu Jian integrated it. The patch is attached.
Customer want us to confirm if the return value is correct, and if the fdisk -l command output can keep the same as RCPL 25.
The customer's project is urgent, so please help to check with this issue as soon as possible.