|
Public Types |
| enum | IdNum {
ID_DOS16 = 0x6,
ID_DOS = 0x0c,
ID_NTFS = 0x07,
ID_EXTENDED = 0x0f,
ID_LINUX = 0x83,
ID_SWAP = 0x82,
ID_LVM = 0x8e,
ID_RAID = 0xfd,
ID_APPLE_OTHER = 0x101,
ID_APPLE_HFS = 0x102,
ID_GPT_BOOT = 0x103,
ID_GPT_SERVICE = 0x104,
ID_GPT_MSFTRES = 0x105,
ID_APPLE_UFS = 0x106
} |
Public Member Functions |
| | Partition (const Disk &d, unsigned Pnr, unsigned long long SizeK, unsigned long Start, unsigned long CSize, storage::PartitionType Type, unsigned id=ID_LINUX, bool Boot=false) |
| | Partition (const Disk &d, const string &Data) |
| | Partition (const Disk &d, const Partition &p) |
| virtual | ~Partition () |
| unsigned long | cylStart () const |
| unsigned long | cylSize () const |
| unsigned long | cylEnd () const |
| const Region & | region () const |
| const std::list< string > | udevId () const |
| const string & | udevPath () const |
| string | sysfsPath () const |
| bool | intersectArea (const Region &r, unsigned fuzz=0) const |
| bool | contains (const Region &r, unsigned fuzz=0) const |
| unsigned | OrigNr () const |
| bool | boot () const |
| unsigned | id () const |
| storage::PartitionType | type () const |
| std::ostream & | logData (std::ostream &file) const |
| void | changeRegion (unsigned long Start, unsigned long CSize, unsigned long long SizeK) |
| void | changeNumber (unsigned new_num) |
| void | changeId (unsigned id) |
| void | changeIdDone () |
| void | unChangeId () |
| string | removeText (bool doing=true) const |
| string | createText (bool doing=true) const |
| string | formatText (bool doing=true) const |
| string | resizeText (bool doing=true) const |
| void | getCommitActions (std::list< storage::commitAction * > &l) const |
| string | setTypeText (bool doing=true) const |
| int | setFormat (bool format=true, storage::FsType fs=storage::REISERFS) |
| int | changeMount (const string &val) |
| const Disk * | disk () const |
| bool | isWindows () const |
| virtual void | print (std::ostream &s) const |
| void | setResizedSize (unsigned long long SizeK) |
| void | forgetResize () |
| bool | canUseDevice () const |
| void | getInfo (storage::PartitionInfo &info) const |
| bool | equalContent (const Partition &rhs) const |
| void | logDifference (const Partition &d) const |
| void | addUdevData () |
| bool | operator== (const Partition &rhs) const |
| bool | operator!= (const Partition &rhs) const |
| bool | operator< (const Partition &rhs) const |
| bool | operator<= (const Partition &rhs) const |
| bool | operator>= (const Partition &rhs) const |
| bool | operator> (const Partition &rhs) const |
Static Public Member Functions |
| static bool | notDeleted (const Partition &d) |
| static bool | toChangeId (const Partition &d) |
Protected Member Functions |
| Partition & | operator= (const Partition &) |
| void | addAltUdevId (unsigned num) |
| void | addAltUdevPath (unsigned num) |
Protected Attributes |
| Region | reg |
| bool | bootflag |
| storage::PartitionType | typ |
| unsigned | idt |
| unsigned | orig_id |
| string | parted_start |
| unsigned | orig_num |
| storage::PartitionInfo | info |
Static Protected Attributes |
| static string | pt_names [storage::PTYPE_ANY+1] = { "primary", "extended", "logical", "any" } |
Friends |
| std::ostream & | operator<< (std::ostream &s, const Partition &p) |