Top |
A plugin for operations with loop devices. All sizes passed in/out to/from the functions are in bytes.
gchar * bd_loop_get_backing_file (gchar *dev_name
,GError **error
);
gchar * bd_loop_get_loop_name (gchar *file
,GError **error
);
file |
path of the backing file to get loop name for |
|
error |
place to store error (if any). |
[out] |
name of the loop device associated with the given
file
or NULL
if failed to determine.
[transfer full]
gboolean bd_loop_setup (gchar *file
,gchar **loop_name
,GError **error
);
file |
file to setup as a loop device |
|
loop_name |
if not |
[out] |
error |
place to store error (if any). |
[out] |