NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Lvm Class Reference

Classes

struct  disk_locn
struct  label_header
struct  List
class  ListWithCount
struct  mda_header
struct  PV
 Physical volume. More...
struct  pv_header
struct  raw_locn
class  Uuid
class  Xlated

Static Public Member Functions

static void find (MyDiskHelper *disk, unsigned disknum)

Private Types

enum  {
  SECTOR_SHIFT = 9L, SECTOR_SIZE = 1L << SECTOR_SHIFT, LABEL_SIZE = SECTOR_SIZE, LABEL_SCAN_SECTORS = 4L,
  LABEL_SCAN_SIZE = LABEL_SCAN_SECTORS << SECTOR_SHIFT, INITIAL_CRC = 0xf597a6cf, ID_LEN = 32, NAME_LEN = 128,
  FMTT_VERSION = 1, MDA_HEADER_SIZE = 512
}

Private Member Functions

template<typename T >
class Lvm::Xlated __attribute__ ((packed))
struct Lvm::label_header __attribute__ ((packed))
struct Lvm::disk_locn __attribute__ ((packed))
struct Lvm::pv_header __attribute__ ((packed))
struct Lvm::raw_locn __attribute__ ((packed))
struct Lvm::mda_header __attribute__ ((packed))
unsigned scan_pvs (unsigned disknum)
 Scans physical volumes for LVM labels.
unsigned find_vgs (unsigned disknum)
 Reads metadata from disks and constructs volume groups.
 Lvm (MyDiskHelper *disk)

Static Private Member Functions

template<typename T >
static T xlate (const T v)
static bool isspace (const char c)
static bool isalnum (const char c)
static bool validate_name (const char *n)

Private Attributes

struct Lvm::List __attribute__
MyDiskHelperdisk
ListWithCount< PVpvs

Member Enumeration Documentation

anonymous enum
private
Enumerator:
SECTOR_SHIFT 
SECTOR_SIZE 
LABEL_SIZE 
LABEL_SCAN_SECTORS 
LABEL_SCAN_SIZE 
INITIAL_CRC 
ID_LEN 
NAME_LEN 
FMTT_VERSION 
MDA_HEADER_SIZE 

Constructor & Destructor Documentation

Lvm::Lvm ( MyDiskHelper disk)
inlineprivate

Member Function Documentation

template<typename T >
class Lvm::Xlated Lvm::__attribute__ ( (packed)  )
private
struct Lvm::label_header Lvm::__attribute__ ( (packed)  )
private
struct Lvm::disk_locn Lvm::__attribute__ ( (packed)  )
private
struct Lvm::pv_header Lvm::__attribute__ ( (packed)  )
private
struct Lvm::raw_locn Lvm::__attribute__ ( (packed)  )
private
struct Lvm::mda_header Lvm::__attribute__ ( (packed)  )
private
static void Lvm::find ( MyDiskHelper disk,
unsigned  disknum 
)
inlinestatic
unsigned Lvm::find_vgs ( unsigned  disknum)
inlineprivate

Reads metadata from disks and constructs volume groups.

static bool Lvm::isalnum ( const char  c)
inlinestaticprivate
static bool Lvm::isspace ( const char  c)
inlinestaticprivate
unsigned Lvm::scan_pvs ( unsigned  disknum)
inlineprivate

Scans physical volumes for LVM labels.

static bool Lvm::validate_name ( const char *  n)
inlinestaticprivate
template<typename T >
static T Lvm::xlate ( const T  v)
inlinestaticprivate

Member Data Documentation

struct Lvm::List Lvm::__attribute__
private
MyDiskHelper* Lvm::disk
private
ListWithCount<PV> Lvm::pvs
private

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