lkml.org 
[lkml]   [2003]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [Oops report]: 2.6.0-test1-ac1 oops in umount mass-storage device
Date
> Hi,
>
> Today I have oops in 2.6.0-test1-ac1, described below.
> I have USB plugged CF card Reader/Writer with CF card inside.
> I'm mount this device as SCSI /dev/sda1 device
>
> Next actions I'm comment by my dmesg output ...
>
> 1) Eject CF card from CF Reader without umount, and insert CF in digital

I'm sorry. Oops was take place not after _eject_ CF, but after _disconnect_
USB CF reader/writer...

I wrote small script, which demonstrate described problem...

------- test-usb-storage.sh -----------
#!/bin/bash
SCSI_DEVICE=/dev/sda1
MOUNT_POINT=/mnt
IS_USB_STORAGE_DEVICE_UP=`cat /proc/bus/usb/devices | grep Driver=usb-storage`
IS_MOUNT=`mount | grep $MOUNT_POINT`
if [ "$IS_MOUNT" != "" ]
then
echo "$MOUNT_POINT mark as already mounted ..."
echo $IS_MOUNT
exit
fi

if [ "$IS_USB_STORAGE_DEVICE_UP" = "" ]
then
echo "USB storage device not found ..."
exit
fi

mount $SCSI_DEVICE -t auto $MOUNT_POINT -o user

if [ $? != 0 ]
then
echo "Can't mount $SCSI_DEVICE";
exit
fi

echo Disconnect USB storage device now...
while [ "$IS_USB_STORAGE_DEVICE_UP" != "" ]
do
sleep 1
IS_USB_STORAGE_DEVICE_UP=`cat /proc/bus/usb/devices | grep Driver=usb-storage`
done
umount $MOUNT_POINT
echo $?k !
------- test-usb-storage.sh -----------

--
/SS
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [from the cache]
©2003-2011 Jasper Spaans