Debian Codegraph @

src/plugins/fs/ext.h

raw
1 #include <glib.h>
2 #include <blockdev/utils.h>
3
4 #ifndef BD_FS_EXT
5 #define BD_FS_EXT
6
7 typedef struct BDFSExtInfo {
8 gchar *label;
9 gchar *uuid;
10 gchar *state;
11 guint64 block_size;
12 guint64 block_count;
13 guint64 free_blocks;
14 } BDFSExtInfo;
15
16 typedef struct BDFSExtInfo BDFSExt4Info;
17 typedef struct BDFSExtInfo BDFSExt3Info;
18 typedef struct BDFSExtInfo BDFSExt2Info;
19
20 BDFSExt2Info* bd_fs_ext2_info_copy (BDFSExt2Info *data);
21 void bd_fs_ext2_info_free (BDFSExt2Info *data);
22
23 BDFSExt3Info* bd_fs_ext3_info_copy (BDFSExt3Info *data);
24 void bd_fs_ext3_info_free (BDFSExt3Info *data);
25
26 BDFSExt4Info* bd_fs_ext4_info_copy (BDFSExt4Info *data);
27 void bd_fs_ext4_info_free (BDFSExt4Info *data);
28
29 gboolean bd_fs_ext2_mkfs (const gchar *device, const BDExtraArg **extra, GError **error);
30 gboolean bd_fs_ext2_check (const gchar *device, const BDExtraArg **extra, GError **error);
31 gboolean bd_fs_ext2_repair (const gchar *device, gboolean unsafe, const BDExtraArg **extra, GError **error);
32 gboolean bd_fs_ext2_set_label (const gchar *device, const gchar *label, GError **error);
33 gboolean bd_fs_ext2_check_label (const gchar *label, GError **error);
34 gboolean bd_fs_ext2_set_uuid (const gchar *device, const gchar *uuid, GError **error);
35 gboolean bd_fs_ext2_check_uuid (const gchar *uuid, GError **error);
36 BDFSExt2Info* bd_fs_ext2_get_info (const gchar *device, GError **error);
37 gboolean bd_fs_ext2_resize (const gchar *device, guint64 new_size, const BDExtraArg **extra, GError **error);
38 guint64 bd_fs_ext2_get_min_size (const gchar *device, GError **error);
39
40 gboolean bd_fs_ext3_mkfs (const gchar *device, const BDExtraArg **extra, GError **error);
41 gboolean bd_fs_ext3_check (const gchar *device, const BDExtraArg **extra, GError **error);
42 gboolean bd_fs_ext3_repair (const gchar *device, gboolean unsafe, const BDExtraArg **extra, GError **error);
43 gboolean bd_fs_ext3_set_uuid (const gchar *device, const gchar *uuid, GError **error);
44 gboolean bd_fs_ext3_check_uuid (const gchar *uuid, GError **error);
45 gboolean bd_fs_ext3_set_label (const gchar *device, const gchar *label, GError **error);
46 gboolean bd_fs_ext3_check_label (const gchar *label, GError **error);
47 BDFSExt3Info* bd_fs_ext3_get_info (const gchar *device, GError **error);
48 gboolean bd_fs_ext3_resize (const gchar *device, guint64 new_size, const BDExtraArg **extra, GError **error);
49 guint64 bd_fs_ext3_get_min_size (const gchar *device, GError **error);
50
51 gboolean bd_fs_ext4_mkfs (const gchar *device, const BDExtraArg **extra, GError **error);
52 gboolean bd_fs_ext4_check (const gchar *device, const BDExtraArg **extra, GError **error);
53 gboolean bd_fs_ext4_repair (const gchar *device, gboolean unsafe, const BDExtraArg **extra, GError **error);
54 gboolean bd_fs_ext4_set_label (const gchar *device, const gchar *label, GError **error);
55 gboolean bd_fs_ext4_check_label (const gchar *label, GError **error);
56 gboolean bd_fs_ext4_set_uuid (const gchar *device, const gchar *uuid, GError **error);
57 gboolean bd_fs_ext4_check_uuid (const gchar *uuid, GError **error);
58 BDFSExt4Info* bd_fs_ext4_get_info (const gchar *device, GError **error);
59 gboolean bd_fs_ext4_resize (const gchar *device, guint64 new_size, const BDExtraArg **extra, GError **error);
60 guint64 bd_fs_ext4_get_min_size (const gchar *device, GError **error);
61
62 #endif /* BD_FS_EXT */