diff options
author | Philippe De Muyter <phdm@macqel.be> | 2013-07-08 19:01:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-09 13:33:28 -0400 |
commit | f8f066033b015a744065f6c7ed83741b4760376b (patch) | |
tree | ea2172921280dfd1a8fff3b5bc41141bb5e3b6df /block | |
parent | 6ceea22bbbc84fcf6bf0913bb3db8a657e9002f6 (diff) |
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: Philippe De Muyter <phdm@macqel.be>
Cc: Karel Zak <kzak@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block')
-rw-r--r-- | block/partitions/msdos.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/partitions/msdos.c b/block/partitions/msdos.c index 9bf19e6fd949..9123f250b425 100644 --- a/block/partitions/msdos.c +++ b/block/partitions/msdos.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include "check.h" | 23 | #include "check.h" |
24 | #include "msdos.h" | 24 | #include "msdos.h" |
25 | #include "efi.h" | 25 | #include "efi.h" |
26 | #include "aix.h" | ||
26 | 27 | ||
27 | /* | 28 | /* |
28 | * Many architectures don't like unaligned accesses, while | 29 | * Many architectures don't like unaligned accesses, while |
@@ -462,8 +463,12 @@ int msdos_partition(struct parsed_partitions *state) | |||
462 | */ | 463 | */ |
463 | if (aix_magic_present(state, data)) { | 464 | if (aix_magic_present(state, data)) { |
464 | put_dev_sector(sect); | 465 | put_dev_sector(sect); |
466 | #ifdef CONFIG_AIX_PARTITION | ||
467 | return aix_partition(state); | ||
468 | #else | ||
465 | strlcat(state->pp_buf, " [AIX]", PAGE_SIZE); | 469 | strlcat(state->pp_buf, " [AIX]", PAGE_SIZE); |
466 | return 0; | 470 | return 0; |
471 | #endif | ||
467 | } | 472 | } |
468 | 473 | ||
469 | if (!msdos_magic_present(data + 510)) { | 474 | if (!msdos_magic_present(data + 510)) { |