2
* Copyright (C) 2004,2005 Heinz Mauelshagen, Red Hat GmbH.
5
* See file LICENSE at the top of this source tree for license information.
14
/* CODEME: code ondisk metadata definitions */
18
#define TEMPLATE_CONFIGOFFSET ((di->sectors - 1) << 9)
19
#define TEMPLATE_DATAOFFSET 0
22
uint8_t magic_name[8]; /* metadata has a 'magic' name ? */
23
#define TEMPLATE_MAGIC_NAME "TEMPLATE"
25
uint32_t magic; /* and/or metadata has a 'magic' number ? */
26
#define TEMPLATE_MAGIC_OK 0xABCDEF
28
uint8_t type; /* RAID level */
29
#define TEMPLATE_T_SPAN 0
30
#define TEMPLATE_T_RAID0 1
32
uint8_t disk_number; /* Absolute disk number in set. */
35
... .... /* members for numbers of disks, whatever... */
36
} __attribute__ ((packed));
39
/* Prototype of the register function for this metadata format handler */
40
int register_template(struct lib_context *lc);