1 /* 2 * Copyright (c) 1987, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 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. 20 * 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 31 * SUCH DAMAGE. 32 * 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 $ 35 */ 36 37 #ifndef _SYS_DTYPE_H_ 38 #define _SYS_DTYPE_H_ 39 40 #ifndef _SYS_TYPES_H_ 41 #include <sys/types.h> 42 #endif 43 44 /* d_type values: */ 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 */ 57 58 #ifdef DKTYPENAMES 59 static const char *dktypenames[] = { 60 "unknown", 61 "SMD", 62 "MSCP", 63 "old DEC", 64 "SCSI", 65 "ESDI", 66 "ST506", 67 "HP-IB", 68 "HP-FL", 69 "type 9", 70 "floppy", 71 "CCD", 72 "Vinum", 73 "DOC2K", 74 NULL 75 }; 76 #define DKMAXTYPES (NELEM(dktypenames) - 1) 77 #endif 78 79 /* 80 * Filesystem type and version. 81 * Used to interpret other filesystem-specific 82 * per-partition information. 83 */ 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 */ 99 #define FS_RAID 15 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) */ 105 #define FS_JFS2 21 106 #define FS_HAMMER 22 107 #define FS_UDF 24 108 #define FS_EFS 26 109 #define FS_ZFS 27 110 111 #ifdef DKTYPENAMES 112 static const char *fstypenames[] = { 113 "unused", 114 "swap", 115 "Version 6", 116 "Version 7", 117 "System V", 118 "4.1BSD", 119 "Eighth Edition", 120 "4.2BSD", 121 "MSDOS", 122 "4.4LFS", 123 "unknown", 124 "HPFS", 125 "ISO9660", 126 "boot", 127 "vinum", 128 "raid", 129 "?", 130 "?", 131 "?", 132 "ccd", 133 "?", /* don't use in case freebsd reassigns jfs / bug in freebsd */ 134 "jfs", 135 "HAMMER", 136 "?", 137 "UDF", 138 "?", 139 "EFS", 140 "ZFS", 141 NULL 142 }; 143 #define FSMAXTYPES (NELEM(fstypenames) - 1) 144 #endif 145 146 #endif /* SYS_DTYPE_H_ */ 147