Print this page
6198 Let's EOL cachefs


   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright 2012 Nexenta Systems, Inc.  All rights reserved.
  25  * Copyright 2014 Toomas Soome <tsoome@me.com>
  26  */
  27 
  28 #include <stdio.h>
  29 #include <stdlib.h>
  30 #include <errno.h>
  31 #include <strings.h>
  32 #include <unistd.h>
  33 #include <uuid/uuid.h>
  34 #include <libintl.h>
  35 #include <sys/types.h>
  36 #include <sys/dkio.h>
  37 #include <sys/vtoc.h>
  38 #include <sys/mhd.h>
  39 #include <sys/param.h>
  40 #include <sys/dktp/fdisk.h>
  41 #include <sys/efi_partition.h>
  42 #include <sys/byteorder.h>
  43 #include <sys/ddi.h>
  44 
  45 static struct uuid_to_ptag {
  46         struct uuid     uuid;
  47 } conversion_array[] = {
  48         { EFI_UNUSED },
  49         { EFI_BOOT },
  50         { EFI_ROOT },
  51         { EFI_SWAP },
  52         { EFI_USR },
  53         { EFI_BACKUP },
  54         { 0 },                  /* STAND is never used */
  55         { EFI_VAR },
  56         { EFI_HOME },
  57         { EFI_ALTSCTR },
  58         { 0 },                  /* CACHE (cachefs) is never used */
  59         { EFI_RESERVED },
  60         { EFI_SYSTEM },
  61         { EFI_LEGACY_MBR },
  62         { EFI_SYMC_PUB },
  63         { EFI_SYMC_CDS },
  64         { EFI_MSFT_RESV },
  65         { EFI_DELL_BASIC },
  66         { EFI_DELL_RAID },
  67         { EFI_DELL_SWAP },
  68         { EFI_DELL_LVM },
  69         { EFI_DELL_RESV },
  70         { EFI_AAPL_HFS },
  71         { EFI_AAPL_UFS },
  72         { EFI_BIOS_BOOT },
  73         { EFI_FREEBSD_BOOT },
  74         { EFI_FREEBSD_SWAP },
  75         { EFI_FREEBSD_UFS },
  76         { EFI_FREEBSD_VINUM },
  77         { EFI_FREEBSD_ZFS }
  78 };




   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  25  * Copyright 2014 Toomas Soome <tsoome@me.com>
  26  */
  27 
  28 #include <stdio.h>
  29 #include <stdlib.h>
  30 #include <errno.h>
  31 #include <strings.h>
  32 #include <unistd.h>
  33 #include <uuid/uuid.h>
  34 #include <libintl.h>
  35 #include <sys/types.h>
  36 #include <sys/dkio.h>
  37 #include <sys/vtoc.h>
  38 #include <sys/mhd.h>
  39 #include <sys/param.h>
  40 #include <sys/dktp/fdisk.h>
  41 #include <sys/efi_partition.h>
  42 #include <sys/byteorder.h>
  43 #include <sys/ddi.h>
  44 
  45 static struct uuid_to_ptag {
  46         struct uuid     uuid;
  47 } conversion_array[] = {
  48         { EFI_UNUSED },
  49         { EFI_BOOT },
  50         { EFI_ROOT },
  51         { EFI_SWAP },
  52         { EFI_USR },
  53         { EFI_BACKUP },
  54         { 0 },                  /* STAND is never used */
  55         { EFI_VAR },
  56         { EFI_HOME },
  57         { EFI_ALTSCTR },
  58         { 0 },                  /* CACHE is never used */
  59         { EFI_RESERVED },
  60         { EFI_SYSTEM },
  61         { EFI_LEGACY_MBR },
  62         { EFI_SYMC_PUB },
  63         { EFI_SYMC_CDS },
  64         { EFI_MSFT_RESV },
  65         { EFI_DELL_BASIC },
  66         { EFI_DELL_RAID },
  67         { EFI_DELL_SWAP },
  68         { EFI_DELL_LVM },
  69         { EFI_DELL_RESV },
  70         { EFI_AAPL_HFS },
  71         { EFI_AAPL_UFS },
  72         { EFI_BIOS_BOOT },
  73         { EFI_FREEBSD_BOOT },
  74         { EFI_FREEBSD_SWAP },
  75         { EFI_FREEBSD_UFS },
  76         { EFI_FREEBSD_VINUM },
  77         { EFI_FREEBSD_ZFS }
  78 };