summaryrefslogtreecommitdiffstats
path: root/fdisks/fdiskaixlabel.h
diff options
context:
space:
mode:
Diffstat (limited to 'fdisks/fdiskaixlabel.h')
-rw-r--r--fdisks/fdiskaixlabel.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/fdisks/fdiskaixlabel.h b/fdisks/fdiskaixlabel.h
new file mode 100644
index 000000000..bd4cb2781
--- /dev/null
+++ b/fdisks/fdiskaixlabel.h
@@ -0,0 +1,27 @@
+#ifndef FDISK_AIX_LABEL_H
+#define FDISK_AIX_LABEL_H
+
+#include <stdint.h>
+/*
+ * Copyright (C) Andreas Neuper, Sep 1998.
+ * This file may be redistributed under
+ * the terms of the GNU Public License.
+ */
+
+typedef struct {
+ unsigned int magic; /* expect AIX_LABEL_MAGIC */
+ unsigned int fillbytes1[124];
+ unsigned int physical_volume_id;
+ unsigned int fillbytes2[124];
+} aix_partition;
+
+#define AIX_LABEL_MAGIC 0xc9c2d4c1
+#define AIX_LABEL_MAGIC_SWAPPED 0xc1d4c2c9
+#define AIX_INFO_MAGIC 0x00072959
+#define AIX_INFO_MAGIC_SWAPPED 0x59290700
+
+/* fdiskaixlabel.c */
+extern struct systypes aix_sys_types[];
+extern int check_aix_label(struct fdisk_context *cxt);
+
+#endif /* FDISK_AIX_LABEL_H */