GVirSandboxConfigMountRam

GVirSandboxConfigMountRam — Filesystem attachment configuration details

Synopsis

#include <libvirt-sandbox/libvirt-sandbox.h>

struct              GVirSandboxConfigMountRam;
struct              GVirSandboxConfigMountRamClass;
GVirSandboxConfigMountRam * gvir_sandbox_config_mount_ram_new
                                                        (const gchar *targetdir,
                                                         guint64 usage);
void                gvir_sandbox_config_mount_ram_set_usage
                                                        (GVirSandboxConfigMountRam *config,
                                                         guint64 usage);
guint64             gvir_sandbox_config_mount_ram_get_usage
                                                        (GVirSandboxConfigMountRam *config);

Object Hierarchy

  GObject
   +----GVirSandboxConfigMount
         +----GVirSandboxConfigMountRam

Properties

  "usage"                    guint64               : Read / Write / Construct Only

Description

Provides an object to store information about a filesystem attachment in the sandbox

The GVirSandboxConfigMount object stores information required to attach a host filesystem to the application sandbox. The sandbox starts off with a complete view of the host filesystem. This object allows a specific area of the host filesystem to be hidden and replaced with alternate content.

Details

struct GVirSandboxConfigMountRam

struct GVirSandboxConfigMountRam;

struct GVirSandboxConfigMountRamClass

struct GVirSandboxConfigMountRamClass {
    GVirSandboxConfigMountClass parent_class;

    gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};

gvir_sandbox_config_mount_ram_new ()

GVirSandboxConfigMountRam * gvir_sandbox_config_mount_ram_new
                                                        (const gchar *targetdir,
                                                         guint64 usage);

Create a new custom mount mapped to the directory targetdir

targetdir :

the target directory. [transfer none]

Returns :

a new sandbox mount object. [transfer full]

gvir_sandbox_config_mount_ram_set_usage ()

void                gvir_sandbox_config_mount_ram_set_usage
                                                        (GVirSandboxConfigMountRam *config,
                                                         guint64 usage);

Sets the memory usage limit for the RAM filesystem in Kibibytes

config :

the sandbox mount config. [transfer none]

usage :

the memory usage limit in KiB

gvir_sandbox_config_mount_ram_get_usage ()

guint64             gvir_sandbox_config_mount_ram_get_usage
                                                        (GVirSandboxConfigMountRam *config);

Retrieves the memory usage limit for the RAM filesystem in Kibibytes

config :

the sandbox mount config. [transfer none]

Returns :

the usage limit

Property Details

The "usage" property

  "usage"                    guint64               : Read / Write / Construct Only

The maximum ram usage (KiB).

Default value: 10240