From: Walt H <waltabbyh@comcast.net>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] pdcraid and weird IDE geometry
Date: Fri, 18 Jul 2003 07:51:45 -0700 [thread overview]
Message-ID: <3F180981.8040508@comcast.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
Just to finish this thread. In case anyone else has similar problems of
only detecting 1 drive of their array and you suspect strange geometry
is at play, here's the simple patch I used in the end which WFM :)
-Walt
[-- Attachment #2: pdcraid.patch --]
[-- Type: text/plain, Size: 490 bytes --]
--- /usr/src/temp/linux-2.4.21/drivers/ide/raid/pdcraid.c 2003-06-13 07:51:34.000000000 -0700
+++ pdcraid.c 2003-07-18 06:54:25.000000000 -0700
@@ -361,7 +361,8 @@
if (ideinfo->sect==0)
return 0;
- lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
+/* lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
lba = lba * (ideinfo->head*ideinfo->sect);
- lba = lba - ideinfo->sect;
+ lba = lba - ideinfo->sect; */
+ lba = ideinfo->capacity - ideinfo->sect;
return lba;
next reply other threads:[~2003-07-18 15:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-18 14:51 Walt H [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-07-17 2:26 [PATCH] pdcraid and weird IDE geometry Walt H
2003-07-17 8:49 ` Arjan van de Ven
2003-07-17 14:37 ` Walt H
2003-07-17 14:58 ` Alan Cox
2003-07-17 15:34 ` Jeff Garzik
2003-07-17 16:03 ` Andries Brouwer
2003-07-17 15:34 ` Andries Brouwer
2003-07-18 2:33 ` Walt H
2003-07-18 8:58 ` Andries Brouwer
2003-07-18 13:56 ` Walt H
2003-07-17 12:19 ` David Zaffiro
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=3F180981.8040508@comcast.net \
--to=waltabbyh@comcast.net \
--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