diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 2005-03-30 09:33:10 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 2005-03-30 09:33:10 +0000 |
commit | 3328bbeef244ca648f2c7d7bf1756c8ca40a75e1 (patch) | |
tree | 5bb68f02e734f431a193e326b10c918abb80188a /sys/sys/sun_disklabel.h | |
parent | 04d114aa99c3063c01e14458f3f0eaf6801d09a5 (diff) | |
download | src-3328bbeef244ca648f2c7d7bf1756c8ca40a75e1.tar.gz src-3328bbeef244ca648f2c7d7bf1756c8ca40a75e1.zip |
Support VTOC volume names. This can be useful to distinguish multiple
disks in a system. Solaris' format(1m) displays the volume names in
the disk overview.
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=144328
Diffstat (limited to 'sys/sys/sun_disklabel.h')
-rw-r--r-- | sys/sys/sun_disklabel.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/sun_disklabel.h b/sys/sys/sun_disklabel.h index 175e34942995..ac85e19706a5 100644 --- a/sys/sys/sun_disklabel.h +++ b/sys/sys/sun_disklabel.h @@ -1,7 +1,7 @@ /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. - * Copyright (c) 2004, Joerg Wunsch + * Copyright (c) 2004,2005 Joerg Wunsch * * This software was developed by the Computer Systems Engineering group * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and @@ -54,6 +54,7 @@ #define SUN_SIZE 512 #define SUN_VTOC_VERSION 1 #define SUN_VTOC_SANE 0x600DDEEE /* SVR4-compatible VTOC is "sane". */ +#define SUN_VOLNAME_LEN 8 /* * XXX: I am actually not sure if this should be "16 sectors" or "8192 bytes". * XXX: Considering that Sun went to the effort of getting 512 byte compatible @@ -98,6 +99,7 @@ struct sun_disklabel { /* SVR4 VTOC information */ u_int32_t sl_vtoc_vers; /* == SUN_VTOC_VERSION */ + char sl_vtoc_volname[SUN_VOLNAME_LEN]; u_int16_t sl_vtoc_nparts; /* == SUN_NPART */ struct sun_vtoc_info sl_vtoc_map[SUN_NPART]; /* partition tag/flag */ u_int32_t sl_vtoc_sane; /* == SUN_VTOC_SANE */ |