smartmontools  SVN Rev 4078
Utility to control and monitor storage systems with "S.M.A.R.T."
scsiprint.h
Go to the documentation of this file.
1 /*
2  * scsiprint.h
3  *
4  * Home page of code is: http://smartmontools.sourceforge.net
5  *
6  * Copyright (C) 2002-9 Bruce Allen <smartmontools-support@lists.sourceforge.net>
7  * Copyright (C) 2000 Michael Cornwell <cornwell@acm.org>
8  *
9  * Additional SCSI work:
10  * Copyright (C) 2003-13 Douglas Gilbert <dgilbert@interlog.com>
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2, or (at your option)
15  * any later version.
16  *
17  * You should have received a copy of the GNU General Public License
18  * (for example COPYING); if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  * This code was originally developed as a Senior Thesis by Michael Cornwell
22  * at the Concurrent Systems Laboratory (now part of the Storage Systems
23  * Research Center), Jack Baskin School of Engineering, University of
24  * California, Santa Cruz. http://ssrc.soe.ucsc.edu/
25  *
26  */
27 
28 
29 #ifndef SCSI_PRINT_H_
30 #define SCSI_PRINT_H_
31 
32 #define SCSIPRINT_H_CVSID "$Id: scsiprint.h 3776 2013-02-17 04:25:42Z dpgilbert $\n"
33 
34 // Options for scsiPrintMain
36 {
37  bool drive_info;
44 
47 
52  bool smart_selftest_force; // Ignore already running test
53 
55 
57  short int set_wce, set_rcd; // disable(-1), enable(1) cache
58 
60  : drive_info(false),
61  smart_check_status(false),
62  smart_vendor_attrib(false),
63  smart_error_log(false),
64  smart_selftest_log(false),
65  smart_background_log(false),
66  smart_ss_media_log(false),
67  smart_disable(false), smart_enable(false),
68  smart_auto_save_disable(false), smart_auto_save_enable(false),
69  smart_default_selftest(false),
70  smart_short_selftest(false), smart_short_cap_selftest(false),
71  smart_extend_selftest(false), smart_extend_cap_selftest(false),
72  smart_selftest_abort(false),
73  smart_selftest_force(false),
74  sasphy(false), sasphy_reset(false),
75  get_wce(false), get_rcd(false),
76  set_wce(0), set_rcd(0)
77  { }
78 };
79 
80 int scsiPrintMain(scsi_device * device, const scsi_print_options & options);
81 
82 #endif
short int set_rcd
Definition: scsiprint.h:57
bool smart_auto_save_enable
Definition: scsiprint.h:46
bool smart_default_selftest
Definition: scsiprint.h:48
bool smart_background_log
Definition: scsiprint.h:42
bool smart_selftest_force
Definition: scsiprint.h:52
bool smart_check_status
Definition: scsiprint.h:38
bool smart_short_cap_selftest
Definition: scsiprint.h:49
bool smart_auto_save_disable
Definition: scsiprint.h:46
short int set_wce
Definition: scsiprint.h:57
SCSI device access.
int scsiPrintMain(scsi_device *device, const scsi_print_options &options)
Definition: scsiprint.cpp:1861
bool smart_ss_media_log
Definition: scsiprint.h:43
bool smart_selftest_log
Definition: scsiprint.h:41
bool smart_short_selftest
Definition: scsiprint.h:49
bool smart_extend_selftest
Definition: scsiprint.h:50
bool smart_extend_cap_selftest
Definition: scsiprint.h:50
bool smart_selftest_abort
Definition: scsiprint.h:51
bool smart_vendor_attrib
Definition: scsiprint.h:39