libstorage-ng
Loading...
Searching...
No Matches
storage::Environment Class Reference

Public Member Functions

 Environment (bool read_only)
 Environment (bool read_only, ProbeMode probe_mode, TargetMode target_mode)
 Environment (const Environment &environment)
Environmentoperator= (const Environment &environment)=delete
bool is_read_only () const
 Return whether the Environment has read-only set.
ProbeMode get_probe_mode () const
 Return the probe mode.
TargetMode get_target_mode () const
 return the target mode.
const std::string & get_rootprefix () const
 Query the rootprefix.
void set_rootprefix (const std::string &rootprefix)
 Set the rootprefix.
const std::string & get_devicegraph_filename () const
void set_devicegraph_filename (const std::string &devicegraph_filename)
const std::string & get_arch_filename () const
void set_arch_filename (const std::string &arch_filename)
const std::string & get_mockup_filename () const
void set_mockup_filename (const std::string &mockup_filename)
Impl & get_impl ()
const Impl & get_impl () const

Friends

std::ostream & operator<< (std::ostream &out, const Environment &environment)

Member Function Documentation

◆ get_probe_mode()

ProbeMode storage::Environment::get_probe_mode ( ) const

Return the probe mode.

See also
ProbeMode

◆ get_rootprefix()

const std::string & storage::Environment::get_rootprefix ( ) const

Query the rootprefix.

The rootprefix is prepended to certain paths when accessing the system, e.g. when opening files like /etc/fstab and when mounting filesystems (that have rootprefixed set).

The rootprefix is at least used for activate(), probe() and commit().

◆ get_target_mode()

TargetMode storage::Environment::get_target_mode ( ) const

return the target mode.

See also
TargetMode

◆ set_rootprefix()

void storage::Environment::set_rootprefix ( const std::string & rootprefix)

Set the rootprefix.

If a rootprefix is not needed it has to be empty.

See also
get_rootprefix()

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/libstorage-ng-4.5.253-build/libstorage-ng-4.5.253/storage/Environment.h