blob: 1a1db29e9012069ca669c307e92a4a865ff199c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/*
* scsiprint.h
*
* Home page of code is: https://www.smartmontools.org
*
* Copyright (C) 2002-9 Bruce Allen
* Copyright (C) 2000 Michael Cornwell <cornwell@acm.org>
*
* Additional SCSI work:
* Copyright (C) 2003-2023 Douglas Gilbert <dgilbert@interlog.com>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef SCSI_PRINT_H_
#define SCSI_PRINT_H_
#define SCSIPRINT_H_CVSID "$Id: scsiprint.h 5462 2023-03-13 10:45:06Z chrfranke $\n"
// Options for scsiPrintMain
struct scsi_print_options
{
bool drive_info = false;
bool smart_check_status = false;
bool smart_vendor_attrib = false;
bool smart_error_log = false;
bool smart_selftest_log = false;
bool smart_background_log = false;
bool smart_ss_media_log = false;
bool smart_disable = false, smart_enable = false;
bool smart_auto_save_disable = false, smart_auto_save_enable = false;
bool smart_default_selftest = false;
bool smart_short_selftest = false, smart_short_cap_selftest = false;
bool smart_extend_selftest = false, smart_extend_cap_selftest = false;
bool smart_selftest_abort = false;
bool smart_selftest_force = false; // Ignore already running test
bool scsi_pending_defects = false;
bool general_stats_and_perf = false;
bool smart_env_rep = false;
bool sasphy = false, sasphy_reset = false;
bool tape_device_stats = false;
bool tape_alert = false;
bool zoned_device_stats = false;
bool get_wce = false, get_rcd = false;
short int set_wce = 0, set_rcd = 0; // disable(-1), enable(1) cache
unsigned char powermode = 0; // Enhancement Skip check, if disk in idle or standby mode
unsigned char powerexit = 0; // exit() code for low power mode
int set_standby = 0; // set(1..255->0..254) standby timer
bool set_standby_now = false; // set drive to standby
bool set_active = false; // set drive to active
int health_opt_count = 0; // TapeAlert log page only read if this value > 1
bool farm_log = false; // Seagate Field Access Reliability Metrics log (FARM) for SCSI
bool farm_log_suggest = false; // If -x/-xall or -a/-all is run, suggests FARM log if supported
};
int scsiPrintMain(scsi_device * device, const scsi_print_options & options);
#endif
|