geom.subr (280921) | geom.subr (298884) |
---|---|
1if [ ! "$_GEOM_SUBR" ]; then _GEOM_SUBR=1 2# 3# Copyright (c) 2012-2014 Devin Teske 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# | 1if [ ! "$_GEOM_SUBR" ]; then _GEOM_SUBR=1 2# 3# Copyright (c) 2012-2014 Devin Teske 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/usr.sbin/bsdconfig/share/geom.subr 280921 2015-03-31 21:34:42Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/share/geom.subr 298884 2016-05-01 16:38:12Z pfg $ |
28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." geom.subr 34f_include $BSDCFG_SHARE/strings.subr 35f_include $BSDCFG_SHARE/struct.subr --- 50 unchanged lines hidden (view full) --- 86# 87: ${GEOM_SELF_SCAN_ALL=1} 88 89############################################################ FUNCTIONS 90 91# f_geom_get_all 92# 93# Parse sysctl(8) `kern.geom.confxml' data into a series of structs. GEOM | 28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." geom.subr 34f_include $BSDCFG_SHARE/strings.subr 35f_include $BSDCFG_SHARE/struct.subr --- 50 unchanged lines hidden (view full) --- 86# 87: ${GEOM_SELF_SCAN_ALL=1} 88 89############################################################ FUNCTIONS 90 91# f_geom_get_all 92# 93# Parse sysctl(8) `kern.geom.confxml' data into a series of structs. GEOM |
94# classes are at the top of the heirarchy and are stored as numbered structs | 94# classes are at the top of the hierarchy and are stored as numbered structs |
95# from 1 to $NGEOM_CLASSES (set by this function) named `geom_class_C'. GEOM 96# objects within each class are stored as numbered structs from 1 to `ngeoms' 97# (a property of the GEOM class struct) named `geom_class_C_geom_N' (where C 98# is the class number and N is the geom number). 99# 100# Use the function f_geom_find() to get a list of geoms (execute without 101# arguments) or find specific geoms by class or name. 102# --- 328 unchanged lines hidden --- | 95# from 1 to $NGEOM_CLASSES (set by this function) named `geom_class_C'. GEOM 96# objects within each class are stored as numbered structs from 1 to `ngeoms' 97# (a property of the GEOM class struct) named `geom_class_C_geom_N' (where C 98# is the class number and N is the geom number). 99# 100# Use the function f_geom_find() to get a list of geoms (execute without 101# arguments) or find specific geoms by class or name. 102# --- 328 unchanged lines hidden --- |