summaryrefslogtreecommitdiffstats
path: root/include/pt-sun.h
diff options
context:
space:
mode:
authorKarel Zak2013-02-04 18:29:05 +0100
committerKarel Zak2013-03-11 13:00:55 +0100
commit9d3d9754e7af4799aa5872f5ab394f93c725f0fe (patch)
tree64f215b7a37e8e929c722f2180eab83c24a226c5 /include/pt-sun.h
parentinlude/pt-sun: add flags and tags (diff)
downloadkernel-qcow2-util-linux-9d3d9754e7af4799aa5872f5ab394f93c725f0fe.tar.gz
kernel-qcow2-util-linux-9d3d9754e7af4799aa5872f5ab394f93c725f0fe.tar.xz
kernel-qcow2-util-linux-9d3d9754e7af4799aa5872f5ab394f93c725f0fe.zip
libblkid: rename in sun_disklabel for compatibility with fdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/pt-sun.h')
-rw-r--r--include/pt-sun.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/pt-sun.h b/include/pt-sun.h
index 8ced5801d..b085268ca 100644
--- a/include/pt-sun.h
+++ b/include/pt-sun.h
@@ -3,17 +3,19 @@
#include <stdint.h>
+#define SUN_LABEL_MAGIC 0xDABE
+
/* Supported VTOC setting */
#define SUN_VTOC_SANITY 0x600DDEEE /* magic number */
#define SUN_VTOC_VERSION 1
#define SUN_MAXPARTITIONS 8
struct sun_disklabel {
- unsigned char info[128]; /* Informative text string */
+ unsigned char label_id[128]; /* Informative text string */
struct sun_vtoc {
uint32_t version; /* version */
- char volume[8]; /* volume name */
+ char volume_id[8];/* volume name */
uint16_t nparts; /* num of partitions */
struct sun_info { /* partition information */
@@ -31,15 +33,15 @@ struct sun_disklabel {
uint32_t write_reinstruct; /* sectors to skip, writes */
uint32_t read_reinstruct; /* sectors to skip, reads */
unsigned char spare[148]; /* padding */
- uint16_t rspeed; /* disk rotational speed */
- uint16_t pcylcount; /* physical cylinder count */
- uint16_t sparecyl; /* extra sects per cylinder */
+ uint16_t rpm; /* disk rotational speed */
+ uint16_t pcyl; /* physical cylinder count */
+ uint16_t apc; /* extra sects per cylinder */
uint16_t obs1;
uint16_t obs2;
- uint16_t ilfact; /* interleave factor */
+ uint16_t intrlv; /* interleave factor */
uint16_t ncyl; /* data cylinder count */
- uint16_t nacyl; /* alt. cylinder count */
- uint16_t ntrks; /* tracks per cylinder <---- */
+ uint16_t acyl; /* alt. cylinder count */
+ uint16_t nhead; /* tracks per cylinder <---- */
uint16_t nsect; /* sectors per track <---- */
uint16_t obs3;
uint16_t obs4;