#include <iostream>#include <string>#include <sstream>#include <iomanip>#include <fcntl.h>#include <sys/mount.h>#include <linux/hdreg.h>#include "y2storage/Region.h"#include "y2storage/Partition.h"#include "y2storage/ProcPart.h"#include "y2storage/Disk.h"#include "y2storage/Storage.h"#include "y2storage/AsciiFile.h"#include "y2storage/AppUtil.h"#include "y2storage/SystemCmd.h"Namespaces | |
| namespace | storage |
Defines | |
| #define | PARTEDBIN "/usr/sbin/parted" |
| #define | PARTEDCMD PARTEDBIN " -s " |
| #define | TB (1024ULL * 1024ULL * 1024ULL) |
| #define | EB (1024ULL * 1024ULL * 1024ULL * 1024ULL) |
| #define | PB (1024ULL * 1024ULL * 1024ULL * 1024ULL * 1024ULL) |
Functions | |
| static bool | isBsdPart (const Partition &p) |
| static bool | isExtended (const Partition &p) |
| static bool | notDeletedLog (const Partition &p) |
| static bool | notDeletedNotLog (const Partition &p) |
| static bool | existingNotLog (const Partition &p) |
| static bool | existingLog (const Partition &p) |
| static bool | notCreatedPrimary (const Partition &p) |
| static bool | regions_sort_size (const Region &rhs, const Region &lhs) |
| static bool | volume_ptr_sort_nr (Partition *&rhs, Partition *&lhs) |
| static bool | logicalCreated (const Partition &p) |
| std::ostream & | storage::operator<< (std::ostream &s, const Disk &d) |
| #define EB (1024ULL * 1024ULL * 1024ULL * 1024ULL) |
| #define PARTEDBIN "/usr/sbin/parted" |
Referenced by storage::Disk::enlargeGpt().
| #define PARTEDCMD PARTEDBIN " -s " |
| #define PB (1024ULL * 1024ULL * 1024ULL * 1024ULL * 1024ULL) |
| #define TB (1024ULL * 1024ULL * 1024ULL) |
Referenced by storage::Disk::defaultLabel().
| static bool existingLog | ( | const Partition & | p | ) | [static] |
References storage::Volume::created(), storage::Volume::deleted(), storage::LOGICAL, and storage::Partition::type().
Referenced by storage::Disk::doCreate().
| static bool existingNotLog | ( | const Partition & | p | ) | [static] |
References storage::Volume::created(), storage::Volume::deleted(), storage::LOGICAL, and storage::Partition::type().
Referenced by storage::Disk::doCreate().
| static bool isBsdPart | ( | const Partition & | p | ) | [static] |
References storage::Partition::id().
| static bool isExtended | ( | const Partition & | p | ) | [static] |
References storage::EXTENDED, storage::Volume::notDeleted(), and storage::Partition::type().
Referenced by storage::Disk::changePartitionArea(), storage::Disk::createChecks(), storage::Disk::createPartition(), storage::Disk::doCreate(), storage::Disk::doResize(), storage::Disk::hasExtended(), and storage::Disk::resizePartition().
| static bool logicalCreated | ( | const Partition & | p | ) | [static] |
References storage::Volume::created(), storage::LOGICAL, and storage::Partition::type().
Referenced by storage::Disk::doCreate().
| static bool notCreatedPrimary | ( | const Partition & | p | ) | [static] |
References storage::Volume::created(), storage::PRIMARY, and storage::Partition::type().
Referenced by storage::Disk::doRemove().
| static bool notDeletedLog | ( | const Partition & | p | ) | [static] |
References storage::Volume::deleted(), storage::LOGICAL, and storage::Partition::type().
Referenced by storage::Disk::changePartitionArea(), storage::Disk::createChecks(), and storage::Disk::getPartitionAfter().
| static bool notDeletedNotLog | ( | const Partition & | p | ) | [static] |
References storage::Volume::deleted(), storage::LOGICAL, and storage::Partition::type().
1.5.5