![]() |
![]() |
![]() |
Libvirt-sandbox Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#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
);
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.
struct GVirSandboxConfigMountRamClass { GVirSandboxConfigMountClass parent_class; gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING]; };
GVirSandboxConfigMountRam * gvir_sandbox_config_mount_ram_new (const gchar *targetdir
,guint64 usage
);
Create a new custom mount mapped to the directory targetdir
|
the target directory. [transfer none] |
Returns : |
a new sandbox mount object. [transfer full] |
void gvir_sandbox_config_mount_ram_set_usage (GVirSandboxConfigMountRam *config
,guint64 usage
);
Sets the memory usage limit for the RAM filesystem in Kibibytes
|
the sandbox mount config. [transfer none] |
|
the memory usage limit in KiB |
guint64 gvir_sandbox_config_mount_ram_get_usage
(GVirSandboxConfigMountRam *config
);
Retrieves the memory usage limit for the RAM filesystem in Kibibytes
|
the sandbox mount config. [transfer none] |
Returns : |
the usage limit |
"usage"
property"usage" guint64 : Read / Write / Construct Only
The maximum ram usage (KiB).
Default value: 10240