Logo Search packages:      
Sourcecode: gdisk version File versions  Download package

Public Member Functions | Protected Member Functions | Protected Attributes

MBRData Class Reference

Collaboration diagram for MBRData:
Collaboration graph
[legend]

List of all members.

Public Member Functions

GPTPart AsGPT (int i)
int CreateLogicals (PartNotes *notes)
int DeleteByLocation (uint64_t start64, uint64_t length64)
void DeletePartition (int i)
void DisplayMBRData (int maxParts=4)
void EmptyBootloader (void)
void EmptyMBR (int clearBootloader=1)
uint32_t FindFirstAvailable (uint32_t start=1)
uint32_t FindFirstInFree (uint32_t start)
uint32_t FindLastInFree (uint32_t start)
uint32_t GetFirstSector (int i)
uint32_t GetLength (int i)
uint8_t GetStatus (int i)
uint8_t GetType (int i)
MBRValidity GetValidity (void)
int IsFree (uint32_t sector)
int LBAtoCHS (uint64_t lba, uint8_t *chs)
int MakeBiggestPart (int i, int type)
void MakePart (int num, uint32_t startLBA, uint32_t lengthLBA, int type=0x07, int bootable=0)
void MakeProtectiveMBR (int clearBoot=0)
 MBRData (string deviceFilename)
void OptimizeEESize (void)
int ReadLogicalPart (uint32_t extendedStart, uint32_t diskOffset, int partNum)
int ReadMBRData (DiskIO *theDisk, int checkBlockSize=1)
int ReadMBRData (const string &deviceFilename)
void RecomputeCHS (int partNum)
void SetCHSGeom (uint32_t h, uint32_t s)
void SetDisk (DiskIO *theDisk)
void SetDiskSize (uint64_t ds)
void SetHybrid (void)
int SetPartBootable (int num, int bootable=1)
int SetPartType (int num, int type)
void ShowState (void)
int Verify (void)
int WriteMBRData (struct TempMBR &mbr, DiskIO *theDisk, uint64_t sector)
int WriteMBRData (DiskIO *theDisk)
int WriteMBRData (const string &deviceFilename)
int WriteMBRData (void)

Protected Member Functions

struct MBRRecordGetPartition (int i)

Protected Attributes

uint32_t blockSize
int canDeleteMyDisk
uint8_t code [440]
string device
uint32_t diskSignature
uint64_t diskSize
uint16_t MBRSignature
DiskIOmyDisk
uint16_t nulls
uint64_t numHeads
uint64_t numSecspTrack
struct MBRRecord partitions [MAX_MBR_PARTS]
MBRValidity state

Detailed Description

Definition at line 65 of file mbr.h.


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

Generated by  Doxygen 1.6.0   Back to index