#include <EtcMdadm.h>
Public Member Functions | |
| EtcMdadm (const Storage *sto, const string &prefix="") | |
| bool | updateEntry (const mdconf_info &info) |
| bool | removeEntry (const string &uuid) |
Protected Member Functions | |
| void | setDeviceLine (const string &line) |
| void | setAutoLine (const string &line) |
| void | setArrayLine (const string &line, const string &uuid) |
| string | ContLine (const mdconf_info &info) const |
| string | ArrayLine (const mdconf_info &info) const |
| vector< string >::iterator | findArray (const string &uuid) |
| string | getUuid (const string &line) const |
Protected Attributes | |
| const Storage * | sto |
| AsciiFile | mdadm |
Classes | |
| struct | mdconf_info |
| storage::EtcMdadm::EtcMdadm | ( | const Storage * | sto, | |
| const string & | prefix = "" | |||
| ) |
| bool storage::EtcMdadm::updateEntry | ( | const mdconf_info & | info | ) |
References ArrayLine(), storage::EtcMdadm::mdconf_info::container_present, storage::EtcMdadm::mdconf_info::container_uuid, ContLine(), storage::EtcMdadm::mdconf_info::device, storage::Storage::hasIScsiDisks(), mdadm, storage::AsciiFile::save(), setArrayLine(), setAutoLine(), setDeviceLine(), sto, storage::EtcMdadm::mdconf_info::uuid, y2err, and y2mil.
Referenced by storage::MdCo::doCreate(), storage::MdPartCo::updateEntry(), and storage::Md::updateEntry().
| bool storage::EtcMdadm::removeEntry | ( | const string & | uuid | ) |
References findArray(), storage::AsciiFile::lines(), mdadm, storage::AsciiFile::save(), y2err, y2mil, and y2war.
Referenced by storage::MdPartCo::doRemove(), and storage::MdCo::doRemove().
| void storage::EtcMdadm::setDeviceLine | ( | const string & | line | ) | [protected] |
| void storage::EtcMdadm::setAutoLine | ( | const string & | line | ) | [protected] |
| void storage::EtcMdadm::setArrayLine | ( | const string & | line, | |
| const string & | uuid | |||
| ) | [protected] |
| string storage::EtcMdadm::ContLine | ( | const mdconf_info & | info | ) | const [protected] |
References storage::EtcMdadm::mdconf_info::container_metadata, and storage::EtcMdadm::mdconf_info::container_uuid.
Referenced by updateEntry().
| string storage::EtcMdadm::ArrayLine | ( | const mdconf_info & | info | ) | const [protected] |
| vector< string >::iterator storage::EtcMdadm::findArray | ( | const string & | uuid | ) | [protected] |
References getUuid(), storage::AsciiFile::lines(), and mdadm.
Referenced by removeEntry(), and setArrayLine().
| string storage::EtcMdadm::getUuid | ( | const string & | line | ) | const [protected] |
Referenced by findArray().
const Storage* storage::EtcMdadm::sto [protected] |
Referenced by updateEntry().
AsciiFile storage::EtcMdadm::mdadm [protected] |
Referenced by findArray(), removeEntry(), setArrayLine(), setAutoLine(), setDeviceLine(), and updateEntry().
1.5.6