24 #ifndef STORAGE_FREE_INFO_H 25 #define STORAGE_FREE_INFO_H 28 #include <libxml/tree.h> 182 ResizeInfo(
bool resize_ok, uint32_t reasons,
unsigned long long min_size,
unsigned long long max_size);
194 void combine_min(
unsigned long long extra_min_size);
196 void combine_max(
unsigned long long extra_max_size);
198 void combine_block_size(
unsigned long long extra_block_size);
206 void shift(
unsigned long long offset);
212 unsigned long long min_size;
213 unsigned long long max_size;
215 unsigned long long block_size;
217 friend std::ostream& operator<<(std::ostream& out,
const ResizeInfo& resize_info);
223 void save(xmlNode* node)
const;
236 ContentInfo(
bool is_windows,
bool is_efi,
unsigned num_homes);
243 friend std::ostream& operator<<(std::ostream& out,
const ContentInfo& content_info);
249 void save(xmlNode* node)
const;
258 SpaceInfo(
unsigned long long size,
unsigned long long used);
260 unsigned long long size;
261 unsigned long long used;
263 std::string get_size_string()
const;
265 friend std::ostream& operator<<(std::ostream& out,
const SpaceInfo& space_info);
271 void save(xmlNode* node)
const;
The filesystem does not support grow.
Definition: FreeInfo.h:79
The partition has already the minimal possible size.
Definition: FreeInfo.h:124
The filesystem has already the minimal possible size.
Definition: FreeInfo.h:94
The filesystem is full and cannot be shrunk.
Definition: FreeInfo.h:108
Several limitations were combined, e.g.
Definition: FreeInfo.h:65
Extended partitions cannot be resized.
Definition: FreeInfo.h:131
The filesystem seems to be inconsistent or checking filesystem consistency failed.
Definition: FreeInfo.h:87
No space behind partition.
Definition: FreeInfo.h:117
Shrink of LVM logical volume of this type not supported, e.g.
Definition: FreeInfo.h:145
The device or one of its descendants that also needs resizing does not support resizing.
Definition: FreeInfo.h:57
Resize of LVM logical volume of this type not supported, e.g.
Definition: FreeInfo.h:152
Definition: FreeInfo.h:178
Partition on an implicit partition table cannot be resized.
Definition: FreeInfo.h:138
The filesystem does not support shrink.
Definition: FreeInfo.h:72
No space left in LVM volume group.
Definition: FreeInfo.h:159
Definition: FreeInfo.h:254
The LVM logical volume has already the minimal possible size.
Definition: FreeInfo.h:166
LVM thin logical volume has already maximal size.
Definition: FreeInfo.h:173
The storage namespace.
Definition: Actiongraph.h:37
void shift(unsigned long long offset)
min_size += offset max_size += offset
Definition: FreeInfo.h:232
The filesystem has already the maximal possible size.
Definition: FreeInfo.h:101
void combine(ResizeInfo extra_resize_info)
min_size = max(min_size, extra_resize_info.min_size) max_size = min(max_size, extra_resize_info.max_size)