提交 f8f06603 编写于 作者: P Philippe De Muyter 提交者: Linus Torvalds

partitions/msdos: enumerate also AIX LVM partitions

Graft AIX partitions enumeration into partitions/msdos.c

There is already a AIX disks detection logic in msdos.c.  When an AIX disk
has been found, and if configured to, call the aix partitions recognizer.
This avoids removal of AIX disks protection from msdos.c, avoids code
duplication, and ensures that AIX partitions enumeration is called before
plain msdos partitions enumeration.
Signed-off-by: NPhilippe De Muyter <phdm@macqel.be>
Cc: Karel Zak <kzak@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 6ceea22b
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "check.h" #include "check.h"
#include "msdos.h" #include "msdos.h"
#include "efi.h" #include "efi.h"
#include "aix.h"
/* /*
* Many architectures don't like unaligned accesses, while * Many architectures don't like unaligned accesses, while
...@@ -462,8 +463,12 @@ int msdos_partition(struct parsed_partitions *state) ...@@ -462,8 +463,12 @@ int msdos_partition(struct parsed_partitions *state)
*/ */
if (aix_magic_present(state, data)) { if (aix_magic_present(state, data)) {
put_dev_sector(sect); put_dev_sector(sect);
#ifdef CONFIG_AIX_PARTITION
return aix_partition(state);
#else
strlcat(state->pp_buf, " [AIX]", PAGE_SIZE); strlcat(state->pp_buf, " [AIX]", PAGE_SIZE);
return 0; return 0;
#endif
} }
if (!msdos_magic_present(data + 510)) { if (!msdos_magic_present(data + 510)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册