kern/173290: Add deviceid to mfi disk startup output (patch included)

Steven Hartland steven.hartland at multiplay.co.uk
Fri Nov 2 09:40:01 UTC 2012


>Number:         173290
>Category:       kern
>Synopsis:       Add deviceid to mfi disk startup output (patch included)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 02 09:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Steven Hartland
>Release:        8.3-RELEASE
>Organization:
Multiplay
>Environment:
FreeBSD dev 8.3-RELEASE-p4 FreeBSD 8.3-RELEASE-p4 #22: Mon Sep 17 17:18:32 UTC 2012     root at dev:/usr/obj/usr/src/sys/MULTIPLAY  amd64
>Description:
Adds deviceid to the disk output on boot which is extremely useful in correlating mfi drive in mfiutil / MegaCli to OS device
>How-To-Repeat:
N/A
>Fix:
Apply the attached patch

Patch attached with submission follows:

--- sys/dev/mfi/mfi_syspd.c.orig	2012-10-31 12:59:47.552155217 +0000
+++ sys/dev/mfi/mfi_syspd.c	2012-10-31 13:03:43.566282448 +0000
@@ -116,8 +116,8 @@
 	mtx_lock(&sc->pd_controller->mfi_io_lock);
 	TAILQ_INSERT_TAIL(&sc->pd_controller->mfi_syspd_tqh, sc, pd_link);
 	mtx_unlock(&sc->pd_controller->mfi_io_lock);
-	device_printf(dev, "%juMB (%ju sectors) SYSPD volume\n",
-		      sectors / (1024 * 1024 / secsize), sectors);
+	device_printf(dev, "%juMB (%ju sectors) SYSPD volume (deviceid: %d)\n",
+		      sectors / (1024 * 1024 / secsize), sectors, sc->pd_id);
 	sc->pd_disk = disk_alloc();
 	sc->pd_disk->d_drv1 = sc;
 	sc->pd_disk->d_maxsize = sc->pd_controller->mfi_max_io * secsize;


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list