Skip to content

Commit

Permalink
partitions/msdos: enumerate also AIX LVM partitions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Philippe De Muyter authored and Linus Torvalds committed Jul 9, 2013
1 parent 6ceea22 commit f8f0660
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions block/partitions/msdos.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "check.h"
#include "msdos.h"
#include "efi.h"
#include "aix.h"

/*
* Many architectures don't like unaligned accesses, while
Expand Down Expand Up @@ -462,8 +463,12 @@ int msdos_partition(struct parsed_partitions *state)
*/
if (aix_magic_present(state, data)) {
put_dev_sector(sect);
#ifdef CONFIG_AIX_PARTITION
return aix_partition(state);
#else
strlcat(state->pp_buf, " [AIX]", PAGE_SIZE);
return 0;
#endif
}

if (!msdos_magic_present(data + 510)) {
Expand Down

0 comments on commit f8f0660

Please sign in to comment.