libstorage-ng
Public Member Functions | Public Attributes | Friends | List of all members
storage::ResizeInfo Class Reference

Public Member Functions

 ResizeInfo (bool resize_ok, uint32_t reasons, unsigned long long min_size, unsigned long long max_size)
 
 ResizeInfo (bool resize_ok, uint32_t reasons)
 
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) More...
 
void combine_min (unsigned long long extra_min_size)
 
void combine_max (unsigned long long extra_max_size)
 
void combine_block_size (unsigned long long extra_block_size)
 
void shift (unsigned long long offset)
 min_size += offset max_size += offset More...
 
 ResizeInfo (const xmlNode *node)
 
void save (xmlNode *node) const
 

Public Attributes

bool resize_ok
 
uint32_t reasons
 
unsigned long long min_size
 
unsigned long long max_size
 
unsigned long long block_size
 

Friends

std::ostream & operator<< (std::ostream &out, const ResizeInfo &resize_info)
 

Member Function Documentation

◆ combine()

void storage::ResizeInfo::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)

Use e.g. to combine limits from filesystem with limits from partition.

◆ shift()

void storage::ResizeInfo::shift ( unsigned long long  offset)

min_size += offset max_size += offset

Use e.g. to shift limits from filesystem by metadata of LUKS.


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