Top | ![]() |
![]() |
![]() |
![]() |
typedef | BDFSExt2Info |
typedef | BDFSExt3Info |
typedef | BDFSExt4Info |
enum | BDFsError |
BDFSXfsInfo | |
BDFSVfatInfo |
gboolean bd_fs_init ();
Initializes the plugin. **This function is called automatically by the library's initialization functions.**
void
bd_fs_close ();
Cleans up after the plugin. **This function is called automatically by the library's functions that unload it.**
gboolean bd_fs_clean (const gchar *device
,GError **error
);
Clean all signatures from device
.
Difference between this and bd_fs_wipe()
is that this function doesn't
return error if device
is already empty. This will also always remove
all signatures from device
, not only the first one.
gchar * bd_fs_get_fstype (const gchar *device
,GError **error
);
Get first signature on device
as a string.
type of filesystem found on device
, NULL
in case
no signature has been detected or in case of error
(error
is set in this case).
[transfer full]
gboolean bd_fs_mount (const gchar *device
,const gchar *mountpoint
,const gchar *fstype
,const gchar *options
,const BDExtraArg **extra
,GError **error
);
device |
device to mount, if not specified |
[allow-none] |
mountpoint |
mountpoint for |
[allow-none] |
fstype |
filesystem type. |
[allow-none] |
options |
comma delimited options for mount. |
[allow-none] |
extra |
extra options for the unmount currently only 'run_as_uid' and 'run_as_gid' are supported value must be a valid non zero uid (gid). |
[allow-none][array zero-terminated=1] |
error |
place to store error (if any). |
[out] |
gboolean bd_fs_unmount (const gchar *spec
,gboolean lazy
,gboolean force
,const BDExtraArg **extra
,GError **error
);
spec |
mount point or device to unmount |
|
lazy |
enable/disable lazy unmount |
|
force |
enable/disable force unmount |
|
extra |
extra options for the unmount currently only 'run_as_uid' and 'run_as_gid' are supported value must be a valid non zero uid (gid). |
[allow-none][array zero-terminated=1] |
error |
place to store error (if any). |
[out] |
gchar * bd_fs_get_mountpoint (const gchar *device
,GError **error
);
Get mountpoint for device
. If device
is mounted multiple times only
one mountpoint will be returned.
mountpoint for device
, NULL
in case device is
not mounted or in case of an error (error
is set
in this case).
[transfer full]
gboolean bd_fs_resize (const gchar *device
,guint64 new_size
,GError **error
);
gboolean bd_fs_ext2_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
BDFSExt2Info * bd_fs_ext2_get_info (const gchar *device
,GError **error
);
BDFSExt2Info *
bd_fs_ext2_info_copy (BDFSExt2Info *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_ext2_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
gboolean bd_fs_ext2_repair (const gchar *device
,gboolean unsafe
,const BDExtraArg **extra
,GError **error
);
gboolean bd_fs_ext2_resize (const gchar *device
,guint64 new_size
,const BDExtraArg **extra
,GError **error
);
device |
the device the file system of which to resize |
|
new_size |
new requested size for the file system (if 0, the file system is adapted to the underlying block device) |
|
extra |
extra options for the resize (right now passed to the 'resize2fs' utility). |
[allow-none][array zero-terminated=1] |
error |
place to store error (if any). |
[out] |
gboolean bd_fs_ext2_set_label (const gchar *device
,const gchar *label
,GError **error
);
gboolean bd_fs_ext2_wipe (const gchar *device
,GError **error
);
gboolean bd_fs_ext3_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
BDFSExt3Info * bd_fs_ext3_get_info (const gchar *device
,GError **error
);
BDFSExt3Info *
bd_fs_ext3_info_copy (BDFSExt3Info *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_ext3_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
gboolean bd_fs_ext3_repair (const gchar *device
,gboolean unsafe
,const BDExtraArg **extra
,GError **error
);
gboolean bd_fs_ext3_resize (const gchar *device
,guint64 new_size
,const BDExtraArg **extra
,GError **error
);
device |
the device the file system of which to resize |
|
new_size |
new requested size for the file system (if 0, the file system is adapted to the underlying block device) |
|
extra |
extra options for the resize (right now passed to the 'resize2fs' utility). |
[allow-none][array zero-terminated=1] |
error |
place to store error (if any). |
[out] |
gboolean bd_fs_ext3_set_label (const gchar *device
,const gchar *label
,GError **error
);
gboolean bd_fs_ext3_wipe (const gchar *device
,GError **error
);
gboolean bd_fs_ext4_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
BDFSExt4Info * bd_fs_ext4_get_info (const gchar *device
,GError **error
);
BDFSExt4Info *
bd_fs_ext4_info_copy (BDFSExt4Info *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_ext4_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
gboolean bd_fs_ext4_repair (const gchar *device
,gboolean unsafe
,const BDExtraArg **extra
,GError **error
);
gboolean bd_fs_ext4_resize (const gchar *device
,guint64 new_size
,const BDExtraArg **extra
,GError **error
);
device |
the device the file system of which to resize |
|
new_size |
new requested size for the file system (if 0, the file system is adapted to the underlying block device) |
|
extra |
extra options for the resize (right now passed to the 'resize2fs' utility). |
[allow-none][array zero-terminated=1] |
error |
place to store error (if any). |
[out] |
gboolean bd_fs_ext4_set_label (const gchar *device
,const gchar *label
,GError **error
);
gboolean bd_fs_ext4_wipe (const gchar *device
,GError **error
);
gboolean bd_fs_xfs_check (const gchar *device
,GError **error
);
BDFSXfsInfo * bd_fs_xfs_get_info (const gchar *device
,GError **error
);
BDFSXfsInfo *
bd_fs_xfs_info_copy (BDFSXfsInfo *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_xfs_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
gboolean bd_fs_xfs_repair (const gchar *device
,const BDExtraArg **extra
,GError **error
);
gboolean bd_fs_xfs_resize (const gchar *mpoint
,guint64 new_size
,const BDExtraArg **extra
,GError **error
);
mpoint |
the mount point of the file system to resize |
|
new_size |
new requested size for the file system *in file system blocks* (see |
|
extra |
extra options for the resize (right now passed to the 'xfs_growfs' utility). |
[allow-none][array zero-terminated=1] |
error |
place to store error (if any). |
[out] |
gboolean bd_fs_xfs_set_label (const gchar *device
,const gchar *label
,GError **error
);
gboolean bd_fs_xfs_wipe (const gchar *device
,GError **error
);
gboolean bd_fs_vfat_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
BDFSVfatInfo * bd_fs_vfat_get_info (const gchar *device
,GError **error
);
BDFSVfatInfo *
bd_fs_vfat_info_copy (BDFSVfatInfo *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_vfat_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
gboolean bd_fs_vfat_repair (const gchar *device
,const BDExtraArg **extra
,GError **error
);
gboolean bd_fs_vfat_resize (const gchar *device
,guint64 new_size
,GError **error
);
gboolean bd_fs_vfat_set_label (const gchar *device
,const gchar *label
,GError **error
);