File: fdiskaixlabel.h

package info (click to toggle)
loop-aes-utils 2.12p-4sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,644 kB
  • ctags: 5,072
  • sloc: ansic: 46,123; sh: 7,606; makefile: 884; perl: 86; csh: 62; sed: 55
file content (34 lines) | stat: -rw-r--r-- 1,010 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <linux/types.h>   /* for __u32 etc */
/*
 * 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

/* fdisk.c */
#define aixlabel ((aix_partition *)MBRbuffer)
extern char MBRbuffer[MAX_SECTOR_SIZE];
extern char changed[MAXIMUM_PARTS];
extern unsigned int heads, sectors, cylinders;
extern int show_begin;
extern int aix_label;
extern char *partition_type(unsigned char type);
extern void update_units(void);
extern char read_chars(char *mesg);

/* fdiskaixlabel.c */
extern struct	systypes aix_sys_types[];
extern void 	aix_nolabel( void );
extern int 	check_aix_label( void );