|
smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
|
#include <stdlib.h>#include <ctype.h>#include <string.h>#include <dirent.h>#include <stdio.h>#include <unistd.h>#include <sys/param.h>#include "config.h"#include "int64.h"#include "atacmds.h"#include "scsicmds.h"#include "utility.h"#include "os_solaris.h"#include <errno.h>#include <sys/scsi/generic/commands.h>#include <sys/scsi/generic/status.h>#include <sys/scsi/impl/types.h>#include <sys/scsi/impl/uscsi.h>
Go to the source code of this file.
Classes | |
| struct | pathlist |
Defines | |
| #define | ARGUSED(x) ((void)(x)) |
Functions | |
| int | printwarning (int which) |
| void | print_smartctl_examples () |
| static int | isdevtype (const char *dev_name, const char *table[], int tsize) |
| static int | isscsidev (const char *path) |
| static int | isatadev (const char *path) |
| int | guess_device_type (const char *dev_name) |
| static int | addpath (const char *path, struct pathlist *res) |
| static int | grokdir (const char *dir, struct pathlist *res, int testfun(const char *)) |
| int | make_device_names (char ***devlist, const char *name) |
| int | deviceopen (const char *pathname, char *type) |
| int | deviceclose (int fd) |
| int | ata_command_interface (int fd, smart_command_set command, int select, char *data) |
| int | do_scsi_cmnd_io (int fd, struct scsi_cmnd_io *iop, int report) |
Variables | |
| long long | bytes |
| static const char * | filenameandversion = "$Id: os_solaris.cpp 3806 2013-03-29 20:17:03Z chrfranke $" |
| const char * | os_XXXX_c_cvsid |
| int | printedout [2] |
| char * | unimplemented [2] |
| static const char * | uscsidrvrs [] |
| static const char * | atadrvrs [] |
| #define ARGUSED | ( | x | ) | ((void)(x)) |
Definition at line 38 of file os_solaris.cpp.
| static int addpath | ( | const char * | path, |
| struct pathlist * | res | ||
| ) | [static] |
Definition at line 162 of file os_solaris.cpp.
| int ata_command_interface | ( | int | fd, |
| smart_command_set | command, | ||
| int | select, | ||
| char * | data | ||
| ) |
Definition at line 288 of file os_solaris.cpp.
| int deviceclose | ( | int | fd | ) |
Definition at line 270 of file os_solaris.cpp.
| int deviceopen | ( | const char * | pathname, |
| char * | type | ||
| ) |
Definition at line 260 of file os_solaris.cpp.
| int do_scsi_cmnd_io | ( | int | fd, |
| struct scsi_cmnd_io * | iop, | ||
| int | report | ||
| ) |
Definition at line 351 of file os_solaris.cpp.
| static int grokdir | ( | const char * | dir, |
| struct pathlist * | res, | ||
| int | testfunconst char * | ||
| ) | [static] |
Definition at line 177 of file os_solaris.cpp.
| int guess_device_type | ( | const char * | dev_name | ) |
Definition at line 146 of file os_solaris.cpp.
| static int isatadev | ( | const char * | path | ) | [static] |
Definition at line 140 of file os_solaris.cpp.
| static int isdevtype | ( | const char * | dev_name, |
| const char * | table[], | ||
| int | tsize | ||
| ) | [static] |
Definition at line 111 of file os_solaris.cpp.
| static int isscsidev | ( | const char * | path | ) | [static] |
Definition at line 134 of file os_solaris.cpp.
| int make_device_names | ( | char *** | devlist, |
| const char * | name | ||
| ) |
Definition at line 230 of file os_solaris.cpp.
| void print_smartctl_examples | ( | ) |
Definition at line 76 of file os_solaris.cpp.
| int printwarning | ( | int | which | ) |
Definition at line 54 of file os_solaris.cpp.
const char* atadrvrs[] [static] |
{
"cmdk",
"dad",
}
Definition at line 105 of file os_solaris.cpp.
| long long bytes |
Definition at line 124 of file os_freebsd.cpp.
const char* filenameandversion = "$Id: os_solaris.cpp 3806 2013-03-29 20:17:03Z chrfranke $" [static] |
Definition at line 42 of file os_solaris.cpp.
| const char* os_XXXX_c_cvsid |
"$Id: os_solaris.cpp 3806 2013-03-29 20:17:03Z chrfranke $" ATACMDS_H_CVSID CONFIG_H_CVSID INT64_H_CVSID OS_SOLARIS_H_CVSID SCSICMDS_H_CVSID UTILITY_H_CVSID
Definition at line 44 of file os_solaris.cpp.
| int printedout[2] |
Definition at line 48 of file os_solaris.cpp.
| char* unimplemented[2] |
{
"ATA command routine ata_command_interface()",
"3ware Escalade Controller command routine escalade_command_interface()",
}
Definition at line 49 of file os_solaris.cpp.
const char* uscsidrvrs[] [static] |
{
"sd",
"ssd",
"st"
}
Definition at line 99 of file os_solaris.cpp.
1.7.4