Top |
BDBtrfsDeviceInfo *
bd_btrfs_device_info_copy (BDBtrfsDeviceInfo *info
);
BDBtrfsSubvolumeInfo *
bd_btrfs_subvolume_info_copy (BDBtrfsSubvolumeInfo *info
);
BDBtrfsFilesystemInfo *
bd_btrfs_filesystem_info_copy (BDBtrfsFilesystemInfo *info
);
gboolean bd_btrfs_create_volume (gchar **devices
,gchar *label
,gchar *data_level
,gchar *md_level
,GError **error
);
devices |
list of devices to create btrfs volume from. |
[array zero-terminated=1] |
label |
label for the volume. |
[allow-none] |
data_level |
RAID level for the data or |
[allow-none] |
md_level |
RAID level for the metadata or |
[allow-none] |
error |
place to store error (if any). |
[out] |
gboolean bd_btrfs_add_device (gchar *mountpoint
,gchar *device
,GError **error
);
gboolean bd_btrfs_remove_device (gchar *mountpoint
,gchar *device
,GError **error
);
gboolean bd_btrfs_create_subvolume (gchar *mountpoint
,gchar *name
,GError **error
);
gboolean bd_btrfs_delete_subvolume (gchar *mountpoint
,gchar *name
,GError **error
);
guint64 bd_btrfs_get_default_subvolume_id (gchar *mountpoint
,GError **error
);
gboolean bd_btrfs_set_default_subvolume (gchar *mountpoint
,guint64 subvol_id
,GError **error
);
gboolean bd_btrfs_create_snapshot (gchar *source
,gchar *dest
,gboolean ro
,GError **error
);
BDBtrfsDeviceInfo ** bd_btrfs_list_devices (gchar *device
,GError **error
);
device |
a device that is part of the queried btrfs volume |
|
error |
place to store error (if any). |
[out] |
information about the devices that are part of the btrfs volume
containing device
or NULL
in case of error.
[array zero-terminated=1]
BDBtrfsSubvolumeInfo ** bd_btrfs_list_subvolumes (gchar *mountpoint
,gboolean snapshots_only
,GError **error
);
mountpoint |
a mountpoint of the queried btrfs volume |
|
snapshots_only |
whether to list only snapshot subvolumes or not |
|
error |
place to store error (if any). |
[out] |
information about the subvolumes that are part of the btrfs volume
mounted at mountpoint
or NULL
in case of error
The subvolumes are sorted in a way that no child subvolume appears in the list before its parent (sub)volume.
[array zero-terminated=1]
BDBtrfsFilesystemInfo * bd_btrfs_filesystem_info (gchar *device
,GError **error
);
gboolean bd_btrfs_mkfs (gchar **devices
,gchar *label
,gchar *data_level
,gchar *md_level
,GError **error
);
devices |
list of devices to create btrfs volume from. |
[array zero-terminated=1] |
label |
label for the volume. |
[allow-none] |
data_level |
RAID level for the data or |
[allow-none] |
md_level |
RAID level for the metadata or |
[allow-none] |
error |
place to store error (if any). |
[out] |
gboolean bd_btrfs_resize (gchar *mountpoint
,guint64 size
,GError **error
);
gboolean bd_btrfs_check (gchar *device
,GError **error
);
gboolean bd_btrfs_repair (gchar *device
,GError **error
);