2 * Copyright (c) 1987, 1988, 1993
3 * The Regents of the University of California. All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by the University of
16 * California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * @(#)disklabel.h 8.2 (Berkeley) 7/10/94
34 * $FreeBSD: src/sys/sys/disklabel.h,v 1.49.2.7 2001/05/27 05:58:26 jkh Exp $
41 #include <sys/types.h>
45 #define DTYPE_SMD 1 /* SMD, XSMD; VAX hp/up */
46 #define DTYPE_MSCP 2 /* MSCP */
47 #define DTYPE_DEC 3 /* other DEC (rk, rl) */
48 #define DTYPE_SCSI 4 /* SCSI */
49 #define DTYPE_ESDI 5 /* ESDI interface */
50 #define DTYPE_ST506 6 /* ST506 etc. */
51 #define DTYPE_HPIB 7 /* CS/80 on HP-IB */
52 #define DTYPE_HPFL 8 /* HP Fiber-link */
53 #define DTYPE_FLOPPY 10 /* floppy */
54 #define DTYPE_CCD 11 /* concatenated disk */
55 #define DTYPE_VINUM 12 /* vinum volume */
56 #define DTYPE_DOC2K 13 /* Msys DiskOnChip */
59 static const char *dktypenames[] = {
76 #define DKMAXTYPES (NELEM(dktypenames) - 1)
80 * Filesystem type and version.
81 * Used to interpret other filesystem-specific
82 * per-partition information.
84 #define FS_UNUSED 0 /* unused */
85 #define FS_SWAP 1 /* swap */
86 #define FS_V6 2 /* Sixth Edition */
87 #define FS_V7 3 /* Seventh Edition */
88 #define FS_SYSV 4 /* System V */
89 #define FS_V71K 5 /* V7 with 1K blocks (4.1, 2.9) */
90 #define FS_V8 6 /* Eighth Edition, 4K blocks */
91 #define FS_BSDFFS 7 /* 4.2BSD fast file system */
92 #define FS_MSDOS 8 /* MSDOS file system */
93 #define FS_BSDLFS 9 /* 4.4BSD log-structured file system */
94 #define FS_OTHER 10 /* in use, but unknown/unsupported */
95 #define FS_HPFS 11 /* OS/2 high-performance file system */
96 #define FS_ISO9660 12 /* ISO 9660, normally CD-ROM */
97 #define FS_BOOT 13 /* partition contains bootstrap */
98 #define FS_VINUM 14 /* Vinum drive partition */
100 #define FS_RESERVED16 16
101 #define FS_RESERVED17 17
102 #define FS_RESERVED18 18
103 #define FS_CCD 19 /* CCD drive partition */
104 #define FS_RESERVED20 20 /* (CCD under FreeBSD) */
107 #define FS_HAMMER2 23
114 static const char *fstypenames[] = {
121 "Eighth Edition", /* 6 */
135 "?", /* 20 (do not reuse, bug in freebsd) */
146 static const char *fstype_to_vfsname[] = {
178 #define FSMAXTYPES (NELEM(fstypenames) - 1)
182 #endif /* SYS_DTYPE_H_ */