Debian Codegraph @

src/plugins/fs/vfat.h

raw
1 #include <glib.h>
2 #include <blockdev/utils.h>
3
4 #ifndef BD_FS_VFAT
5 #define BD_FS_VFAT
6
7 typedef struct BDFSVfatInfo {
8 gchar *label;
9 gchar *uuid;
10 guint64 cluster_size;
11 guint64 cluster_count;
12 guint64 free_cluster_count;
13 } BDFSVfatInfo;
14
15 BDFSVfatInfo* bd_fs_vfat_info_copy (BDFSVfatInfo *data);
16 void bd_fs_vfat_info_free (BDFSVfatInfo *data);
17
18 gboolean bd_fs_vfat_mkfs (const gchar *device, const BDExtraArg **extra, GError **error);
19 gboolean bd_fs_vfat_check (const gchar *device, const BDExtraArg **extra, GError **error);
20 gboolean bd_fs_vfat_repair (const gchar *device, const BDExtraArg **extra, GError **error);
21 gboolean bd_fs_vfat_set_label (const gchar *device, const gchar *label, GError **error);
22 gboolean bd_fs_vfat_check_label (const gchar *label, GError **error);
23 gboolean bd_fs_vfat_set_uuid (const gchar *device, const gchar *uuid, GError **error);
24 gboolean bd_fs_vfat_check_uuid (const gchar *uuid, GError **error);
25 BDFSVfatInfo* bd_fs_vfat_get_info (const gchar *device, GError **error);
26 gboolean bd_fs_vfat_resize (const gchar *device, guint64 new_size, GError **error);
27
28 #endif /* BD_FS_VFAT */