From: Chuck Ebbert <76306.1226@compuserve.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: How can I simulate disk failure on 2.4?
Date: Tue, 8 Apr 2003 23:57:07 -0400 [thread overview]
Message-ID: <200304090000_MC3-1-339D-2D93@compuserve.com> (raw)
I need some kind of way to fail a single disk partition (hdg8) while the
system is running, then reenable it. It doesn't have to be general-purpose
and
I don't mind doing ugly hacks to the disk code to make it happen.
I was thinking of putting a flag in /proc somewhere, along with some code
in generic_make_request like this:
if (proc_fail_the_disk && bh->b_rdev == the_disk)
do_something_to_the_request;
What field could I change in the request that would make it fail without
causing too many side effects? (I suppose I'd learn a lot by
just picking a likely field and whacking it, but I'm not sure I want to
try and debug the mess.)
Is this even the right approach at all?
--
Chuck
next reply other threads:[~2003-04-09 3:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-09 3:57 Chuck Ebbert [this message]
2003-04-09 5:11 ` Andrew Morton
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=200304090000_MC3-1-339D-2D93@compuserve.com \
--to=76306.1226@compuserve.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®