Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

LvmAccess Class Reference

#include <LvmAccess.h>

List of all members.

Public Member Functions

 LvmAccess (bool Expensive_bv=true)
virtual ~LvmAccess ()
unsigned VgCnt ()
unsigned PvCnt ()
unsigned LvCnt ()
int GetVgIdx (const string &VgName_Cv)
int GetPvIdx (const string &PvName_Cv)
VgInfo GetVg (int Idx_ii)
LvInfo GetLv (int Idx_ii)
PvInfo GetPv (int Idx_ii)
void ChangeId (int Idx_ii, int Id_iv)
void ChangePvVgName (const string &Device_Cv, const string &Name_Cv)
void DoExpensive ()
bool CreatePv (const string &PvName_Cv, bool NewMeta_bv)
string GetErrorText ()
string GetCmdLine ()
int LvmVersion ()
bool Lvm2 ()
bool ChangeActive (const string &Name_Cv, bool Active_bv)
bool DeleteVg (const string &VgName_Cv)
bool ExtendVg (const string &VgName_Cv, const string &PvName_Cv)
bool ShrinkVg (const string &VgName_Cv, const string &PvName_Cv)
bool CreateVg (const string &VgName_Cv, unsigned long PeSize_lv, bool NewMeta_bv, list< string > &Devices_Cv)
bool CreateLv (const string &LvName_Cv, const string &VgName_Cv, unsigned long Size_lv, unsigned long Stripe_lv, unsigned long StripeSize_lv)
bool ChangeLvSize (const string &LvName_Cv, unsigned long Size_lv)
bool DeleteLv (const string &LvName_Cv)
void UpdateDisk (list< PartInfo > &Part_Cv, const string &Disk_Cv)
void ActivateLvm ()
bool ActivateVGs (bool Activate_bv=true, const string &VgName_Cv="")
list< string > PhysicalDeviceList ()

Static Public Member Functions

static unsigned long long UnitToValue (const string &Unit_Cv)

Protected Member Functions

void ProcessMd ()
void ScanForDisks ()
void ScanForInactiveVg ()
void ScanLvmStatus ()
void ScanProcLvm ()
void ScanVgdisplayOutput ()
void PrepareLvmCmd ()
list< PvInfo >::iterator SortIntoPvList (const PvInfo &PvElem_rv)
bool ExecuteLvmCmd (const string &Cmd_Cv)
bool MountRamdisk (const string &Path_Cv, unsigned SizeMb_iv)
void CleanPartialVGs (const string &VgName_Cv)
string GetPvDevicename (const string &VgName_Cv, const string &FDev_Cv, const string &Dev_Cv, int Num_iv, int Mp_iv)
void LvIntoList (VgIntern &VgElem_rr, list< LvInfo > &LvList_Cr, const LvInfo &LvElem_rv)
void PvIntoList (VgIntern &VgElem_rr, list< PvInfo > &PvList_Cr, const PvInfo &PvElem_rv)
list< VgIntern >::iterator FindVg (const string &Name_Cv)
list< PvInfo >::iterator FindPv (const string &Device_Cv)
list< LvInfo >::iterator FindLv (const string &Name_Cv)

Protected Attributes

list< VgIntern > VgList_C
list< PvInfo > PvList_C
list< LvInfo > LvList_C
bool Expensive_b
bool DidVgchangeA_b
SystemCmd LvmCmd_C
string LvmOutput_C
string CmdLine_C
int LvmRet_i
int LvmVersion_i

Classes

struct  VgIntern


Constructor & Destructor Documentation

LvmAccess::LvmAccess (  bool  Expensive_bv = true  ) 
 

LvmAccess::~LvmAccess (   )  [virtual]
 


Member Function Documentation

void LvmAccess::ActivateLvm (   ) 
 

bool LvmAccess::ActivateVGs (  bool  Activate_bv = true,
const string &  VgName_Cv = ""
) 
 

bool LvmAccess::ChangeActive (  const string &  Name_Cv,
bool  Active_bv
) 
 

void LvmAccess::ChangeId (  int  Idx_ii,
int  Id_iv
) 
 

bool LvmAccess::ChangeLvSize (  const string &  LvName_Cv,
unsigned long  Size_lv
) 
 

void LvmAccess::ChangePvVgName (  const string &  Device_Cv,
const string &  Name_Cv
) 
 

void LvmAccess::CleanPartialVGs (  const string &  VgName_Cv  )  [protected]
 

bool LvmAccess::CreateLv (  const string &  LvName_Cv,
const string &  VgName_Cv,
unsigned long  Size_lv,
unsigned long  Stripe_lv,
unsigned long  StripeSize_lv
) 
 

bool LvmAccess::CreatePv (  const string &  PvName_Cv,
bool  NewMeta_bv
) 
 

bool LvmAccess::CreateVg (  const string &  VgName_Cv,
unsigned long  PeSize_lv,
bool  NewMeta_bv,
list< string > &  Devices_Cv
) 
 

bool LvmAccess::DeleteLv (  const string &  LvName_Cv  ) 
 

bool LvmAccess::DeleteVg (  const string &  VgName_Cv  ) 
 

void LvmAccess::DoExpensive (   ) 
 

bool LvmAccess::ExecuteLvmCmd (  const string &  Cmd_Cv  )  [protected]
 

bool LvmAccess::ExtendVg (  const string &  VgName_Cv,
const string &  PvName_Cv
) 
 

list< LvInfo >::iterator LvmAccess::FindLv (  const string &  Name_Cv  )  [protected]
 

list< PvInfo >::iterator LvmAccess::FindPv (  const string &  Device_Cv  )  [protected]
 

list< LvmAccess::VgIntern >::iterator LvmAccess::FindVg (  const string &  Name_Cv  )  [protected]
 

string LvmAccess::GetCmdLine (   ) 
 

string LvmAccess::GetErrorText (   ) 
 

LvInfo LvmAccess::GetLv (  int  Idx_ii  ) 
 

PvInfo LvmAccess::GetPv (  int  Idx_ii  ) 
 

string LvmAccess::GetPvDevicename (  const string &  VgName_Cv,
const string &  FDev_Cv,
const string &  Dev_Cv,
int  Num_iv,
int  Mp_iv
)  [protected]
 

int LvmAccess::GetPvIdx (  const string &  PvName_Cv  ) 
 

VgInfo LvmAccess::GetVg (  int  Idx_ii  ) 
 

int LvmAccess::GetVgIdx (  const string &  VgName_Cv  ) 
 

unsigned LvmAccess::LvCnt (   ) 
 

void LvmAccess::LvIntoList (  VgIntern &  VgElem_rr,
list< LvInfo > &  LvList_Cr,
const LvInfo &  LvElem_rv
)  [protected]
 

bool LvmAccess::Lvm2 (   )  [inline]
 

int LvmAccess::LvmVersion (   )  [inline]
 

bool LvmAccess::MountRamdisk (  const string &  Path_Cv,
unsigned  SizeMb_iv
)  [protected]
 

list< string > LvmAccess::PhysicalDeviceList (   ) 
 

void LvmAccess::PrepareLvmCmd (   )  [protected]
 

void LvmAccess::ProcessMd (   )  [protected]
 

unsigned LvmAccess::PvCnt (   ) 
 

void LvmAccess::PvIntoList (  VgIntern &  VgElem_rr,
list< PvInfo > &  PvList_Cr,
const PvInfo &  PvElem_rv
)  [protected]
 

void LvmAccess::ScanForDisks (   )  [protected]
 

void LvmAccess::ScanForInactiveVg (   )  [protected]
 

void LvmAccess::ScanLvmStatus (   )  [protected]
 

void LvmAccess::ScanProcLvm (   )  [protected]
 

void LvmAccess::ScanVgdisplayOutput (   )  [protected]
 

bool LvmAccess::ShrinkVg (  const string &  VgName_Cv,
const string &  PvName_Cv
) 
 

list< PvInfo >::iterator LvmAccess::SortIntoPvList (  const PvInfo &  PvElem_rv  )  [protected]
 

unsigned long long LvmAccess::UnitToValue (  const string &  Unit_Cv  )  [static]
 

void LvmAccess::UpdateDisk (  list< PartInfo > &  Part_Cv,
const string &  Disk_Cv
) 
 

unsigned LvmAccess::VgCnt (   ) 
 


Member Data Documentation

string LvmAccess::CmdLine_C [protected]
 

bool LvmAccess::DidVgchangeA_b [protected]
 

bool LvmAccess::Expensive_b [protected]
 

list<LvInfo> LvmAccess::LvList_C [protected]
 

SystemCmd LvmAccess::LvmCmd_C [protected]
 

string LvmAccess::LvmOutput_C [protected]
 

int LvmAccess::LvmRet_i [protected]
 

int LvmAccess::LvmVersion_i [protected]
 

list<PvInfo> LvmAccess::PvList_C [protected]
 

list<VgIntern> LvmAccess::VgList_C [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Apr 4 21:51:43 2005 for yast2-storage by  doxygen 1.4.1