Debian Codegraph @

src/plugins/fs/nilfs.h

raw
1 #include <glib.h>
2 #include <blockdev/utils.h>
3
4 #ifndef BD_FS_NILFS
5 #define BD_FS_NILFS
6
7 typedef struct BDFSNILFS2Info {
8 gchar *label;
9 gchar *uuid;
10 guint64 size;
11 guint64 block_size;
12 guint64 free_blocks;
13 } BDFSNILFS2Info;
14
15 BDFSNILFS2Info* bd_fs_nilfs2_info_copy (BDFSNILFS2Info *data);
16 void bd_fs_nilfs2_info_free (BDFSNILFS2Info *data);
17
18 gboolean bd_fs_nilfs2_mkfs (const gchar *device, const BDExtraArg **extra, GError **error);
19 gboolean bd_fs_nilfs2_set_label (const gchar *device, const gchar *label, GError **error);
20 gboolean bd_fs_nilfs2_check_label (const gchar *label, GError **error);
21 gboolean bd_fs_nilfs2_set_uuid (const gchar *device, const gchar *uuid, GError **error);
22 gboolean bd_fs_nilfs2_check_uuid (const gchar *uuid, GError **error);
23 BDFSNILFS2Info* bd_fs_nilfs2_get_info (const gchar *device, GError **error);
24 gboolean bd_fs_nilfs2_resize (const gchar *device, guint64 new_size, GError **error);
25
26 #endif /* BD_FS_NILFS */