Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block/partition/msdos: detect AIX formatted disks even without 55aa
AIX formatted disks do not always have the MSDOS 55aa signature. This happens e.g. for unbootable AIX disks. Up to now, such disks were not recognized as AIX disks, because of the missing 55aa. Fix that by inverting the two tests. Let's first check for the AIX magic strings, and only if that fails check for the MSDOS magic word. Signed-off-by: Philippe De Muyter <[email protected]> Cc: Andreas Mohr <[email protected]> Cc: OGAWA Hirofumi <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Olaf Hering <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information