Subject: kern/32766: Patch: Sleeps wd disks before switching off
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <cherry@mahiti.org>
List: netbsd-bugs
Date: 02/07/2006 11:20:00
>Number:         32766
>Category:       kern
>Synopsis:       Patch: Sleeps wd disks before switching off
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 07 11:20:00 +0000 2006
>Originator:     Cherry G. Mathew
>Release:        -current
>Organization:
>Environment:
NA
>Description:
This is a problem I've noticed with NetBSD/macppc on my iBook G3. poweroff switches off the hard disk with a snap. Trivial fix given below.

Thanks,

Cherry.

>How-To-Repeat:
poweroff -q

on an ibook G3.
>Fix:
*** wd.c	06 Feb 2006 18:41:29 +0530	1.318
--- wd.c	07 Feb 2006 16:27:56 +0530	
***************
*** 1834,1839 ****
--- 1834,1840 ----
  {
  	struct wd_softc *wd = arg;
  	wd_flushcache(wd, AT_POLL);
+ 	wd_standby(wd, AT_POLL);
  }
  
  /*