Top | ![]() |
![]() |
![]() |
![]() |
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_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
);
typedef struct { gchar *label; gchar *uuid; gchar *state; guint64 block_size; guint64 block_count; guint64 free_blocks; } BDFSExt4Info;
typedef struct { gchar *label; gchar *uuid; guint64 block_size; guint64 block_count; } BDFSXfsInfo;