linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Serge A. Suchkov" <ss@e1.bmstu.ru>
To: "lkml" <linux-kernel@vger.kernel.org>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [Oops report]: 2.6.0-test1-ac1 oops in umount mass-storage device
Date: Fri, 25 Jul 2003 12:53:00 +0400	[thread overview]
Message-ID: <03072512530004.15954@XP1700> (raw)
In-Reply-To: <03072313251400.10306@XP1700>

> 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

      parent reply	other threads:[~2003-07-25  8:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-23  9:25 [Oops report]: 2.6.0-test1-ac1 oops in umount mass-storage device Serge A. Suchkov
2003-07-23 14:24 ` Greg KH
2003-07-25  8:53 ` Serge A. Suchkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=03072512530004.15954@XP1700 \
    --to=ss@e1.bmstu.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).