Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/atactl Correct the check for whether SMART is enabled.



details:   https://anonhg.NetBSD.org/src/rev/a3d6a29c73ea
branches:  trunk
changeset: 535342:a3d6a29c73ea
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Thu Aug 15 18:57:51 2002 +0000

description:
Correct the check for whether SMART is enabled.

diffstat:

 sbin/atactl/atactl.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9bbb26aab495 -r a3d6a29c73ea sbin/atactl/atactl.c
--- a/sbin/atactl/atactl.c      Thu Aug 15 18:35:25 2002 +0000
+++ b/sbin/atactl/atactl.c      Thu Aug 15 18:57:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atactl.c,v 1.17 2002/08/06 01:16:56 soren Exp $        */
+/*     $NetBSD: atactl.c,v 1.18 2002/08/15 18:57:51 mycroft Exp $      */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -389,7 +389,7 @@
                                status = "status unknown";
                                retval = 2;
                        } else {
-                               if (inqbuf->atap_cmd_set2 & ATA_CMD2_SMART) {
+                               if (inqbuf->atap_cmd1_en & WDC_CMD1_SMART) {
                                        status = "enabled";
                                        retval = 1;
                                } else {



Home | Main Index | Thread Index | Old Index