From: "Ghozlane Toumi" <gtoumi@laposte.net>
To: <Andries.Brouwer@cwi.nl>, <linux-kernel@vger.kernel.org>
Subject: [PATCH] sgi partitionning fix (Was: 2.6.0-test1 on alpha : disk label numbering trouble)
Date: Mon, 28 Jul 2003 23:45:12 +0200 [thread overview]
Message-ID: <041201c35551$8af611c0$0a00a8c0@toumi> (raw)
In-Reply-To: 030201c3550f$dec61620$0a00a8c0@toumi
[-- Attachment #1: Type: text/plain, Size: 517 bytes --]
> quickly checking viro's changes in this area, it seems other partitions
> schemes are touched by the same problem...
I stand corrected. after looking a little bit deeper, the sun partition
has been corrected, the other are not touched.
However, I found out that sgi partitionning had this "renumbering"
issue even before viro's patch.
I don't know if this is correct, in any case this is an untested patch
that changes this behaviour for sgi partitions.
patch is attached because of dumb mailer.
thanks,
ghoz
[-- Attachment #2: partition.diff --]
[-- Type: application/octet-stream, Size: 819 bytes --]
diff -Nr -U4 -X dontdiff linux-2.6.0-test1.orig/fs/partitions/sgi.c linux-2.6.0-test1/fs/partitions/sgi.c
--- linux-2.6.0-test1.orig/fs/partitions/sgi.c Mon Jul 14 05:31:22 2003
+++ linux-2.6.0-test1/fs/partitions/sgi.c Mon Jul 28 23:58:23 2003
@@ -29,9 +29,8 @@
int sgi_partition(struct parsed_partitions *state, struct block_device *bdev)
{
int i, csum, magic;
- int slot = 1;
unsigned int *ui, start, blocks, cs;
Sector sect;
struct sgi_disklabel *label;
struct sgi_partition *p;
@@ -67,9 +66,9 @@
for(i = 0; i < 16; i++, p++) {
blocks = be32_to_cpu(p->num_blocks);
start = be32_to_cpu(p->first_block);
if (blocks)
- put_partition(state, slot++, start, blocks);
+ put_partition(state, i+1, start, blocks);
}
printk("\n");
put_dev_sector(sect);
return 1;
next prev parent reply other threads:[~2003-07-28 22:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-28 13:15 [PATCH] Re: 2.6.0-test1 on alpha : disk label numbering trouble Andries.Brouwer
2003-07-28 13:54 ` Ghozlane Toumi
2003-07-28 21:45 ` Ghozlane Toumi [this message]
2003-07-28 23:09 ` [PATCH] sgi partitionning fix (Was: 2.6.0-test1 on alpha : disk label numbering trouble) Andries Brouwer
2003-07-29 11:00 ` Ghozlane Toumi
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='041201c35551$8af611c0$0a00a8c0@toumi' \
--to=gtoumi@laposte.net \
--cc=Andries.Brouwer@cwi.nl \
--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