sbuild  1.7.1
Public Types | Public Member Functions | Protected Member Functions | List of all members
sbuild::chroot::facet::storage Class Referenceabstract

Chroot storage. More...

#include <storage.h>

+ Inheritance diagram for sbuild::chroot::facet::storage:

Public Types

typedef std::shared_ptr< storageptr
 A shared_ptr to a chroot storage object.
 
typedef std::shared_ptr< const
storage
const_ptr
 A shared_ptr to a const chroot storage object.
 

Public Member Functions

virtual ~storage ()
 The destructor.
 
virtual std::string get_path () const =0
 Get the path to the chroot. More...
 
virtual void setup_lock (chroot::setup_type type, bool lock, int status)
 

Protected Member Functions

 storage ()
 The constructor.
 

Detailed Description

Chroot storage.

This base class is used by all facets implementing storage methods, for example directories, LVM snapshots, files, etc.

Member Function Documentation

virtual std::string sbuild::chroot::facet::storage::get_path ( ) const
pure virtual

Get the path to the chroot.

This is the absolute path to the root of the chroot, and is typically the same as the mount location and location concatenated together, but is overridden by the chroot type if required.

Returns
the path.

Implemented in sbuild::chroot::facet::file, sbuild::chroot::facet::btrfs_snapshot, sbuild::chroot::facet::custom, sbuild::chroot::facet::loopback, sbuild::chroot::facet::directory, sbuild::chroot::facet::block_device_base, and sbuild::chroot::facet::plain.


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