sbuild
1.7.1
|
Chroot storage. More...
#include <storage.h>
Public Types | |
typedef std::shared_ptr< storage > | ptr |
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. | |
Chroot storage.
This base class is used by all facets implementing storage methods, for example directories, LVM snapshots, files, etc.
|
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.
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.