Logo Search packages:      
Sourcecode: s390-tools version File versions  Download package

Classes | Public Member Functions | Private Member Functions | Private Attributes

ConfigReader Class Reference

#include <ziorep_cfgreader.hpp>

Collaboration diagram for ConfigReader:
Collaboration graph
[legend]

List of all members.

Classes

struct  device_info

Public Member Functions

 ConfigReader (int *rc, const char *filename)
void dump (FILE *fp) const
 debugging
__u32 get_chpid_by_devno (__u32 devno, int *rc) const
 rc is only set on error!
__u32 get_chpid_by_host_id (__u32 h, int *rc) const
 rc is only set on error!
__u32 get_chpid_by_ident (const struct hctl_ident *ident, int *rc) const
 rc is only set on error!
__u32 get_chpid_by_mm_internal (__u32 mm, int *rc) const
 rc is only set on error!
const char * get_dev_by_mm_internal (__u32 mm_internal, int *rc) const
 rc is only set on error!
__u32 get_devno_by_host_id (__u32 h, int *rc) const
 rc is only set on error!
__u32 get_devno_by_ident (const struct hctl_ident *ident, int *rc) const
 rc is only set on error!
__u32 get_devno_by_mm_internal (__u32 mm, int *rc) const
 rc is only set on error!
void get_devnos_by_chpid (list< __u32 > &devnos, __u32 chpid) const
void get_devnos_by_host_id (list< __u32 > &devnos, __u32 host_id) const
__u32 get_host_id_by_chpid (__u32 chpid, int *rc) const
 rc is only set on error!
struct hctl_identget_ident_by_mm_internal (__u32 mm, int *rc) const
 rc is only set on error!
__u64 get_lun_by_mm_internal (__u32 mm_internal, int *rc) const
 rc is only set on error!
__u32 get_mm_by_device (const char *dev, int *rc) const
 rc is only set on error!
__u32 get_mm_by_ident (const struct hctl_ident *id, int *rc) const
 rc is only set on error!
void get_mms_by_chpid (list< __u32 > &mms, __u32 chpid) const
void get_mms_by_devno (list< __u32 > &mms, __u32 devno) const
void get_mms_by_lun (list< __u32 > &mms, __u64 lun) const
void get_mms_by_mp_mm (list< __u32 > &mms, __u32 mp_mm) const
void get_mms_by_wwpn (list< __u32 > &mms, __u64 wwpn) const
__u32 get_mp_mm_by_ident (const struct hctl_ident *ident, int *rc) const
 rc is only set on error!
__u32 get_mp_mm_by_mm_internal (__u32 mm, int *rc) const
 rc is only set on error!
__u32 get_mp_mm_by_multipath (const char *mp, int *rc) const
 rc is only set on error!
const char * get_multipath_by_mp_mm (__u32 mp_mm, int *rc) const
 rc is only set on error!
void get_unique_chpids (list< __u32 > &lst) const
void get_unique_devices (list< struct hctl_ident > &idents) const
void get_unique_devnos (list< __u32 > &lst) const
void get_unique_host_ids (list< __u32 > &host_ids) const
void get_unique_mms (list< __u32 > &mms) const
void get_unique_mp_mms (list< __u32 > &lst) const
void get_unique_wwpns (list< __u64 > &lst) const
__u64 get_wwpn_by_ident (const struct hctl_ident *ident, int *rc) const
 rc is only set on error!
__u64 get_wwpn_by_mm_internal (__u32 mm, int *rc) const
 rc is only set on error!
bool verify_chpid (__u32 chpid) const
 returns 'true' in case it exists, 'false' otherwise
bool verify_device (const char *) const
 returns 'true' in case it exists, 'false' otherwise
bool verify_devno (__u32 devno) const
 returns 'true' in case it exists, 'false' otherwise
bool verify_lun (__u64 lun) const
 returns 'true' in case it exists, 'false' otherwise
bool verify_mp_device (const char *) const
 returns 'true' in case it exists, 'false' otherwise
bool verify_wwpn (__u64 wwpn) const
 returns 'true' in case it exists, 'false' otherwise

Private Member Functions

bool cached_config_exists (const char *fname)
int check_config_file (const char *fname) const
void chpid_not_found_error (__u32 chpid, int *rc) const
void device_not_found_error (const char *, int *rc) const
void devno_not_found_error (__u32 d, int *rc) const
int extract (const char *fname)
int extract_adapter_info (char *p, struct device_info *info)
int extract_adapter_info_sub (char **tgt, char *p, char delim)
int extract_cached (const char *fname)
int extract_config_data (const char *fname)
int extract_tmp (const char *fname)
int filter_unused_devices (const char *filename)
void free_device_info (struct device_info *info)
int get_index_to (char *p, char c) const
void host_id_not_found_error (__u32 h, int *rc) const
void ident_not_found_error (const struct hctl_ident *ident, int *rc) const
void init_device_info (struct device_info *info)
void lun_not_found_error (__u64 lun, int *rc) const
void mm_internal_not_found_error (__u32 mm, int *rc) const
void mp_mm_not_found_error (__u32 mp_mm, int *rc) const
void mp_not_found_error (const char *mp, int *rc) const

Private Attributes

bool m_cfg_cached
list< struct device_infom_devices
char * m_tmp_file

Detailed Description

Parses a file holding the system-wide available devices. Since this is more than what is in the data, the devices are filtered, stripping it down to devices only actually used in the data.

Definition at line 32 of file ziorep_cfgreader.hpp.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index