libstorage-ng
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
storage::FilesystemUser Class Reference

Holder from BlkDevice to a BlkFilesystem. More...

#include <FilesystemUser.h>

Inheritance diagram for storage::FilesystemUser:
[legend]
Collaboration diagram for storage::FilesystemUser:
[legend]

Public Member Functions

virtual FilesystemUserclone () const override
 
bool is_journal () const
 Indicates whether the block device is used as an external journal device.
 
void set_journal (bool journal)
 Set the external journal flag.
 
Impl & get_impl ()
 
const Impl & get_impl () const
 
- Public Member Functions inherited from storage::User
virtual Userclone () const override
 
Impl & get_impl ()
 
const Impl & get_impl () const
 
- Public Member Functions inherited from storage::Holder
Deviceget_source ()
 Get the source device of the holder.
 
const Deviceget_source () const
 Get the source device of the holder.
 
void set_source (const Device *source)
 Set the source device of the holder.
 
void set_target (const Device *target)
 Set the target device of the holder.
 
sid_t get_source_sid () const
 Return the storage id (sid) of the source of the holder.
 
Deviceget_target ()
 Get the target device of the holder.
 
const Deviceget_target () const
 Get the target device of the holder.
 
sid_t get_target_sid () const
 Return the storage id (sid) of the target of the holder.
 
bool operator== (const Holder &rhs) const
 
bool operator!= (const Holder &rhs) const
 
Holdercopy_to_devicegraph (Devicegraph *devicegraph) const
 Copies the holder to the devicegraph.
 
bool exists_in_devicegraph (const Devicegraph *devicegraph) const
 Checks if the holder exists in the devicegraph.
 
bool exists_in_probed () const
 Checks if the holder exists in the probed devicegraph.
 
bool exists_in_staging () const
 Checks if the holder exists in the staging devicegraph.
 
bool exists_in_system () const
 Checks if the holder exists in the system devicegraph.
 
const std::map< std::string, std::string > & get_userdata () const
 Return the userdata of the holder.
 
void set_userdata (const std::map< std::string, std::string > &userdata)
 Set the userdata of the holder.
 
Devicegraphget_devicegraph ()
 Return the devicegraph the holder belongs to.
 
const Devicegraphget_devicegraph () const
 Return the devicegraph the holder belongs to.
 
Impl & get_impl ()
 
const Impl & get_impl () const
 
virtual Holderclone () const =0
 
void save (xmlNode *node) const ST_DEPRECATED
 

Static Public Member Functions

static FilesystemUsercreate (Devicegraph *devicegraph, const Device *source, const Device *target)
 Create a holder of type FilesystemUser.
 
static FilesystemUserload (Devicegraph *devicegraph, const xmlNode *node)
 
- Static Public Member Functions inherited from storage::User
static Usercreate (Devicegraph *devicegraph, const Device *source, const Device *target)
 Create a holder of type User.
 
static Userload (Devicegraph *devicegraph, const xmlNode *node)
 

Protected Member Functions

 FilesystemUser (Impl *impl)
 
- Protected Member Functions inherited from storage::User
 User (Impl *impl)
 
- Protected Member Functions inherited from storage::Holder
 Holder (Impl *impl)
 
void create (Devicegraph *devicegraph, const Device *source, const Device *target)
 Create a holder between source and target in the devicegraph.
 
void load (Devicegraph *devicegraph, const xmlNode *node)
 

Detailed Description

Holder from BlkDevice to a BlkFilesystem.

See also
User, Holder

Member Function Documentation

◆ clone()

virtual FilesystemUser * storage::FilesystemUser::clone ( ) const
overridevirtual

Reimplemented from storage::User.

◆ create()

static FilesystemUser * storage::FilesystemUser::create ( Devicegraph devicegraph,
const Device source,
const Device target 
)
static

Create a holder of type FilesystemUser.

Usually this function is not called directly. Functions like BlkDevice::create_blk_filesystem() or Btrfs::add_device() call it.

See also
Holder::create(Devicegraph*, const Device*, const Device*)
Exceptions
HolderAlreadyExists

◆ set_journal()

void storage::FilesystemUser::set_journal ( bool  journal)

Set the external journal flag.

The library cannot create filesystem with external journals.

See also
is_journal()

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