#include "config.h"
#include <errno.h>
#include <inttypes.h>
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdexcept>
#include <getopt.h>
#include "atacmds.h"
#include "dev_interface.h"
#include "ataprint.h"
#include "knowndrives.h"
#include "scsicmds.h"
#include "scsiprint.h"
#include "nvmeprint.h"
#include "smartctl.h"
#include "utility.h"
#include "svnversion.h"
Go to the source code of this file.
|
| static void | printslogan () |
| |
| static void | UsageSummary () |
| |
| static void | js_initialize (int argc, char **argv, bool verbose) |
| |
| static std::string | getvalidarglist (int opt) |
| |
| static void | Usage () |
| |
| static void | printvalidarglistmessage (int opt) |
| |
| static void | scan_devices (const smart_devtype_list &types, bool with_open, char **argv) |
| |
| static int | parse_options (int argc, char **argv, const char *&type, ata_print_options &ataopts, scsi_print_options &scsiopts, nvme_print_options &nvmeopts, bool &print_type_only) |
| |
| | __attribute_format_printf (3, 0) static void vjpout(bool is_js_impl |
| |
| void | jout_startup_datetime (const char *prefix) |
| |
| void | failuretest (failure_type type, int returnvalue) |
| |
| void | checksumwarning (const char *string) |
| |
| static const char * | get_protocol_info (const smart_device *dev) |
| |
| static void | js_device_info (const json::ref &jref, const smart_device *dev) |
| |
| static int | main_worker (int argc, char **argv) |
| |
| int | main (int argc, char **argv) |
| |
◆ __STDC_FORMAT_MACROS
| #define __STDC_FORMAT_MACROS 1 |
◆ anonymous enum
| Enumerator |
|---|
| opt_identify | |
| opt_scan | |
| opt_scan_open | |
| opt_set | |
| opt_smart | |
Definition at line 224 of file smartctl.cpp.
◆ checksum_err_mode_t
| Enumerator |
|---|
| CHECKSUM_ERR_WARN | |
| CHECKSUM_ERR_EXIT | |
| CHECKSUM_ERR_IGNORE | |
Definition at line 305 of file smartctl.cpp.
◆ __attribute_format_printf()
| __attribute_format_printf |
( |
3 |
, |
|
|
0 |
|
|
) |
| |
◆ checksumwarning()
| void checksumwarning |
( |
const char * |
string | ) |
|
◆ failuretest()
◆ get_protocol_info()
| static const char * get_protocol_info |
( |
const smart_device * |
dev | ) |
|
|
static |
◆ getvalidarglist()
| static std::string getvalidarglist |
( |
int |
opt | ) |
|
|
static |
◆ jout_startup_datetime()
| void jout_startup_datetime |
( |
const char * |
prefix | ) |
|
◆ js_device_info()
◆ js_initialize()
| static void js_initialize |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
bool |
verbose |
|
) |
| |
|
static |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ main_worker()
| static int main_worker |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
static |
◆ parse_options()
◆ printslogan()
| static void printslogan |
( |
| ) |
|
|
static |
◆ printvalidarglistmessage()
| static void printvalidarglistmessage |
( |
int |
opt | ) |
|
|
static |
◆ scan_devices()
◆ Usage()
◆ UsageSummary()
| static void UsageSummary |
( |
| ) |
|
|
static |
◆ ap
| const char const char va_list ap |
◆ checksum_err_mode
◆ failuretest_conservative
| bool failuretest_conservative = false |
◆ failuretest_permissive
| unsigned char failuretest_permissive = 0 |
◆ fmt
| const char const char* fmt |
◆ jglb
◆ msg_severity
◆ print_as_json
| bool print_as_json = false |
|
static |
◆ print_as_json_impl
| bool print_as_json_impl = false |
|
static |
◆ print_as_json_options
◆ print_as_json_output
| bool print_as_json_output = false |
|
static |
◆ print_as_json_unimpl
| bool print_as_json_unimpl = false |
|
static |
◆ printing_is_off
| bool printing_is_off = false |
◆ printing_is_switchable
| bool printing_is_switchable = false |
◆ smartctl_cpp_cvsid
| const char* smartctl_cpp_cvsid |
Initial value:= "$Id: smartctl.cpp 5673 2025-03-20 12:48:26Z chrfranke $"
Definition at line 45 of file smartctl.cpp.