NetBSD Problem Report #49932
From he@smistad.uninett.no Tue May 26 09:18:24 2015
Return-Path: <he@smistad.uninett.no>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id D7625A5858
for <gnats-bugs@gnats.NetBSD.org>; Tue, 26 May 2015 09:18:23 +0000 (UTC)
Message-Id: <20150526091818.5311E3D0B5@smistad.uninett.no>
Date: Tue, 26 May 2015 11:18:18 +0200 (CEST)
From: he@uninett.no
Reply-To: he@uninett.no
To: gnats-bugs@gnats.NetBSD.org
Subject: "bioctl <dev> show disks" vs. "bioctl <dev> show"
X-Send-Pr-Version: 3.95
>Number: 49932
>Category: kern
>Synopsis: bioctl <dev> show disks vs. bioctl <dev> show
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 26 09:20:00 +0000 2015
>Originator: Havard Eidnes
>Release: NetBSD 7.0_BETA of April 29 2015
>Organization:
UNINETT AS
>Environment:
System: NetBSD tos-res.uninett.no 7.0_BETA NetBSD 7.0_BETA (GENERIC) #0: Wed Apr 29 21:47:45 UTC 2015 he@tos-res.uninett.no:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: amd64
Machine: amd64
>Description:
It looks like "bioctl <device> show disks" consistently
returns an error:
# bioctl mfi0 show disks
Disk Model/Serial Status Size Location
=====================================================================
bioctl: BIOCDISK_NOVOL: Invalid argument
#
However, just "bioctl <device> show" lists both the logical
volume and the disks:
# bioctl mfi0 show
Volume Status Size Device/Label Level Stripe
=============================================================
0 Online 279G mfi0 RAID 1 N/A 65535 seconds
0:0 Online 279G 1:0.0 noencl <SEAGATE ST300MM0006 0003>
0:1 Online 279G 1:1.0 noencl <SEAGATE ST300MM0006 0003>
#
>How-To-Repeat:
See above.
>Fix:
By the looks of it, there's a missing handler for
BIOCDISK_NOVOL in sys/dev/ic/mfi.c's mfi_ioctl() routine.
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.