|
smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
|
#include "config.h"#include "int64.h"#include "atacmds.h"#include "scsicmds.h"#include "utility.h"#include "os_openbsd.h"#include <errno.h>
Go to the source code of this file.
Enumerations | |
| enum | warnings { BAD_SMART, NO_3WARE, NO_ARECA, MAX_MSG, BAD_SMART, NO_3WARE, NO_ARECA, MAX_MSG } |
Functions | |
| void | printwarning (int msgNo, const char *extra) |
| int | guess_device_type (const char *dev_name) |
| int | get_dev_names (char ***names, const char *prefix) |
| 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) |
| void | print_smartctl_examples () |
Variables | |
| const char * | os_openbsd_cpp_cvsid |
| long long | bytes |
| static const char * | net_dev_prefix = "/dev/" |
| static const char * | net_dev_ata_disk = "wd" |
| static const char * | net_dev_scsi_disk = "sd" |
| static const char * | net_dev_scsi_tape = "st" |
| enum warnings |
Definition at line 36 of file os_openbsd.cpp.
| int ata_command_interface | ( | int | fd, |
| smart_command_set | command, | ||
| int | select, | ||
| char * | data | ||
| ) |
Definition at line 177 of file os_openbsd.cpp.
| int deviceclose | ( | int | fd | ) |
Definition at line 171 of file os_openbsd.cpp.
| int deviceopen | ( | const char * | pathname, |
| char * | type | ||
| ) |
Definition at line 157 of file os_openbsd.cpp.
| int do_scsi_cmnd_io | ( | int | fd, |
| struct scsi_cmnd_io * | iop, | ||
| int | report | ||
| ) |
Definition at line 355 of file os_openbsd.cpp.
| int get_dev_names | ( | char *** | names, |
| const char * | prefix | ||
| ) |
Definition at line 95 of file os_openbsd.cpp.
| int guess_device_type | ( | const char * | dev_name | ) |
Definition at line 68 of file os_openbsd.cpp.
| int make_device_names | ( | char *** | devlist, |
| const char * | name | ||
| ) |
Definition at line 146 of file os_openbsd.cpp.
| void print_smartctl_examples | ( | ) |
Definition at line 415 of file os_openbsd.cpp.
| void printwarning | ( | int | msgNo, |
| const char * | extra | ||
| ) |
Definition at line 42 of file os_openbsd.cpp.
| long long bytes |
Definition at line 124 of file os_freebsd.cpp.
const char* net_dev_ata_disk = "wd" [static] |
Definition at line 62 of file os_openbsd.cpp.
const char* net_dev_prefix = "/dev/" [static] |
Definition at line 61 of file os_openbsd.cpp.
const char* net_dev_scsi_disk = "sd" [static] |
Definition at line 63 of file os_openbsd.cpp.
const char* net_dev_scsi_tape = "st" [static] |
Definition at line 64 of file os_openbsd.cpp.
| const char* os_openbsd_cpp_cvsid |
"$Id: os_openbsd.cpp 3727 2012-12-13 17:23:06Z samm2 $" OS_OPENBSD_H_CVSID
Definition at line 30 of file os_openbsd.cpp.
1.7.4