#include <sbuild-chroot-block-device.h>


Public Types | |
| typedef chroot::error | error |
| Exception type. | |
Public Member Functions | |
| virtual | ~chroot_block_device () |
| The destructor. | |
| virtual chroot::ptr | clone () const |
| Copy the chroot. | |
| virtual chroot::ptr | clone_session (std::string const &session_id, std::string const &user, bool root) const |
| Create a session chroot. | |
| virtual chroot::ptr | clone_source () const |
| Create a source chroot. | |
| virtual void | setup_env (chroot const &chroot, environment &env) const |
| Set environment. | |
| virtual session_flags | get_session_flags (chroot const &chroot) const |
| Get the session flags of the chroot. | |
| virtual void | get_details (chroot const &chroot, format_detail &detail) const |
| Get detailed information about the chroot for output. | |
| virtual void | get_keyfile (chroot const &chroot, keyfile &keyfile) const |
| Copy the chroot properties into a keyfile. | |
| virtual void | set_keyfile (chroot &chroot, keyfile const &keyfile, string_list &used_keys) |
| Set the chroot properties from a keyfile. | |
Protected Member Functions | |
| chroot_block_device () | |
| The constructor. | |
| chroot_block_device (const chroot_block_device &rhs) | |
| The copy constructor. | |
| chroot_block_device (const chroot_lvm_snapshot &rhs) | |
| The copy constructor. | |
Friends | |
| class | chroot |
| class | chroot_lvm_snapshot |
The device will be mounted on demand.
| chroot_block_device::chroot_block_device | ( | ) | [protected] |
The constructor.
References sbuild::chroot::add_facet(), and sbuild::chroot_facet_union::create().
Referenced by clone(), clone_session(), and clone_source().
| chroot_block_device::chroot_block_device | ( | const chroot_block_device & | rhs | ) | [protected] |
The copy constructor.
| chroot_block_device::chroot_block_device | ( | const chroot_lvm_snapshot & | rhs | ) | [protected] |
The copy constructor.
References sbuild::chroot::add_facet(), and sbuild::chroot_facet_union::create().
| chroot_block_device::~chroot_block_device | ( | ) | [virtual] |
The destructor.
| sbuild::chroot::ptr chroot_block_device::clone | ( | ) | const [virtual] |
Copy the chroot.
This is a virtual copy constructor.
Implements sbuild::chroot.
References chroot_block_device().
Referenced by clone_source().
| sbuild::chroot::ptr chroot_block_device::clone_session | ( | std::string const & | session_id, | |
| std::string const & | user, | |||
| bool | root | |||
| ) | const [virtual] |
| session_id | the identifier for the new session. | |
| user | the user creating the session. | |
| root | true if the user has root access, otherwise false. |
Implements sbuild::chroot.
References chroot_block_device().
| sbuild::chroot::ptr chroot_block_device::clone_source | ( | ) | const [virtual] |
Create a source chroot.
Implements sbuild::chroot.
References chroot_block_device(), and clone().
| void chroot_block_device::get_details | ( | chroot const & | chroot, | |
| format_detail & | detail | |||
| ) | const [virtual] |
Get detailed information about the chroot for output.
Reimplemented from sbuild::chroot_block_device_base.
| sbuild::chroot::session_flags chroot_block_device::get_session_flags | ( | chroot const & | chroot | ) | const [virtual] |
Get the session flags of the chroot.
These determine how the Session controlling the chroot will operate.
Reimplemented from sbuild::chroot_block_device_base.
References sbuild::chroot::get_session_flags().
| void chroot_block_device::set_keyfile | ( | chroot & | chroot, | |
| keyfile const & | keyfile, | |||
| string_list & | used_keys | |||
| ) | [virtual] |
Set the chroot properties from a keyfile.
The chroot name must have previously been set, so that the correct keyfile group may be determined.
| chroot | the chroot to use. | |
| keyfile | the keyfile to get the properties from. | |
| used_keys | a list of the keys used will be set. |
Reimplemented from sbuild::chroot_block_device_base.
| void chroot_block_device::setup_env | ( | chroot const & | chroot, | |
| environment & | env | |||
| ) | const [virtual] |
Set environment.
Set the environment that the setup scripts will see during execution.
| chroot | the chroot to use. | |
| env | the environment to set. |
Reimplemented from sbuild::chroot_block_device_base.
friend class chroot [friend] |
Reimplemented from sbuild::chroot_block_device_base.
friend class chroot_lvm_snapshot [friend] |
1.5.8