linux/fs/partitions
Olaf Hering e1dfa92dca [PATCH] ignore partition table on disks with AIX label
The on-disk data structures from AIX are not known, also the filesystem
layout is not known.  There is a msdos partition signature at the end of
the first block, and the kernel recognizes 3 small (and overlapping)
partitions.  But they are not usable.  Maybe the firmware uses it to find
the bootloader for AIX, but AIX boots also if the first block is cleared.

This is the content of the partition table:
 # dd if=/dev/sdb count=$(( 4 * 16 )) bs=1 skip=$(( 0x1be )) | xxd
0000000: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000010: 80ff ffff 41ff ffff 1b11 0000 381b 0000  ....A.......8...
0000020: 00ff ffff 41ff ffff 0211 0000 1900 0000  ....A...........
0000030: 80ff ffff 41ff ffff 1b11 0000 381b 0000  ....A.......8...

Handle the whole disk as empty disk.

This fixes also YaST which compares the output from parted (and formerly
fdisk) with /proc/partitions.  fdisk recognizes the AIX label since a long
time, SuSE has a patch for parted to handle the disk label as unknown.

dmesg will look like this:
 sda: [AIX]  unknown partition table

Tested on an IBM B50 with AIX V4.3.3.

Signed-off-by: Olaf Hering <olh@suse.de>
Cc: Albert Cahalan <acahalan@gmail.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-29 09:18:09 -07:00
..
acorn.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
acorn.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
amiga.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
amiga.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
atari.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
atari.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
check.c [PATCH] partitions: let partitions inherit policy from disk 2006-07-10 13:24:14 -07:00
check.h [PATCH] small partitions/msdos cleanups 2005-06-25 16:24:59 -07:00
efi.c [PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc 2006-09-27 08:26:10 -07:00
efi.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ibm.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ibm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
karma.c [PATCH] partitions: Read Rio Karma partition table 2006-01-16 23:15:29 -08:00
karma.h [PATCH] partitions: Read Rio Karma partition table 2006-01-16 23:15:29 -08:00
Kconfig [PATCH] enable mac partition label per default on pmac 2006-07-31 13:28:41 -07:00
ldm.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ldm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mac.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
mac.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] devfs: Remove devfs from the partition code 2006-06-26 12:25:05 -07:00
msdos.c [PATCH] ignore partition table on disks with AIX label 2006-09-29 09:18:09 -07:00
msdos.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
osf.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
osf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sgi.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sgi.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sun.c [DISKLABEL] SUN: Fix signed int usage for sector count 2006-08-26 17:55:55 -07:00
sun.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ultrix.c fs/partitions/ultrix.c should #include "ultrix.h" 2005-11-08 16:49:14 +01:00
ultrix.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00