1 #if ENABLE_FEATURE_AIX_LABEL
3 * Copyright (C) Andreas Neuper, Sep 1998.
4 * This file may be redistributed under
5 * the terms of the GNU Public License.
9 unsigned int magic
; /* expect AIX_LABEL_MAGIC */
10 unsigned int fillbytes1
[124];
11 unsigned int physical_volume_id
;
12 unsigned int fillbytes2
[124];
15 #define AIX_LABEL_MAGIC 0xc9c2d4c1
16 #define AIX_LABEL_MAGIC_SWAPPED 0xc1d4c2c9
17 #define AIX_INFO_MAGIC 0x00072959
18 #define AIX_INFO_MAGIC_SWAPPED 0x59290700
20 #define aixlabel ((aix_partition *)MBRbuffer)
25 * 1999-03-20 Arnaldo Carvalho de Melo <acme@conectiva.com.br>
26 * Internationalization
28 * 2003-03-20 Phillip Kesling <pkesling@sgi.com>
32 static int aix_other_endian
;
33 static short aix_volumes
= 1;
36 * only dealing with free blocks here
43 "There is a valid AIX label on this disk.\n"
44 "Unfortunately Linux cannot handle these disks at the moment.\n"
45 "Nevertheless some advice:\n"
46 "1. fdisk will destroy its contents on write.\n"
47 "2. Be sure that this disk is NOT a still vital part of a volume group.\n"
48 " (Otherwise you may erase the other disks as well, if unmirrored.)\n"
49 "3. Before deleting this physical volume be sure to remove the disk\n"
50 " logically from your AIX machine. (Otherwise you become an AIXpert).\n"
57 if (aixlabel
->magic
!= AIX_LABEL_MAGIC
&&
58 aixlabel
->magic
!= AIX_LABEL_MAGIC_SWAPPED
) {
59 current_label_type
= 0;
63 aix_other_endian
= (aixlabel
->magic
== AIX_LABEL_MAGIC_SWAPPED
);
65 current_label_type
= label_aix
;
69 /*aix_nolabel();*/ /* %% */
70 /*aix_label = 1;*/ /* %% */
73 #endif /* AIX_LABEL */