Loop
Loop — plugin for operations with loop devices
|
|
Includes
#include <loop.h>
Description
A plugin for operations with loop devices. All sizes passed
in/out to/from the functions are in bytes.
Functions
bd_loop_error_quark ()
GQuark
bd_loop_error_quark (void
);
[skip]
bd_loop_get_backing_file ()
gchar *
bd_loop_get_backing_file (gchar *dev_name
,
GError **error
);
Returns
path of the device's backing file or NULL
if none
is found.
[transfer full]
bd_loop_get_loop_name ()
gchar *
bd_loop_get_loop_name (gchar *file
,
GError **error
);
Returns
name of the loop device associated with the given file
.
[transfer full]
bd_loop_setup ()
gboolean
bd_loop_setup (gchar *file
,
gchar **loop_name
,
GError **error
);
Returns
whether the file
was successfully setup as a loop device or not
bd_loop_teardown ()
gboolean
bd_loop_teardown (gchar *loop
,
GError **error
);
Returns
whether the loop
device was successfully torn down or not
Types and Values
BD_LOOP_ERROR
#define BD_LOOP_ERROR