bin/151871: camcontrol(8): incorrect standby timer calculation

Bruce Cran brucec at FreeBSD.org
Mon Nov 1 17:30:10 UTC 2010


>Number:         151871
>Category:       bin
>Synopsis:       camcontrol(8): incorrect standby timer calculation
>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:   Mon Nov 01 17:30:09 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Bruce Cran
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD core.nessbank 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r214509: Fri Oct 29 13:26:38 BST 2010     brucec at core.nessbank:/usr/obj/usr/src/head/sys/CORE  amd64
>Description:
Incorrect standby timer values are sent to the disk. According to t13, the values should be:

1-1200 seconds: (seconds / 5)
1260 seconds: 252
1800-19800 seconds: (minutes/30) + 240

Currently a timeout value of 1800s (30 minutes) is being programmed as 242, which will cause the drive to go into standby after 60 minutes.
>How-To-Repeat:
Compare the code on line 4315 of src/sbin/camcontrol/camcontrol.c with table 19 in T13 1532D Volume 1.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list