SbuildChrootLvmSnapshot

SbuildChrootLvmSnapshot — chroot lvm snapshot object

Synopsis




            SbuildChrootLvmSnapshot;
            SbuildChrootLvmSnapshotClass;
const char* sbuild_chroot_lvm_snapshot_get_snapshot_device
                                            (const SbuildChrootLvmSnapshot *restrict chroot);
void        sbuild_chroot_lvm_snapshot_set_snapshot_device
                                            (SbuildChrootLvmSnapshot *chroot,
                                             const char *snapshot_device);
const char* sbuild_chroot_lvm_snapshot_get_snapshot_options
                                            (const SbuildChrootLvmSnapshot *restrict chroot);
void        sbuild_chroot_lvm_snapshot_set_snapshot_options
                                            (SbuildChrootLvmSnapshot *chroot,
                                             const char *snapshot_options);

Object Hierarchy


  GObject
   +----SbuildChroot
         +----SbuildChrootBlockDevice
               +----SbuildChrootLvmSnapshot

Properties


  "lvm-snapshot-device"  gchararray            : Read / Write
  "lvm-snapshot-options" gchararray            : Read / Write / Construct

Description

This object represents a chroot stored on an LVM logical volume (LV). A snapshot LV will be created and mounted on demand.

Details

SbuildChrootLvmSnapshot

typedef struct _SbuildChrootLvmSnapshot SbuildChrootLvmSnapshot;

SbuildChrootLvmSnapshot object.


SbuildChrootLvmSnapshotClass

typedef struct {
  SbuildChrootBlockDeviceClass parent;
} SbuildChrootLvmSnapshotClass;

SbuildChrootLvmSnapshot class.

SbuildChrootBlockDeviceClass parent; the parent class

sbuild_chroot_lvm_snapshot_get_snapshot_device ()

const char* sbuild_chroot_lvm_snapshot_get_snapshot_device
                                            (const SbuildChrootLvmSnapshot *restrict chroot);

Get the logical volume snapshot device name, used by lvcreate.

chroot : an SbuildChrootLvmSnapshot
Returns : a string. This string points to internally allocated storage in the chroot and must not be freed, modified or stored.

sbuild_chroot_lvm_snapshot_set_snapshot_device ()

void        sbuild_chroot_lvm_snapshot_set_snapshot_device
                                            (SbuildChrootLvmSnapshot *chroot,
                                             const char *snapshot_device);

Set the logical volume snapshot device name, used by lvcreate.

chroot : an SbuildChrootLvmSnapshot.
snapshot_device : the snapshot device to set.

sbuild_chroot_lvm_snapshot_get_snapshot_options ()

const char* sbuild_chroot_lvm_snapshot_get_snapshot_options
                                            (const SbuildChrootLvmSnapshot *restrict chroot);

Get the logical volume snapshot options, used by lvcreate.

chroot : an SbuildChrootLvmSnapshot
Returns : a string. This string points to internally allocated storage in the chroot and must not be freed, modified or stored.

sbuild_chroot_lvm_snapshot_set_snapshot_options ()

void        sbuild_chroot_lvm_snapshot_set_snapshot_options
                                            (SbuildChrootLvmSnapshot *chroot,
                                             const char *snapshot_options);

Set the logical volume snapshot options, used by lvcreate.

chroot : an SbuildChrootLvmSnapshot.
snapshot_options : the snapshot options to set.

Properties

The "lvm-snapshot-device" property

  "lvm-snapshot-device"  gchararray            : Read / Write

The LVM snapshot device name for lvcreate.

Default value: ""


The "lvm-snapshot-options" property

  "lvm-snapshot-options" gchararray            : Read / Write / Construct

The LVM snapshot options for lvcreate.

Default value: ""