Author: imp
Date: Wed Oct 25 15:30:48 2017
New Revision: 324989
URL: https://svnweb.freebsd.org/changeset/base/324989

Log:
  Handle RB_POWERCYCLE in ada driver
  
  Allow the disks to be spun down when doing a POWERCYCLE as well as
  POWEROFF.
  
  Sponsored by: Netflix

Modified:
  head/sys/cam/ata/ata_da.c

Modified: head/sys/cam/ata/ata_da.c
==============================================================================
--- head/sys/cam/ata/ata_da.c   Wed Oct 25 15:30:44 2017        (r324988)
+++ head/sys/cam/ata/ata_da.c   Wed Oct 25 15:30:48 2017        (r324989)
@@ -3513,7 +3513,7 @@ adashutdown(void *arg, int howto)
 
        adaflush();
        if (ada_spindown_shutdown != 0 &&
-           (howto & (RB_HALT | RB_POWEROFF)) != 0)
+           (howto & (RB_HALT | RB_POWEROFF | RB_POWERCYCLE)) != 0)
                adaspindown(ATA_STANDBY_IMMEDIATE, 0);
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to