From: Tejun Heo <htejun@gmail.com>
To: Fajun Chen <fajunchen@gmail.com>
Cc: linux-ide@vger.kernel.org, jgarzik@pobox.com
Subject: Re: Some questions about new EH in libata
Date: Tue, 29 Aug 2006 11:16:36 +0900 [thread overview]
Message-ID: <44F3A384.4080505@gmail.com> (raw)
In-Reply-To: <8202f4270608281751v7cddfdddo28ba1b86eb43e60f@mail.gmail.com>
Fajun Chen wrote:
>> You can use SCSI userscan interface.
>>
> Is this a scsi command? I looked at scsi spec and haven't found it
> yet. I know how to initiate user scan from proc or sysfs,
Yeap, that's what I meant.
> but there is
> no way to know the result of user scan through proc or sysfs. I'm
> looking for a way to check when a pata drive is back online after a
> power cycle. May I issue userscan periodically until its result
> indicates pata drive is available?
Hmmm.. When new devices are attached, hotplug events are generated. I
think that's the only way to get any result back, so when it fails,
there's no indication. Periodically repeating userscan request should
be fine although it may result in an extra reset after successfully
detecting the device. That shouldn't hurt too much.
--
tejun
next prev parent reply other threads:[~2006-08-29 2:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-22 4:54 Some questions about new EH in libata Fajun Chen
2006-08-22 5:10 ` Tejun Heo
2006-08-22 15:40 ` Fajun Chen
2006-08-22 15:51 ` Tejun Heo
2006-08-29 0:51 ` Fajun Chen
2006-08-29 2:16 ` Tejun Heo [this message]
2006-08-29 15:51 ` Fajun Chen
2006-08-29 16:00 ` Tejun Heo
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=44F3A384.4080505@gmail.com \
--to=htejun@gmail.com \
--cc=fajunchen@gmail.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@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).