]> git.baikalelectronics.ru Git - kernel.git/commit
block/partition/msdos: detect AIX formatted disks even without 55aa
authorPhilippe De Muyter <phdm@macqel.be>
Thu, 28 Feb 2013 01:05:16 +0000 (17:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Feb 2013 03:10:21 +0000 (19:10 -0800)
commit278424b8a6ae8fe615637f4cbe60a29661dcc403
tree074962cd77e6d2cfaef867a1eeadb2c83fdd8ebc
parent73933927b0b437e8e855d1841fa4817aab61aa32
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 <phdm@macqel.be>
Cc: Andreas Mohr <andi@lisas.de>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Olaf Hering <olh@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
block/partitions/msdos.c