Logo Search packages:      
Sourcecode: schroot version File versions  Download package

sbuild::chroot_block_device Class Reference

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

Inheritance diagram for sbuild::chroot_block_device:

sbuild::chroot sbuild::chroot_lvm_snapshot

List of all members.

Detailed Description

A chroot stored on an unmounted block device. The device will be mounted on demand.

Definition at line 32 of file sbuild-chroot-block-device.h.

Public Types

typedef runtime_error_custom
< chroot
 Exception type.
typedef std::tr1::shared_ptr
< chroot
 A shared_ptr to a chroot object.
enum  session_flags { SESSION_CREATE = 1 << 0 }
 Chroot session properties. More...
enum  setup_type {
 Type of setup to perform. More...

Public Member Functions

virtual chroot::ptr clone () const
bool get_active () const
string_list const & get_aliases () const
virtual std::string const & get_chroot_type () const
string_list const & get_command_prefix () const
std::string const & get_description () const
std::string const & get_device () const
string_list const & get_groups () const
virtual std::string const & get_location () const
virtual std::string const & get_mount_device () const
virtual std::string const & get_mount_location () const
std::string const & get_mount_options () const
std::string const & get_name () const
virtual std::string get_path () const
unsigned int get_priority () const
string_list const & get_root_groups () const
bool get_run_exec_scripts () const
bool get_run_setup_scripts () const
virtual session_flags get_session_flags () const
void set_active (bool active)
void set_aliases (string_list const &aliases)
void set_command_prefix (string_list const &command_prefix)
void set_description (std::string const &description)
void set_device (std::string const &device)
void set_groups (string_list const &groups)
virtual void set_location (std::string const &location)
void set_mount_device (std::string const &device)
void set_mount_location (std::string const &location)
void set_mount_options (std::string const &mount_options)
void set_name (std::string const &name)
void set_priority (unsigned int priority)
void set_root_groups (string_list const &groups)
void set_run_exec_scripts (bool run_exec_scripts)
void set_run_setup_scripts (bool run_setup_scripts)
virtual void setup_env (environment &env)
virtual void setup_lock (setup_type type, bool lock)
virtual ~chroot_block_device ()
 The destructor.

Static Public Member Functions

static ptr create (std::string const &type)

Protected Member Functions

 chroot_block_device ()
 The constructor.
template<typename T>
format_detail< T > format_details (std::string const &name, T const &value) const
virtual void get_keyfile (keyfile &keyfile) const
virtual void print_details (std::ostream &stream) const
virtual void set_keyfile (keyfile const &keyfile)
virtual void setup_session_info (bool start)

Private Attributes

std::string device
 The block device to use.
std::string mount_options
 The options to mount the device with.


class chroot
keyfileoperator<< (keyfile &keyfile, ptr const &rhs)
std::ostream & operator<< (std::ostream &stream, ptr const &rhs)
keyfile const & operator>> (keyfile const &keyfile, ptr &rhs)

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

Generated by  Doxygen 1.6.0   Back to index