GVirSandboxConfigMountRam

GVirSandboxConfigMountRam — Filesystem attachment configuration details

Functions

Properties

guint64 usage Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GVirSandboxConfigMount
        ╰── GVirSandboxConfigMountRam

Includes

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

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.

Functions

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

Parameters

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

Parameters

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

Parameters

config

the sandbox mount config.

[transfer none]

Returns

the usage limit

Types and Values

struct GVirSandboxConfigMountRam

struct GVirSandboxConfigMountRam;

struct GVirSandboxConfigMountRamClass

struct GVirSandboxConfigMountRamClass {
    GVirSandboxConfigMountClass parent_class;

    gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};

GVirSandboxConfigMountRamPrivate

typedef struct _GVirSandboxConfigMountRamPrivate GVirSandboxConfigMountRamPrivate;

Property Details

The “usage” property

  “usage”                    guint64

The maximum ram usage (KiB).

Flags: Read / Write / Construct Only

Default value: 10240