g_part.c (265912) | g_part.c (268091) |
---|---|
1/*- 2 * Copyright (c) 2002, 2005-2009 Marcel Moolenaar 3 * 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 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002, 2005-2009 Marcel Moolenaar 3 * 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 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: stable/10/sys/geom/part/g_part.c 265912 2014-05-12 12:04:44Z ae $"); | 28__FBSDID("$FreeBSD: stable/10/sys/geom/part/g_part.c 268091 2014-07-01 13:29:17Z ae $"); |
29 30#include <sys/param.h> 31#include <sys/bio.h> 32#include <sys/endian.h> 33#include <sys/kernel.h> 34#include <sys/kobj.h> 35#include <sys/limits.h> 36#include <sys/lock.h> --- 66 unchanged lines hidden (view full) --- 103 { "netbsd-ffs", G_PART_ALIAS_NETBSD_FFS }, 104 { "netbsd-lfs", G_PART_ALIAS_NETBSD_LFS }, 105 { "netbsd-raid", G_PART_ALIAS_NETBSD_RAID }, 106 { "netbsd-swap", G_PART_ALIAS_NETBSD_SWAP }, 107 { "vmware-vmfs", G_PART_ALIAS_VMFS }, 108 { "vmware-vmkdiag", G_PART_ALIAS_VMKDIAG }, 109 { "vmware-reserved", G_PART_ALIAS_VMRESERVED }, 110 { "vmware-vsanhdr", G_PART_ALIAS_VMVSANHDR }, | 29 30#include <sys/param.h> 31#include <sys/bio.h> 32#include <sys/endian.h> 33#include <sys/kernel.h> 34#include <sys/kobj.h> 35#include <sys/limits.h> 36#include <sys/lock.h> --- 66 unchanged lines hidden (view full) --- 103 { "netbsd-ffs", G_PART_ALIAS_NETBSD_FFS }, 104 { "netbsd-lfs", G_PART_ALIAS_NETBSD_LFS }, 105 { "netbsd-raid", G_PART_ALIAS_NETBSD_RAID }, 106 { "netbsd-swap", G_PART_ALIAS_NETBSD_SWAP }, 107 { "vmware-vmfs", G_PART_ALIAS_VMFS }, 108 { "vmware-vmkdiag", G_PART_ALIAS_VMKDIAG }, 109 { "vmware-reserved", G_PART_ALIAS_VMRESERVED }, 110 { "vmware-vsanhdr", G_PART_ALIAS_VMVSANHDR }, |
111 { "dragonfly-label32", G_PART_ALIAS_DFBSD }, 112 { "dragonfly-label64", G_PART_ALIAS_DFBSD64 }, 113 { "dragonfly-swap", G_PART_ALIAS_DFBSD_SWAP }, 114 { "dragonfly-ufs", G_PART_ALIAS_DFBSD_UFS }, 115 { "dragonfly-vinum", G_PART_ALIAS_DFBSD_VINUM }, 116 { "dragonfly-ccd", G_PART_ALIAS_DFBSD_CCD }, 117 { "dragonfly-legacy", G_PART_ALIAS_DFBSD_LEGACY }, 118 { "dragonfly-hammer", G_PART_ALIAS_DFBSD_HAMMER }, 119 { "dragonfly-hammer2", G_PART_ALIAS_DFBSD_HAMMER2 }, |
|
111}; 112 113SYSCTL_DECL(_kern_geom); 114SYSCTL_NODE(_kern_geom, OID_AUTO, part, CTLFLAG_RW, 0, 115 "GEOM_PART stuff"); 116static u_int check_integrity = 1; 117TUNABLE_INT("kern.geom.part.check_integrity", &check_integrity); 118SYSCTL_UINT(_kern_geom_part, OID_AUTO, check_integrity, --- 2185 unchanged lines hidden --- | 120}; 121 122SYSCTL_DECL(_kern_geom); 123SYSCTL_NODE(_kern_geom, OID_AUTO, part, CTLFLAG_RW, 0, 124 "GEOM_PART stuff"); 125static u_int check_integrity = 1; 126TUNABLE_INT("kern.geom.part.check_integrity", &check_integrity); 127SYSCTL_UINT(_kern_geom_part, OID_AUTO, check_integrity, --- 2185 unchanged lines hidden --- |