From: wangyanqing <udknight@gmail.com>
To: warns@pre-sense.de
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
tj@kernel.org, warns@pre-sense.de, jaxboe@fusionio.com
Subject: [PATCH] fs:partitions:efi.c: bugfix a issue in find_valid_gpt
Date: Mon, 21 Nov 2011 17:38:01 +0800 [thread overview]
Message-ID: <20111121093801.GA1062@udknight.homenetwork> (raw)
I meet a 3T disk, which partitioned by Windows 7,
and linux report unknow partition table. But it can been
detected the partition table when I add gpt to boot
parameter.
This issue caused by the find_valid_gpt function will fail
out when check the legacy mbr failed if there is no gpt boot
parameter.
if boot without gpt, we should fail back to check the guid
partition table when check the legacy mbr failed instead of
fail out.
Signed-off-by: Wang YanQing <udknight@gmail.com>
---
fs/partitions/efi.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/fs/partitions/efi.c b/fs/partitions/efi.c
index 6296b40..302631e 100644
--- a/fs/partitions/efi.c
+++ b/fs/partitions/efi.c
@@ -543,8 +543,6 @@ static int find_valid_gpt(struct parsed_partitions *state, gpt_header **gpt,
good_pmbr = is_pmbr_valid(legacymbr);
kfree(legacymbr);
}
- if (!good_pmbr)
- goto fail;
}
good_pgpt = is_gpt_valid(state, GPT_PRIMARY_PARTITION_TABLE_LBA,
--
1.7.3.4
next reply other threads:[~2011-11-21 9:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-21 9:38 wangyanqing [this message]
2011-11-21 22:33 ` [PATCH] fs:partitions:efi.c: bugfix a issue in find_valid_gpt 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=20111121093801.GA1062@udknight.homenetwork \
--to=udknight@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=jaxboe@fusionio.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
--cc=warns@pre-sense.de \
/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