libstorage-ng
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
storage::Swap Class Reference
Inheritance diagram for storage::Swap:
Inheritance graph
[legend]
Collaboration diagram for storage::Swap:
Collaboration graph
[legend]

Public Member Functions

bool supports_label () const override
 
unsigned int max_labelsize () const override
 
bool supports_uuid () const override
 
Impl & get_impl ()
 
const Impl & get_impl () const
 
virtual Swapclone () const override
 
- Public Member Functions inherited from storage::Filesystem
FsType get_type () const
 
const std::string & get_label () const
 
void set_label (const std::string &label)
 
const std::string & get_uuid () const
 
void set_uuid (const std::string &uuid)
 
const std::vector< std::string > & get_mountpoints () const
 
void set_mountpoints (const std::vector< std::string > &mountpoints)
 
void add_mountpoint (const std::string &mountpoint)
 
MountByType get_mount_by () const
 
void set_mount_by (MountByType mount_by)
 
const std::list< std::string > & get_fstab_options () const
 
void set_fstab_options (const std::list< std::string > &fstab_options)
 
const std::string & get_mkfs_options () const
 
void set_mkfs_options (const std::string &mkfs_options)
 
const std::string & get_tune_options () const
 
void set_tune_options (const std::string &tune_options)
 
void set_resize_info (const ResizeInfo &resize_info)
 Set the ResizeInfo. More...
 
ContentInfo detect_content_info () const
 
void set_content_info (const ContentInfo &content_info)
 Set the ResizeInfo. More...
 
std::vector< const BlkDevice * > get_blk_devices () const
 
Impl & get_impl ()
 
const Impl & get_impl () const
 
- Public Member Functions inherited from storage::Device
sid_t get_sid () const
 
bool operator== (const Device &rhs) const
 
bool operator!= (const Device &rhs) const
 
bool exists_in_devicegraph (const Devicegraph *devicegraph) const
 Checks if the device exists in the devicegraph.
 
bool exists_in_probed () const
 Checks if the device exists in the probed devicegraph.
 
bool exists_in_staging () const
 Checks if the device exists in the staging devicegraph.
 
std::string get_displayname () const
 
virtual ResizeInfo detect_resize_info () const
 
bool has_children () const
 
size_t num_children () const
 
bool has_parents () const
 
size_t num_parents () const
 
std::vector< Device * > get_children ()
 
std::vector< const Device * > get_children () const
 
std::vector< Device * > get_parents ()
 
std::vector< const Device * > get_parents () const
 
std::vector< Device * > get_siblings (bool itself)
 
std::vector< const Device * > get_siblings (bool itself) const
 
std::vector< Device * > get_descendants (bool itself)
 
std::vector< const Device * > get_descendants (bool itself) const
 
std::vector< Device * > get_ancestors (bool itself)
 
std::vector< const Device * > get_ancestors (bool itself) const
 
std::vector< Device * > get_leaves (bool itself)
 
std::vector< const Device * > get_leaves (bool itself) const
 
std::vector< Device * > get_roots (bool itself)
 
std::vector< const Device * > get_roots (bool itself) const
 
std::vector< Holder * > get_in_holders ()
 
std::vector< const Holder * > get_in_holders () const
 
std::vector< Holder * > get_out_holders ()
 
std::vector< const Holder * > get_out_holders () const
 
void remove_descendants ()
 
const std::map< std::string, std::string > & get_userdata () const
 
void set_userdata (const std::map< std::string, std::string > &userdata)
 
Impl & get_impl ()
 
const Impl & get_impl () const
 
void save (xmlNode *node) const
 

Static Public Member Functions

static Swapcreate (Devicegraph *devicegraph)
 
static Swapload (Devicegraph *devicegraph, const xmlNode *node)
 
static std::vector< Swap * > get_all (Devicegraph *devicegraph)
 
static std::vector< const Swap * > get_all (const Devicegraph *devicegraph)
 
- Static Public Member Functions inherited from storage::Filesystem
static std::vector< Filesystem * > get_all (Devicegraph *devicegraph)
 
static std::vector< const Filesystem * > get_all (const Devicegraph *devicegraph)
 
static std::vector< Filesystem * > find_by_label (const Devicegraph *devicegraph, const std::string &label)
 
static std::vector< Filesystem * > find_by_mountpoint (const Devicegraph *devicegraph, const std::string &mountpoint)
 

Protected Member Functions

 Swap (Impl *impl)
 
- Protected Member Functions inherited from storage::Filesystem
 Filesystem (Impl *impl)
 
- Protected Member Functions inherited from storage::Device
 Device (Impl *impl)
 
void create (Devicegraph *devicegraph)
 
void load (Devicegraph *devicegraph)
 

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