From: Tom Vier <tmv@comcast.net>
To: Sven Luther <sven.luther@wanadoo.fr>
Cc: linuxppc-dev@lists.linuxppc.org, linux-raid@vger.kernel.org
Subject: Re: Root Drive Mirroring and LVM.
Date: Wed, 28 Jan 2004 20:01:01 -0500 [thread overview]
Message-ID: <20040129010101.GA13800@zero> (raw)
In-Reply-To: <20040127093213.GA10049@iliana>
[-- Attachment #1: Type: text/plain, Size: 585 bytes --]
On Tue, Jan 27, 2004 at 10:32:13AM +0100, Sven Luther wrote:
> Seems ok for me. Also, i guess that there are other partition types,
> like the amiga partitition table the pegasos boxes mostly use, which has
> a 32bit identifier for partition types. I guess it is the task of the
> RAID code to have some per partition type checking for this RAID autodetect
> magic.
it's done in fs/partitions/. it could be made anything, as long as it's put
in the raid docs so people know.
here's a patch of mine for alpha, to give you an idea.
--
Tom Vier <tmv@comcast.net>
DSA Key ID 0xE6CB97DA
[-- Attachment #2: part-fstype.diff --]
[-- Type: text/plain, Size: 1386 bytes --]
diff -urN linux-2.4.10-ac7-patched-build/fs/partitions/osf.c linux-2.4.10-ac7-patched-build-osf/fs/partitions/osf.c
--- linux-2.4.10-ac7-patched-build/fs/partitions/osf.c Sat Oct 6 13:25:48 2001
+++ linux-2.4.10-ac7-patched-build-osf/fs/partitions/osf.c Sat Oct 6 13:25:20 2001
@@ -7,6 +7,7 @@
* Re-organised Feb 1998 Russell King
*/
+#include <linux/config.h>
#include <linux/fs.h>
#include <linux/genhd.h>
#include <linux/kernel.h>
@@ -17,6 +18,10 @@
#include "check.h"
#include "osf.h"
+#if CONFIG_BLK_DEV_MD
+extern void md_autodetect_dev(kdev_t dev);
+#endif
+
int osf_partition(struct gendisk *hd, struct block_device *bdev,
unsigned long first_sector, int current_minor)
{
@@ -74,10 +79,16 @@
for (i = 0 ; i < le16_to_cpu(label->d_npartitions); i++, partition++) {
if ((current_minor & mask) == 0)
break;
- if (le32_to_cpu(partition->p_size))
- add_gd_partition(hd, current_minor,
- first_sector+le32_to_cpu(partition->p_offset),
- le32_to_cpu(partition->p_size));
+ if (le32_to_cpu(partition->p_size)) {
+ add_gd_partition(hd, current_minor,
+ first_sector+le32_to_cpu(partition->p_offset),
+ le32_to_cpu(partition->p_size));
+#if CONFIG_BLK_DEV_MD
+ if (partition->p_fstype == LINUX_RAID_PARTITION) {
+ md_autodetect_dev(MKDEV(hd->major,current_minor));
+ }
+#endif
+ }
current_minor++;
}
printk("\n");
next prev parent reply other threads:[~2004-01-29 1:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <868055F9-5045-11D8-8066-00039382032A@mindspring.com>
2004-01-27 8:01 ` Root Drive Mirroring and LVM Atro Tossavainen
2004-01-27 9:32 ` Sven Luther
2004-01-27 9:50 ` Ethan Benson
2004-01-29 1:01 ` Tom Vier [this message]
2004-01-29 7:22 ` Sven Luther
2004-01-28 1:42 ` Neil Brown
2004-01-28 8:15 ` Sven Luther
2004-02-04 18:23 ` linas
2004-03-23 7:27 ` Atro Tossavainen
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=20040129010101.GA13800@zero \
--to=tmv@comcast.net \
--cc=linux-raid@vger.kernel.org \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=sven.luther@wanadoo.fr \
/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).