Debian Codegraph @

src/plugins/fs/btrfs.h

raw
1 #include <glib.h>
2 #include <blockdev/utils.h>
3
4 #ifndef BD_FS_BTRFS
5 #define BD_FS_BTRFS
6
7 typedef struct BDFSBtrfsInfo {
8 gchar *label;
9 gchar *uuid;
10 guint64 size;
11 guint64 free_space;
12 } BDFSBtrfsInfo;
13
14 BDFSBtrfsInfo* bd_fs_btrfs_info_copy (BDFSBtrfsInfo *data);
15 void bd_fs_btrfs_info_free (BDFSBtrfsInfo *data);
16
17 gboolean bd_fs_btrfs_mkfs (const gchar *device, const BDExtraArg **extra, GError **error);
18 gboolean bd_fs_btrfs_check (const gchar *device, const BDExtraArg **extra, GError **error);
19 gboolean bd_fs_btrfs_repair (const gchar *device, const BDExtraArg **extra, GError **error);
20 gboolean bd_fs_btrfs_set_label (const gchar *mpoint, const gchar *label, GError **error);
21 gboolean bd_fs_btrfs_check_label (const gchar *label, GError **error);
22 gboolean bd_fs_btrfs_set_uuid (const gchar *device, const gchar *uuid, GError **error);
23 gboolean bd_fs_btrfs_check_uuid ( const gchar *uuid, GError **error);
24 BDFSBtrfsInfo* bd_fs_btrfs_get_info (const gchar *mpoint, GError **error);
25 gboolean bd_fs_btrfs_resize (const gchar *mpoint, guint64 new_size, const BDExtraArg **extra, GError **error);
26
27 #endif /* BD_FS_BTRFS */