libstorage-ng
 All Classes Namespaces Functions Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
storage::Filesystem Class Referenceabstract
Inheritance diagram for storage::Filesystem:
Inheritance graph
[legend]
Collaboration diagram for storage::Filesystem:
Collaboration graph
[legend]

Public Member Functions

FsType get_type () const
 
virtual bool supports_label () const =0
 
virtual unsigned int max_labelsize () const =0
 
const std::string & get_label () const
 
void set_label (const std::string &label)
 
virtual bool supports_uuid () const =0
 
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
 
virtual Deviceclone () const =0
 
void save (xmlNode *node) const
 

Static Public Member Functions

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

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

Member Function Documentation

void storage::Filesystem::set_content_info ( const ContentInfo &  content_info)

Set the ResizeInfo.

Only use for testsuites.

void storage::Filesystem::set_resize_info ( const ResizeInfo &  resize_info)

Set the ResizeInfo.

Only use for testsuites.


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