svn commit: r209281 - stable/8/sys/cam/scsi
Matt Jacob
mjacob at FreeBSD.org
Fri Jun 18 04:45:07 UTC 2010
Author: mjacob
Date: Fri Jun 18 04:45:06 2010
New Revision: 209281
URL: http://svn.freebsd.org/changeset/base/209281
Log:
This is an MFC of 207938
Pick up the right change, not it's close cousin. The one
previously submitted was wrong.
Modified:
stable/8/sys/cam/scsi/scsi_sg.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
stable/8/sys/geom/sched/ (props changed)
Modified: stable/8/sys/cam/scsi/scsi_sg.c
==============================================================================
--- stable/8/sys/cam/scsi/scsi_sg.c Fri Jun 18 04:43:22 2010 (r209280)
+++ stable/8/sys/cam/scsi/scsi_sg.c Fri Jun 18 04:45:06 2010 (r209281)
@@ -304,10 +304,12 @@ sgregister(struct cam_periph *periph, vo
UID_ROOT, GID_OPERATOR, 0600, "%s%d",
periph->periph_name, periph->unit_number);
if (periph->unit_number < 26) {
- (void)make_dev_alias(softc->dev, "sg%c", periph->unit_number + 'a');
+ (void)make_dev_alias(softc->dev, "sg%c",
+ periph->unit_number + 'a');
} else {
(void)make_dev_alias(softc->dev, "sg%c%c",
- ((periph->unit_number / 26) - 1) + 'a', periph->unit_number + 'a');
+ ((periph->unit_number / 26) - 1) + 'a',
+ (periph->unit_number % 26) + 'a');
}
cam_periph_lock(periph);
softc->dev->si_drv1 = periph;
More information about the svn-src-stable
mailing list