kern/179932: commit references a PR

dfilter service dfilter at FreeBSD.ORG
Sat Jul 27 17:30:01 UTC 2013


The following reply was made to PR kern/179932; it has been noted by GNATS.

From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at 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 at 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 at freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
 


More information about the freebsd-scsi mailing list