Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 2014 18:32:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 192247] New: [cam][cd] READ_CD_CAPACITY could be reaped from scsi_cd.h
Message-ID:  <bug-192247-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192247

            Bug ID: 192247
           Summary: [cam][cd] READ_CD_CAPACITY could be reaped from
                    scsi_cd.h
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: yaneurabeya@gmail.com

READ_CAPACITY and READ_CD_CAPACITY have the same value in cam(4). Not sure if
this was intentional given the comment in scsi_cd.h, but the value in scsi_cd.h
could probably be reaped because it wasn't used in the tree (apart from that
header).

$ egrep 'READ_.*CAPACITY' /usr/src/sys/cam/scsi/scsi_all.h
/usr/src/sys/cam/scsi/scsi_cd.h
/usr/src/sys/cam/scsi/scsi_all.h:#define        READ_CAPACITY           0x25
/usr/src/sys/cam/scsi/scsi_cd.h:#define READ_CD_CAPACITY        0x25    /*
slightly different from disk */
$ grep -r READ_CD_CAPACITY /usr/src/
/usr/src/sys/cam/scsi/scsi_cd.h:#define READ_CD_CAPACITY        0x25    /*
slightly different from disk */
$

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192247-8>