SbuildChrootBlockDevice

SbuildChrootBlockDevice — chroot block device object

Synopsis




            SbuildChrootBlockDevice;
            SbuildChrootBlockDeviceClass;
const char* sbuild_chroot_block_device_get_device
                                            (const SbuildChrootBlockDevice *restrict chroot);
void        sbuild_chroot_block_device_set_device
                                            (SbuildChrootBlockDevice *chroot,
                                             const char *device);

Object Hierarchy


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

Properties


  "device"               gchararray            : Read / Write / Construct
  "mount-options"        gchararray            : Read / Write / Construct

Description

This object represents a chroot stored on an unmounted block device. The device will be mounted on demand.

Details

SbuildChrootBlockDevice

typedef struct _SbuildChrootBlockDevice SbuildChrootBlockDevice;

SbuildChrootBlockDevice object.


SbuildChrootBlockDeviceClass

typedef struct {
  SbuildChrootClass parent;
} SbuildChrootBlockDeviceClass;

SbuildChrootBlockDevice class.

SbuildChrootClass parent; the parent class

sbuild_chroot_block_device_get_device ()

const char* sbuild_chroot_block_device_get_device
                                            (const SbuildChrootBlockDevice *restrict chroot);

Get the block device of the chroot.

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

sbuild_chroot_block_device_set_device ()

void        sbuild_chroot_block_device_set_device
                                            (SbuildChrootBlockDevice *chroot,
                                             const char *device);

Set the block device of a chroot. This is the "source" device. It may be the case that the real device is different (for example, an LVM snapshot PV), but by default will be the device to mount.

chroot : an SbuildChrootBlockDevice.
device : the device to set.

Properties

The "device" property

  "device"               gchararray            : Read / Write / Construct

The block device name of the chroot.

Default value: ""


The "mount-options" property

  "mount-options"        gchararray            : Read / Write / Construct

The filesystem mount options for the chroot block device.

Default value: ""