Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jul 2013 17:30:01 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-scsi@FreeBSD.org
Subject:   Re: kern/179932: commit references a PR
Message-ID:  <201307271730.r6RHU1Nf096625@freefall.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
The following reply was made to PR kern/179932; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/179932: commit references a PR
Date: Sat, 27 Jul 2013 17:21:00 +0000 (UTC)

 Author: sbruno
 Date: Sat Jul 27 17:20:43 2013
 New Revision: 253712
 URL: http://svnweb.freebsd.org/changeset/base/253712
 
 Log:
   update ciss debugger command to iterate over multiple raid controllers up to
   max controllers supported
   
   PR:	kern/179932
   Reviewed by:	Markus Gebert <markus.gebert@hostpoint.ch>
   MFC after:	2 weeks
   Sponsored by:	Yahoo! Inc.
 
 Modified:
   head/sys/dev/ciss/ciss.c
 
 Modified: head/sys/dev/ciss/ciss.c
 ==============================================================================
 --- head/sys/dev/ciss/ciss.c	Sat Jul 27 17:16:59 2013	(r253711)
 +++ head/sys/dev/ciss/ciss.c	Sat Jul 27 17:20:43 2013	(r253712)
 @@ -4378,11 +4378,17 @@ ciss_print_adapter(struct ciss_softc *sc
  DB_COMMAND(ciss_prt, db_ciss_prt)
  {
      struct ciss_softc	*sc;
 +    devclass_t dc;
 +    int maxciss, i;
  
 -    sc = devclass_get_softc(devclass_find("ciss"), 0);
 -    if (sc == NULL) {
 -	printf("no ciss controllers\n");
 -    } else {
 +    dc = devclass_find("ciss");
 +    if ( dc == NULL ) {
 +        printf("%s: can't find devclass!\n", __func__);
 +        return;
 +    }
 +    maxciss = devclass_get_maxunit(dc);
 +    for (i = 0; i < maxciss; i++) {
 +        sc = devclass_get_softc(dc, i);
  	ciss_print_adapter(sc);
      }
  }
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201307271730.r6RHU1Nf096625>