Date: Fri, 2 Nov 2012 09:37:17 GMT From: Steven Hartland <steven.hartland@multiplay.co.uk> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/173290: Add deviceid to mfi disk startup output (patch included) Message-ID: <201211020937.qA29bHfB057284@red.freebsd.org> Resent-Message-ID: <201211020940.qA29e0QZ000671@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211020937.qA29bHfB057284>