1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 */ 35 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/sys/geom/geom_disk.c 219056 2011-02-26 14:58:54Z nwhitehorn $"); |
38 39#include "opt_geom.h" 40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/kernel.h> 44#include <sys/sysctl.h> 45#include <sys/bio.h> --- 320 unchanged lines hidden (view full) --- 366 sbuf_printf(sb, " sc %u", dp->d_fwsectors); 367 return; 368 } 369 if (pp != NULL) { 370 sbuf_printf(sb, "%s<fwheads>%u</fwheads>\n", 371 indent, dp->d_fwheads); 372 sbuf_printf(sb, "%s<fwsectors>%u</fwsectors>\n", 373 indent, dp->d_fwsectors); |
374 sbuf_printf(sb, "%s<ident>%s</ident>\n", indent, dp->d_ident); 375 sbuf_printf(sb, "%s<descr>%s</descr>\n", indent, dp->d_descr); |
376 } 377} 378 379static void 380g_disk_create(void *arg, int flag) 381{ 382 struct g_geom *gp; 383 struct g_provider *pp; --- 152 unchanged lines hidden --- |