Commit f8f06603 authored by Philippe De Muyter's avatar Philippe De Muyter Committed by 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: 's avatarPhilippe De Muyter <>
Cc: Karel Zak <>
Cc: Jens Axboe <>
Signed-off-by: 's avatarAndrew Morton <>
Signed-off-by: 's avatarLinus Torvalds <>
parent 6ceea22b
......@@ -23,6 +23,7 @@
#include "check.h"
#include "msdos.h"
#include "efi.h"
#include "aix.h"
* Many architectures don't like unaligned accesses, while
......@@ -462,8 +463,12 @@ int msdos_partition(struct parsed_partitions *state)
if (aix_magic_present(state, data)) {
return aix_partition(state);
strlcat(state->pp_buf, " [AIX]", PAGE_SIZE);
return 0;
if (!msdos_magic_present(data + 510)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment