From: Andries Brouwer <Andries.Brouwer@cwi.nl>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>,
Andries Brouwer <Andries.Brouwer@cwi.nl>,
akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] partitions/msdos.c
Date: Sun, 27 Feb 2005 00:53:44 +0100 [thread overview]
Message-ID: <20050226235344.GB14236@apps.cwi.nl> (raw)
In-Reply-To: <Pine.LNX.4.58.0502261543190.25732@ppc970.osdl.org>
On Sat, Feb 26, 2005 at 03:46:03PM -0800, Linus Torvalds wrote:
> We should probably do the same for the
> extended partition case, just to be consistent.
True.
diff -uprN -X /linux/dontdiff a/fs/partitions/msdos.c b/fs/partitions/msdos.c
--- a/fs/partitions/msdos.c 2004-12-29 03:39:55.000000000 +0100
+++ b/fs/partitions/msdos.c 2005-02-27 01:10:06.000000000 +0100
@@ -114,6 +114,9 @@ parse_extended(struct parsed_partitions
*/
for (i=0; i<4; i++, p++) {
u32 offs, size, next;
+
+ if (SYS_IND(p) == 0)
+ continue;
if (!NR_SECTS(p) || is_extended_partition(p))
continue;
@@ -430,6 +433,8 @@ int msdos_partition(struct parsed_partit
for (slot = 1 ; slot <= 4 ; slot++, p++) {
u32 start = START_SECT(p)*sector_size;
u32 size = NR_SECTS(p)*sector_size;
+ if (SYS_IND(p) == 0)
+ continue;
if (!size)
continue;
if (is_extended_partition(p)) {
next prev parent reply other threads:[~2005-02-26 23:53 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-26 21:35 Andries Brouwer
2005-02-26 22:04 ` Uwe Bonnes
2005-02-26 22:28 ` Linus Torvalds
2005-02-26 22:35 ` Linus Torvalds
2005-02-26 23:24 ` Uwe Bonnes
2005-02-26 23:46 ` Linus Torvalds
2005-02-26 23:53 ` Andries Brouwer [this message]
2005-02-26 22:52 ` Andries Brouwer
2005-02-26 23:12 ` Linus Torvalds
2005-02-26 23:40 ` Andries Brouwer
2005-02-26 23:49 ` Linus Torvalds
2005-02-27 0:47 ` Uwe Bonnes
2005-02-27 1:04 ` Linus Torvalds
2005-02-27 14:33 ` Uwe Bonnes
2005-02-27 1:07 ` Andries Brouwer
2005-03-01 6:53 ` Rogier Wolff
2005-03-19 21:54 ` Werner Almesberger
2005-03-19 22:28 ` Grzegorz Kulewski
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=20050226235344.GB14236@apps.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=akpm@osdl.org \
--cc=bon@elektron.ikp.physik.tu-darmstadt.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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®