Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/atactl s/smart info/smart status/ to better fit in with...
details: https://anonhg.NetBSD.org/src/rev/e24570b6f916
branches: trunk
changeset: 534893:e24570b6f916
user: soren <soren%NetBSD.org@localhost>
date: Tue Aug 06 00:00:21 2002 +0000
description:
s/smart info/smart status/ to better fit in with the standard's feature set.
diffstat:
sbin/atactl/atactl.8 | 6 +++---
sbin/atactl/atactl.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r c997d4cca450 -r e24570b6f916 sbin/atactl/atactl.8
--- a/sbin/atactl/atactl.8 Mon Aug 05 23:37:48 2002 +0000
+++ b/sbin/atactl/atactl.8 Tue Aug 06 00:00:21 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: atactl.8,v 1.10 2002/08/05 23:29:29 soren Exp $
+.\" $NetBSD: atactl.8,v 1.11 2002/08/06 00:00:21 soren Exp $
.\"
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -105,7 +105,7 @@
management mode.
.Pp
.Cm smart
-.Ar [enable | disable | info]
+.Ar [enable | disable | status]
.Pp
Controls SMART feature set of the specified device. SMART stands for
Self-Monitoring, Analysis, and Reporting Technology. It provides an
@@ -124,7 +124,7 @@
Disables access to SMART capabilities within the device. Attribute values
will be saved, and will no longer be monitored.
.Pp
-.Ar info
+.Ar status
.Pp
Reports whether SMART is supported by the device, and whether SMART is
enabled on the device (can only be determined on ATA6 or better devices).
diff -r c997d4cca450 -r e24570b6f916 sbin/atactl/atactl.c
--- a/sbin/atactl/atactl.c Mon Aug 05 23:37:48 2002 +0000
+++ b/sbin/atactl/atactl.c Tue Aug 06 00:00:21 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atactl.c,v 1.15 2002/08/05 23:29:29 soren Exp $ */
+/* $NetBSD: atactl.c,v 1.16 2002/08/06 00:00:21 soren Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@
{ "standby", "", device_idle },
{ "sleep", "", device_idle },
{ "checkpower", "", device_checkpower },
- { "smart", "enable|disable|info", device_smart },
+ { "smart", "enable|disable|status", device_smart },
{ NULL, NULL, NULL },
};
@@ -314,7 +314,7 @@
printf("id\tvalue\tthresh\tcrit\tcollect\treliability\n");
for (i = 0; i < 256; i++) {
if (values[i] != 00 && values[i] != 0xFE && values[i] != 0xFF) {
- printf("%2d\t%3d\t%3d\t%s\t%sline\t%stive\n",
+ printf("%3d\t%3d\t%3d\t%s\t%sline\t%stive\n",
i, values[i], thresholds[i],
flags[i] & WDSM_ATTR_ADVISORY ? "yes" : "no",
flags[i] & WDSM_ATTR_COLLECTIVE ? "on" : "off",
@@ -674,7 +674,7 @@
is_smart(0);
}
- } else if (strcmp(argv[0], "info") == 0) {
+ } else if (strcmp(argv[0], "status") == 0) {
if (is_smart(0)) {
memset(&inbuf, 0, sizeof(inbuf));
memset(&req, 0, sizeof(req));
Home |
Main Index |
Thread Index |
Old Index