[PATCH RFC 0/1] RAMDISK: doing write barrier will return -EIO

Richard Zhu Hong-Xing.Zhu at freescale.com
Tue Apr 12 02:18:57 EDT 2011


---
 drivers/block/brd.c |    6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Encounter one RAMDISK issue when use the RAMDISK as the removable
device through USB OTG on MX51 BBG board.
I think it's a general issue in such kind of implementation.


Here are the reproduce steps:
1. enable ramdisk in kernel and make default size to 16M.
2. connect board to PC through USB otg port.
3. modprobe g_file_storage file=/dev/ram0 removable=1.
4. check the removable usb devices on PC and need to be formatted
then write a file to this disk. found data error when create a new
file on disk in window explore





More information about the linux-arm-kernel mailing list