Top |
typedef | BDFSExt2Info |
typedef | BDFSExt3Info |
typedef | BDFSExt4Info |
enum | BDFSError |
#define | BD_FS_ERROR |
enum | BDFSConfigureFlags |
enum | BDFSFeatureFlags |
BDFSFeatures | |
enum | BDFSFsckFlags |
BDFSMkfsOptions | |
enum | BDFSMkfsOptionsFlags |
BDFSXfsInfo | |
BDFSVfatInfo | |
enum | BDFSTech |
enum | BDFSTechMode |
enum | BDFSResizeFlags |
BDFSNtfsInfo | |
BDFSF2FSInfo | |
enum | BDFSF2FSFeature |
BDFSNILFS2Info | |
BDFSExfatInfo | |
BDFSBtrfsInfo | |
BDFSUdfInfo |
gboolean
bd_fs_init (void
);
Initializes the plugin. **This function is called automatically by the library's initialization functions.**
void
bd_fs_close (void
);
Cleans up after the plugin. **This function is called automatically by the library's functions that unload it.**
gboolean bd_fs_wipe (const gchar *device
,gboolean all
,gboolean force
,GError **error
);
device |
the device to wipe signatures from |
|
all |
whether to wipe all ( |
|
force |
whether to wipe signatures on a mounted |
|
error |
place to store error (if any). |
[out][optional] |
whether signatures were successfully wiped on device
or not
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_WIPE
gboolean bd_fs_clean (const gchar *device
,gboolean force
,GError **error
);
Clean all signatures from device
.
Difference between this and bd_fs_wipe()
is that this function doesn't
return error if device
is already empty. This will also always remove
all signatures from device
, not only the first one.
device |
the device to clean |
|
force |
whether to wipe signatures on a mounted |
|
error |
place to store error (if any). |
[out][optional] |
whether device
was successfully cleaned or not
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_WIPE
gchar * bd_fs_get_fstype (const gchar *device
,GError **error
);
Get first signature on device
as a string.
type of filesystem found on device
, NULL
in case
no signature has been detected or in case of error
(error
is set in this case)
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
.
[transfer full]
gboolean bd_fs_freeze (const gchar *mountpoint
,GError **error
);
Freezes filesystem mounted on mountpoint
. The filesystem must
support freezing.
gboolean bd_fs_unfreeze (const gchar *mountpoint
,GError **error
);
Un-freezes filesystem mounted on mountpoint
. The filesystem must
support freezing.
gboolean bd_fs_mount (const gchar *device
,const gchar *mountpoint
,const gchar *fstype
,const gchar *options
,const BDExtraArg **extra
,GError **error
);
device |
device to mount, if not specified |
[nullable] |
mountpoint |
mountpoint for |
[nullable] |
fstype |
filesystem type. |
[nullable] |
options |
comma delimited options for mount. |
[nullable] |
extra |
extra options for the mount; currently only 'run_as_uid' and 'run_as_gid' are supported; value must be a valid non zero uid (gid), if you specify one of these, the function will run in a child process with real user. |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether device
(or mountpoint
) was successfully mounted or not
Tech category: BD_FS_TECH_MOUNT
(no mode, ignored)
gboolean bd_fs_unmount (const gchar *spec
,gboolean lazy
,gboolean force
,const BDExtraArg **extra
,GError **error
);
spec |
mount point or device to unmount |
|
lazy |
enable/disable lazy unmount |
|
force |
enable/disable force unmount |
|
extra |
extra options for the unmount; currently only 'run_as_uid' and 'run_as_gid' are supported; value must be a valid non zero uid (gid), if you specify one of these, the function will run in a child process with real user. |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether spec
was successfully unmounted or not
Tech category: BD_FS_TECH_MOUNT
(no mode, ignored)
gchar * bd_fs_get_mountpoint (const gchar *device
,GError **error
);
Get mountpoint for device
. If device
is mounted multiple times only
one mountpoint will be returned.
device |
device to find mountpoint for |
|
error |
place to store error (if any). |
[out][optional] |
mountpoint for device
, NULL
in case device is
not mounted or in case of an error (error
is set
in this case)
Tech category: BD_FS_TECH_MOUNT
(no mode, ignored).
[transfer full]
gboolean bd_fs_resize (const gchar *device
,guint64 new_size
,const gchar *fstype
,GError **error
);
Resize filesystem on device
. This calls other fs resize functions from this
plugin based on provides or detected filesystem (e.g. bd_fs_xfs_resize for XFS).
This function will return an error for unknown/unsupported filesystems.
Note: This function will mount device
for filesystems that can be resized only
when mounted (like XFS or Btrfs).
device |
the device the file system of which to resize |
|
new_size |
new requested size for the file system (if 0, the file system is adapted to the underlying block device) |
|
fstype |
the filesystem type on |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the file system on device
was successfully resized or not
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_RESIZE
gboolean bd_fs_repair (const gchar *device
,const gchar *fstype
,GError **error
);
Repair filesystem on device
. This calls other fs repair functions from this
plugin based on detected filesystem (e.g. bd_fs_xfs_repair for XFS). This
function will return an error for unknown/unsupported filesystems.
Most filesystem tools typically require the filesystem not to be mounted.
device |
the device the file system of which to repair |
|
fstype |
the filesystem type on |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the file system on device
was successfully repaired or not
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_REPAIR
gboolean bd_fs_check (const gchar *device
,const gchar *fstype
,GError **error
);
Check filesystem on device
avoiding any modifications or repairs.
This calls other fs check functions from this plugin based on detected
filesystem (e.g. bd_fs_xfs_check for XFS). This function will return
an error for unknown/unsupported filesystems.
Note that depending on a corresponding filesystem type and configured features running this function on a mounted filesystem may result in false errors reported.
device |
the device the file system of which to check |
|
fstype |
the filesystem type on |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the file system on device
passed the consistency check or not
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_CHECK
gboolean bd_fs_set_label (const gchar *device
,const gchar *label
,const gchar *fstype
,GError **error
);
Set label for filesystem on device
. This calls other fs label functions from this
plugin based on detected filesystem (e.g. bd_fs_xfs_set_label for XFS). This
function will return an error for unknown/unsupported filesystems.
Note: This function will mount device
for filesystems that need to be mounted
to set label (like btrfs).
device |
the device with file system to set the label for |
|
label |
label to set |
|
fstype |
the filesystem type on |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the file system on device
was successfully relabeled or not
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_SET_LABEL
gboolean bd_fs_check_label (const gchar *fstype
,const gchar *label
,GError **error
);
This calls other fs check label functions from this plugin based on the provided filesystem (e.g. bd_fs_xfs_check_label for XFS). This function will return an error for unknown/unsupported filesystems.
guint64 bd_fs_get_size (const gchar *device
,const gchar *fstype
,GError **error
);
Get size for filesystem on device
. This calls other fs info functions from this
plugin based on detected filesystem (e.g. bd_fs_xfs_get_info for XFS). This
function will return an error for unknown/unsupported filesystems.
Note: This function will mount device
for filesystems that need to be mounted
to gather information (like btrfs).
device |
the device with file system to get size for |
|
fstype |
the filesystem type on |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
size of filesystem on device
, 0 in case of error.
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
guint64 bd_fs_get_free_space (const gchar *device
,const gchar *fstype
,GError **error
);
Get free space for filesystem on device
. This calls other fs info functions from this
plugin based on detected filesystem (e.g. bd_fs_ext4_get_info for ext4). This
function will return an error for unknown/unsupported filesystems.
device |
the device with file system to get free space for |
|
fstype |
the filesystem type on |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
free space of filesystem on device
, 0 in case of error.
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
guint64 bd_fs_get_min_size (const gchar *device
,const gchar *fstype
,GError **error
);
Get minimum size for filesystem on device
. This calls other fs info functions from this
plugin based on detected filesystem (e.g. bd_fs_ext4_get_min_size for ext4). This
function will return an error for unknown/unsupported filesystems.
device |
the device with file system to get minimum size for |
|
fstype |
the filesystem type on |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
minimum size of filesystem on device
, 0 in case of error.
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_RESIZE
gboolean bd_fs_can_resize (const gchar *type
,BDFSResizeFlags *mode
,gchar **required_utility
,GError **error
);
Searches for the required utility to resize the given filesystem and returns whether it is installed. The mode flags indicate if growing and/or shrinking resize is available if mounted/unmounted. Unknown filesystems or filesystems which do not support resizing result in errors.
type |
the filesystem type to be tested for installed resize support |
|
mode |
flags for allowed resizing (i.e. growing/shrinking support for online/offline). |
[out] |
required_utility |
the utility binary which is required for resizing (if missing i.e. returns FALSE but no error). |
[out][transfer full] |
error |
place to store error (if any). |
[out][optional] |
whether filesystem resize is available
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
gboolean bd_fs_can_check (const gchar *type
,gchar **required_utility
,GError **error
);
Searches for the required utility to check the given filesystem and returns whether it is installed. Unknown filesystems or filesystems which do not support checking result in errors.
type |
the filesystem type to be tested for installed consistency check support |
|
required_utility |
the utility binary which is required for checking (if missing i.e. returns FALSE but no error). |
[out][transfer full] |
error |
place to store error (if any). |
[out][optional] |
whether filesystem check is available
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
gboolean bd_fs_can_repair (const gchar *type
,gchar **required_utility
,GError **error
);
Searches for the required utility to repair the given filesystem and returns whether it is installed. Unknown filesystems or filesystems which do not support reparing result in errors.
type |
the filesystem type to be tested for installed repair support |
|
required_utility |
the utility binary which is required for repairing (if missing i.e. return FALSE but no error). |
[out][transfer full] |
error |
place to store error (if any). |
[out][optional] |
whether filesystem repair is available
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
gboolean bd_fs_can_set_label (const gchar *type
,gchar **required_utility
,GError **error
);
Searches for the required utility to set the label of the given filesystem and returns whether it is installed. Unknown filesystems or filesystems which do not support setting the label result in errors.
type |
the filesystem type to be tested for installed label support |
|
required_utility |
the utility binary which is required for relabeling (if missing i.e. return FALSE but no error). |
[out][transfer full] |
error |
place to store error (if any). |
[out][optional] |
whether setting filesystem label is available
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
gboolean bd_fs_can_get_size (const gchar *type
,gchar **required_utility
,GError **error
);
Searches for the required utility to get size of the given filesystem and returns whether it is installed. Unknown filesystems or filesystems which do not support size querying result in errors.
type |
the filesystem type to be tested for installed size querying support |
|
required_utility |
the utility binary which is required for size querying (if missing i.e. return FALSE but no error). |
[out][transfer full] |
error |
place to store error (if any). |
[out][optional] |
whether getting filesystem size is available
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
gboolean bd_fs_can_get_free_space (const gchar *type
,gchar **required_utility
,GError **error
);
Searches for the required utility to get free space of the given filesystem and returns whether it is installed. Unknown filesystems or filesystems which do not support free space querying result in errors.
type |
the filesystem type to be tested for installed free space querying support |
|
required_utility |
the utility binary which is required for free space querying (if missing i.e. return FALSE but no error). |
[out][transfer full] |
error |
place to store error (if any). |
[out][optional] |
whether getting filesystem free space is available
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
gboolean bd_fs_can_get_min_size (const gchar *type
,gchar **required_utility
,GError **error
);
Searches for the required utility to get minimum size of the given filesystem and returns whether it is installed. Unknown filesystems or filesystems which do not support minimum size querying result in errors.
type |
the filesystem type to be tested for installed minimum size querying support |
|
required_utility |
the utility binary which is required for size querying (if missing i.e. return FALSE but no error). |
[out][transfer full] |
error |
place to store error (if any). |
[out][optional] |
whether getting filesystem size is available
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
gboolean bd_fs_can_get_info (const gchar *type
,gchar **required_utility
,GError **error
);
Searches for the required utility to get info of the given filesystem and returns whether it is installed. Unknown filesystems or filesystems which do not support info querying result in errors.
type |
the filesystem type to be tested for info querying support |
|
required_utility |
the utility binary which is required for info querying (if missing i.e. return FALSE but no error). |
[out][transfer full] |
error |
place to store error (if any). |
[out][optional] |
whether getting filesystem info is available
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
gboolean bd_fs_can_set_uuid (const gchar *type
,gchar **required_utility
,GError **error
);
Searches for the required utility to set the UUID of the given filesystem and returns whether it is installed. Unknown filesystems or filesystems which do not support setting the UUID result in errors.
type |
the filesystem type to be tested for installed UUID support |
|
required_utility |
the utility binary which is required for setting UUID (if missing i.e. return FALSE but no error). |
[out][transfer full] |
error |
place to store error (if any). |
[out][optional] |
whether setting filesystem UUID is available
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
gboolean bd_fs_set_uuid (const gchar *device
,const gchar *uuid
,const gchar *fstype
,GError **error
);
Set UUID for filesystem on device
. This calls other fs UUID functions from this
plugin based on detected filesystem (e.g. bd_fs_xfs_set_uuid for XFS). This
function will return an error for unknown/unsupported filesystems.
device |
the device with file system to set the UUID for |
|
uuid |
UUID to set or |
[nullable] |
fstype |
the filesystem type on |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the UUID on the file system on device
was successfully changed or not
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_SET_UUID
gboolean bd_fs_check_uuid (const gchar *fstype
,const gchar *uuid
,GError **error
);
This calls other fs check uuid functions from this plugin based on the provided filesystem (e.g. bd_fs_xfs_check_uuid for XFS). This function will return an error for unknown/unsupported filesystems.
const BDFSFeatures * bd_fs_features (const gchar *fstype
,GError **error
);
Returns (transfer-none): features supported by fstype
, see BDFSFeatures
for more information.
Tech category: always available
BDFSFeatures *
bd_fs_features_copy (BDFSFeatures *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_can_mkfs (const gchar *type
,BDFSMkfsOptionsFlags *options
,gchar **required_utility
,GError **error
);
Searches for the required utility to create the given filesystem and returns whether
it is installed. The options flags indicate what additional options can be specified for type
.
Unknown filesystems result in errors.
type |
the filesystem type to be tested for installed mkfs support |
|
options |
flags for allowed mkfs options (i.e. support for setting label or UUID when creating the filesystem). |
[out] |
required_utility |
the utility binary which is required for creating (if missing returns |
[out][transfer full] |
error |
place to store error (if any). |
[out][optional] |
whether filesystem mkfs tool is available
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_QUERY
gboolean bd_fs_mkfs (const gchar *device
,const gchar *fstype
,BDFSMkfsOptions *options
,const BDExtraArg **extra
,GError **error
);
This is a helper function for creating filesystems with extra options.
This is the same as running a filesystem-specific function like bd_fs_ext4_mkfs
and manually specifying the extra command line options. BDFSMkfsOptions
removes the need to specify supported options for selected filesystems,
make sure to check whether fstype
supports these options (see bd_fs_can_mkfs
)
for details.
When specifying additional mkfs options using extra
, it's caller's
responsibility to make sure these options do not conflict with options
specified using options
. Extra options are added after the options
and
there are no additional checks for duplicate and/or conflicting options.
device |
the device to create the new filesystem on |
|
fstype |
name of the filesystem to create (e.g. "ext4") |
|
options |
additional options like label or UUID for the filesystem |
|
extra |
extra mkfs options not provided in |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether fstype
was successfully created on device
or not.
Tech category: BD_FS_TECH_GENERIC
-BD_FS_TECH_MODE_MKFS
BDFSMkfsOptions *
bd_fs_mkfs_options_copy (BDFSMkfsOptions *data
);
Creates a new copy of data
.
[skip]
void
bd_fs_mkfs_options_free (BDFSMkfsOptions *data
);
Frees data
.
[skip]
const gchar **
bd_fs_supported_filesystems (GError **error
);
list of filesystems supported by this plugin
Note: This returns filesystems supported by libblockdev, but not necessarily
by the systems this is running on, for this information you need to
run one of the bd_fs_can_
functions.
Tech category: always available.
[transfer container][array zero-terminated=1]
gboolean bd_fs_ext2_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device the file system on which to check |
|
extra |
extra options for the check (right now passed to the 'e2fsck' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an ext2 file system on the device
is clean or not
Tech category: BD_FS_TECH_EXT2
-BD_FS_TECH_MODE_CHECK
BDFSExt2Info * bd_fs_ext2_get_info (const gchar *device
,GError **error
);
device |
the device the file system of which to get info for |
|
error |
place to store error (if any). |
[out][optional] |
information about the file system on device
or
NULL
in case of error
Tech category: BD_FS_TECH_EXT2
-BD_FS_TECH_MODE_QUERY
.
[transfer full]
BDFSExt2Info *
bd_fs_ext2_info_copy (BDFSExt2Info *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_ext2_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device to create a new ext2 fs on |
|
extra |
extra options for the creation (right now passed to the 'mke2fs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether a new ext2 fs was successfully created on device
or not
Tech category: BD_FS_TECH_EXT2
-BD_FS_TECH_MODE_MKFS
gboolean bd_fs_ext2_repair (const gchar *device
,gboolean unsafe
,const BDExtraArg **extra
,GError **error
);
device |
the device the file system on which to repair |
|
unsafe |
whether to do unsafe operations too |
|
extra |
extra options for the repair (right now passed to the 'e2fsck' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an ext2 file system on the device
was successfully repaired
(if needed) or not (error is set in that case)
Tech category: BD_FS_TECH_EXT2
-BD_FS_TECH_MODE_REPAIR
gboolean bd_fs_ext2_resize (const gchar *device
,guint64 new_size
,const BDExtraArg **extra
,GError **error
);
device |
the device the file system of which to resize |
|
new_size |
new requested size for the file system (if 0, the file system is adapted to the underlying block device) |
|
extra |
extra options for the resize (right now passed to the 'resize2fs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether the file system on device
was successfully resized or not
Tech category: BD_FS_TECH_EXT2
-BD_FS_TECH_MODE_RESIZE
gboolean bd_fs_ext2_set_label (const gchar *device
,const gchar *label
,GError **error
);
device |
the device the file system on which to set label for |
|
label |
label to set |
|
error |
place to store error (if any). |
[out][optional] |
whether the label of ext2 file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_EXT2
-BD_FS_TECH_MODE_SET_LABEL
gboolean bd_fs_ext2_set_uuid (const gchar *device
,const gchar *uuid
,GError **error
);
device |
the device the file system on which to set UUID for |
|
uuid |
UUID to set |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the UUID of ext2 file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_EXT2
-BD_FS_TECH_MODE_SET_UUID
guint64 bd_fs_ext2_get_min_size (const gchar *device
,GError **error
);
device |
the device containing the file system to get min size for |
|
error |
place to store error (if any). |
[out][optional] |
smallest shrunken filesystem size as reported by resize2fs
in case of error 0 is returned and error
is set
Tech category: BD_FS_TECH_EXT2
-BD_FS_TECH_MODE_RESIZE
gboolean bd_fs_ext3_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device the file system on which to check |
|
extra |
extra options for the check (right now passed to the 'e2fsck' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an ext3 file system on the device
is clean or not
Tech category: BD_FS_TECH_EXT3
-BD_FS_TECH_MODE_CHECK
BDFSExt3Info * bd_fs_ext3_get_info (const gchar *device
,GError **error
);
device |
the device the file system of which to get info for |
|
error |
place to store error (if any). |
[out][optional] |
information about the file system on device
or
NULL
in case of error
Tech category: BD_FS_TECH_EXT3
-BD_FS_TECH_MODE_QUERY
.
[transfer full]
BDFSExt3Info *
bd_fs_ext3_info_copy (BDFSExt3Info *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_ext3_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device to create a new ext3 fs on |
|
extra |
extra options for the creation (right now passed to the 'mke2fs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether a new ext3 fs was successfully created on device
or not
Tech category: BD_FS_TECH_EXT3
-BD_FS_TECH_MODE_MKFS
gboolean bd_fs_ext3_repair (const gchar *device
,gboolean unsafe
,const BDExtraArg **extra
,GError **error
);
device |
the device the file system on which to repair |
|
unsafe |
whether to do unsafe operations too |
|
extra |
extra options for the repair (right now passed to the 'e2fsck' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an ext3 file system on the device
was successfully repaired
(if needed) or not (error is set in that case)
Tech category: BD_FS_TECH_EXT3
-BD_FS_TECH_MODE_REPAIR
gboolean bd_fs_ext3_resize (const gchar *device
,guint64 new_size
,const BDExtraArg **extra
,GError **error
);
device |
the device the file system of which to resize |
|
new_size |
new requested size for the file system (if 0, the file system is adapted to the underlying block device) |
|
extra |
extra options for the resize (right now passed to the 'resize2fs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether the file system on device
was successfully resized or not
Tech category: BD_FS_TECH_EXT3
-BD_FS_TECH_MODE_RESIZE
gboolean bd_fs_ext3_set_label (const gchar *device
,const gchar *label
,GError **error
);
device |
the device the file system on which to set label for |
|
label |
label to set |
|
error |
place to store error (if any). |
[out][optional] |
whether the label of ext3 file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_EXT3
-BD_FS_TECH_MODE_SET_LABEL
gboolean bd_fs_ext3_set_uuid (const gchar *device
,const gchar *uuid
,GError **error
);
device |
the device the file system on which to set UUID for |
|
uuid |
UUID to set |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the UUID of ext3 file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_EXT3
-BD_FS_TECH_MODE_SET_UUID
guint64 bd_fs_ext3_get_min_size (const gchar *device
,GError **error
);
device |
the device containing the file system to get min size for |
|
error |
place to store error (if any). |
[out][optional] |
smallest shrunken filesystem size as reported by resize2fs
in case of error 0 is returned and error
is set
Tech category: BD_FS_TECH_EXT3
-BD_FS_TECH_MODE_RESIZE
gboolean bd_fs_ext4_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device the file system on which to check |
|
extra |
extra options for the check (right now passed to the 'e2fsck' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an ext4 file system on the device
is clean or not
Tech category: BD_FS_TECH_EXT4
-BD_FS_TECH_MODE_CHECK
BDFSExt4Info * bd_fs_ext4_get_info (const gchar *device
,GError **error
);
device |
the device the file system of which to get info for |
|
error |
place to store error (if any). |
[out][optional] |
information about the file system on device
or
NULL
in case of error
Tech category: BD_FS_TECH_EXT3
-BD_FS_TECH_MODE_QUERY
.
[transfer full]
BDFSExt4Info *
bd_fs_ext4_info_copy (BDFSExt4Info *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_ext4_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device to create a new ext4 fs on |
|
extra |
extra options for the creation (right now passed to the 'mkfs.ext4' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether a new ext4 fs was successfully created on device
or not
Tech category: BD_FS_TECH_EXT4
-BD_FS_TECH_MODE_MKFS
gboolean bd_fs_ext4_repair (const gchar *device
,gboolean unsafe
,const BDExtraArg **extra
,GError **error
);
device |
the device the file system on which to repair |
|
unsafe |
whether to do unsafe operations too |
|
extra |
extra options for the repair (right now passed to the 'e2fsck' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an ext4 file system on the device
was successfully repaired
(if needed) or not (error is set in that case)
Tech category: BD_FS_TECH_EXT4
-BD_FS_TECH_MODE_REPAIR
gboolean bd_fs_ext4_resize (const gchar *device
,guint64 new_size
,const BDExtraArg **extra
,GError **error
);
device |
the device the file system of which to resize |
|
new_size |
new requested size for the file system (if 0, the file system is adapted to the underlying block device) |
|
extra |
extra options for the resize (right now passed to the 'resize2fs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether the file system on device
was successfully resized or not
Tech category: BD_FS_TECH_EXT4
-BD_FS_TECH_MODE_RESIZE
gboolean bd_fs_ext4_set_label (const gchar *device
,const gchar *label
,GError **error
);
device |
the device the file system on which to set label for |
|
label |
label to set |
|
error |
place to store error (if any). |
[out][optional] |
whether the label of ext4 file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_EXT3
-BD_FS_TECH_MODE_SET_LABEL
gboolean bd_fs_ext4_set_uuid (const gchar *device
,const gchar *uuid
,GError **error
);
device |
the device the file system on which to set UUID for |
|
uuid |
UUID to set |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the UUID of ext4 file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_EXT4
-BD_FS_TECH_MODE_SET_UUID
guint64 bd_fs_ext4_get_min_size (const gchar *device
,GError **error
);
device |
the device containing the file system to get min size for |
|
error |
place to store error (if any). |
[out][optional] |
smallest shrunken filesystem size as reported by resize2fs
in case of error 0 is returned and error
is set
Tech category: BD_FS_TECH_EXT4
-BD_FS_TECH_MODE_RESIZE
gboolean bd_fs_xfs_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to check |
|
extra |
extra options for the repair (right now passed to the 'xfs_repair' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an xfs file system on the device
is clean or not
Note: If the file system is mounted RW, it will always be reported as not clean!
Tech category: BD_FS_TECH_XFS
-BD_FS_TECH_MODE_CHECK
BDFSXfsInfo * bd_fs_xfs_get_info (const gchar *device
,GError **error
);
device |
the device containing the file system to get info for (device must be mounted, trying to get info for an unmounted device will result in an error) |
|
error |
place to store error (if any). |
[out][optional] |
information about the file system on device
or
NULL
in case of error
Tech category: BD_FS_TECH_XFS
-BD_FS_TECH_MODE_QUERY
.
[transfer full]
BDFSXfsInfo *
bd_fs_xfs_info_copy (BDFSXfsInfo *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_xfs_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device to create a new xfs fs on |
|
extra |
extra options for the creation (right now passed to the 'mkfs.xfs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether a new xfs fs was successfully created on device
or not
Tech category: BD_FS_TECH_XFS
-BD_FS_TECH_MODE_MKFS
gboolean bd_fs_xfs_repair (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to repair |
|
extra |
extra options for the repair (right now passed to the 'xfs_repair' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an xfs file system on the device
was successfully repaired
(if needed) or not (error is set in that case)
Tech category: BD_FS_TECH_XFS
-BD_FS_TECH_MODE_REPAIR
gboolean bd_fs_xfs_resize (const gchar *mpoint
,guint64 new_size
,const BDExtraArg **extra
,GError **error
);
mpoint |
the mount point of the file system to resize |
|
new_size |
new requested size for the file system *in file system blocks* (see |
|
extra |
extra options for the resize (right now passed to the 'xfs_growfs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether the file system mounted on mpoint
was successfully resized or not
Tech category: BD_FS_TECH_XFS
-BD_FS_TECH_MODE_RESIZE
gboolean bd_fs_xfs_set_label (const gchar *device
,const gchar *label
,GError **error
);
device |
the device containing the file system to set label for |
|
label |
label to set |
|
error |
place to store error (if any). |
[out][optional] |
whether the label of xfs file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_XFS
-BD_FS_TECH_MODE_SET_LABEL
gboolean bd_fs_xfs_set_uuid (const gchar *device
,const gchar *uuid
,GError **error
);
device |
the device containing the file system to set uuid for |
|
uuid |
UUID to set |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the UUID of xfs file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_XFS
-BD_FS_TECH_MODE_SET_UUID
gboolean bd_fs_vfat_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to check |
|
extra |
extra options for the repair (right now passed to the 'fsck.vfat' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an vfat file system on the device
is clean or not
Tech category: BD_FS_TECH_VFAT
-BD_FS_TECH_MODE_CHECK
BDFSVfatInfo * bd_fs_vfat_get_info (const gchar *device
,GError **error
);
device |
the device containing the file system to get info for |
|
error |
place to store error (if any). |
[out][optional] |
information about the file system on device
or
NULL
in case of error
Tech category: BD_FS_TECH_VFAT
-BD_FS_TECH_MODE_QUERY
.
[transfer full]
BDFSVfatInfo *
bd_fs_vfat_info_copy (BDFSVfatInfo *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_vfat_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
Please remember that FAT labels should always be uppercase.
device |
the device to create a new vfat fs on |
|
extra |
extra options for the creation (right now passed to the 'mkfs.vfat' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether a new vfat fs was successfully created on device
or not
Tech category: BD_FS_TECH_VFAT
-BD_FS_TECH_MODE_MKFS
gboolean bd_fs_vfat_repair (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to repair |
|
extra |
extra options for the repair (right now passed to the 'fsck.vfat' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an vfat file system on the device
was successfully repaired
(if needed) or not (error is set in that case)
Tech category: BD_FS_TECH_VFAT
-BD_FS_TECH_MODE_REPAIR
gboolean bd_fs_vfat_resize (const gchar *device
,guint64 new_size
,GError **error
);
device |
the device the file system of which to resize |
|
new_size |
new requested size for the file system (if 0, the file system is adapted to the underlying block device) |
|
error |
place to store error (if any). |
[out][optional] |
whether the file system on device
was successfully resized or not
Tech category: BD_FS_TECH_VFAT
-BD_FS_TECH_MODE_RESIZE
gboolean bd_fs_vfat_set_label (const gchar *device
,const gchar *label
,GError **error
);
device |
the device containing the file system to set label for |
|
label |
label to set |
|
error |
place to store error (if any). |
[out][optional] |
whether the label of vfat file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_VFAT
-BD_FS_TECH_MODE_SET_LABEL
gboolean bd_fs_vfat_set_uuid (const gchar *device
,const gchar *uuid
,GError **error
);
device |
the device containing the file system to set uuid for |
|
uuid |
volume ID to set or |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the volume ID of vfat file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_VFAT
-BD_FS_TECH_MODE_SET_UUID
gboolean bd_fs_is_tech_avail (BDFSTech tech
,guint64 mode
,GError **error
);
tech |
the queried tech |
|
mode |
a bit mask of queried modes of operation (BDFSTechMode) for |
|
error |
place to store error (details about why the |
[out][optional] |
gboolean bd_fs_ntfs_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to check |
|
extra |
extra options for the repair (right now passed to the 'ntfsfix' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an ntfs file system on the device
is clean or not
Tech category: BD_FS_TECH_NTFS
-BD_FS_TECH_MODE_CHECK
BDFSNtfsInfo * bd_fs_ntfs_get_info (const gchar *device
,GError **error
);
device |
the device containing the file system to get info for (device must not be mounted, trying to get info for a mounted device will result in an error) |
|
error |
place to store error (if any). |
[out][optional] |
information about the file system on device
or
NULL
in case of error
Tech category: BD_FS_TECH_NTFS
-BD_FS_TECH_MODE_QUERY
.
[transfer full]
gboolean bd_fs_ntfs_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device to create a new ntfs fs on |
|
extra |
extra options for the creation (right now passed to the 'mkntfs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether a new NTFS fs was successfully created on device
or not
Tech category: BD_FS_TECH_NTFS
-BD_FS_TECH_MODE_MKFS
gboolean bd_fs_ntfs_repair (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to repair |
|
extra |
extra options for the repair (right now passed to the 'ntfsfix' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an NTFS file system on the device
was successfully repaired
(if needed) or not (error is set in that case)
Tech category: BD_FS_TECH_NTFS
-BD_FS_TECH_MODE_REPAIR
gboolean bd_fs_ntfs_resize (const gchar *device
,guint64 new_size
,GError **error
);
device |
the device the file system of which to resize |
|
new_size |
new requested size for the file system in bytes (if 0, the file system is adapted to the underlying block device) |
|
error |
place to store error (if any). |
[out][optional] |
whether the file system on device
was successfully resized or not
Tech category: BD_FS_TECH_NTFS
-BD_FS_TECH_MODE_RESIZE
gboolean bd_fs_ntfs_set_label (const gchar *device
,const gchar *label
,GError **error
);
device |
the device containing the file system to set the label for |
|
label |
label to set |
|
error |
place to store error (if any). |
[out][optional] |
whether the label of the NTFS file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_NTFS
-BD_FS_TECH_MODE_SET_LABEL
BDFSNtfsInfo *
bd_fs_ntfs_info_copy (BDFSNtfsInfo *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_ntfs_set_uuid (const gchar *device
,const gchar *uuid
,GError **error
);
device |
the device containing the file system to set the UUID (serial number) for |
|
uuid |
UUID to set or |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the UUID of the NTFS file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_NTFS
-BD_FS_TECH_MODE_SET_UUID
guint64 bd_fs_ntfs_get_min_size (const gchar *device
,GError **error
);
device |
the device containing the file system to get min size for |
|
error |
place to store error (if any). |
[out][optional] |
smallest shrunken filesystem size as reported by ntfsresize
in case of error 0 is returned and error
is set
Tech category: BD_FS_TECH_NTFS
-BD_FS_TECH_MODE_RESIZE
BDFSF2FSInfo *
bd_fs_f2fs_info_copy (BDFSF2FSInfo *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_f2fs_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device to create a new f2fs fs on |
|
extra |
extra options for the creation (right now passed to the 'mkfs.f2fs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether a new f2fs fs was successfully created on device
or not
Tech category: BD_FS_TECH_F2FS
-BD_FS_TECH_MODE_MKFS
gboolean bd_fs_f2fs_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to check |
|
extra |
extra options for the repair (right now passed to the 'fsck.f2fs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an f2fs file system on the device
is clean or not
Tech category: BD_FS_TECH_F2FS
-BD_FS_TECH_MODE_CHECK
gboolean bd_fs_f2fs_repair (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to repair |
|
extra |
extra options for the repair (right now passed to the 'fsck.f2fs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether an f2fs file system on the device
was successfully repaired
(if needed) or not (error is set in that case)
Tech category: BD_FS_TECH_F2FS
-BD_FS_TECH_MODE_REPAIR
BDFSF2FSInfo * bd_fs_f2fs_get_info (const gchar *device
,GError **error
);
device |
the device containing the file system to get info for |
|
error |
place to store error (if any). |
[out][optional] |
information about the file system on device
or
NULL
in case of error
Tech category: BD_FS_TECH_F2FS
-BD_FS_TECH_MODE_QUERY
.
[transfer full]
gboolean bd_fs_f2fs_resize (const gchar *device
,guint64 new_size
,gboolean safe
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to resize |
|
new_size |
new requested size for the file system *in file system sectors* (see |
|
safe |
whether to perform safe resize or not (does not resize metadata) |
|
extra |
extra options for the resize (right now passed to the 'resize.f2fs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether the file system on device
was successfully resized or not
Tech category: BD_FS_TECH_F2FS
-BD_FS_TECH_MODE_RESIZE
BDFSNILFS2Info * bd_fs_nilfs2_get_info (const gchar *device
,GError **error
);
device |
the device containing the file system to get info for |
|
error |
place to store error (if any). |
[out][optional] |
information about the file system on device
or
NULL
in case of error
Tech category: BD_FS_TECH_NILFS2
-BD_FS_TECH_MODE_QUERY
.
[transfer full]
BDFSNILFS2Info *
bd_fs_nilfs2_info_copy (BDFSNILFS2Info *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_nilfs2_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device to create a new nilfs fs on |
|
extra |
extra options for the creation (right now passed to the 'mkfs.nilfs2' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether a new nilfs fs was successfully created on device
or not
Tech category: BD_FS_TECH_NILFS2
-BD_FS_TECH_MODE_MKFS
gboolean bd_fs_nilfs2_resize (const gchar *device
,guint64 new_size
,GError **error
);
device |
the device the file system of which to resize |
|
new_size |
new requested size for the file system (if 0, the file system is adapted to the underlying block device) |
|
error |
place to store error (if any). |
[out][optional] |
whether the file system on device
was successfully resized or not
Tech category: BD_FS_TECH_NILFS2
-BD_FS_TECH_MODE_RESIZE
gboolean bd_fs_nilfs2_set_label (const gchar *device
,const gchar *label
,GError **error
);
device |
the device containing the file system to set label for |
|
label |
label to set |
|
error |
place to store error (if any). |
[out][optional] |
whether the label of nilfs file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_NILFS2
-BD_FS_TECH_MODE_SET_LABEL
gboolean bd_fs_nilfs2_set_uuid (const gchar *device
,const gchar *uuid
,GError **error
);
device |
the device containing the file system to set UUID for |
|
uuid |
UUID to set or |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the uuid of nilfs file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_NILFS2
-BD_FS_TECH_MODE_SET_UUID
gboolean bd_fs_exfat_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to check |
|
extra |
extra options for the repair (right now passed to the 'exfatfsck' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether the exfat file system on the device
is clean or not
Tech category: BD_FS_TECH_EXFAT
-BD_FS_TECH_MODE_CHECK
BDFSExfatInfo * bd_fs_exfat_get_info (const gchar *device
,GError **error
);
device |
the device containing the file system to get info for |
|
error |
place to store error (if any). |
[out][optional] |
information about the file system on device
or
NULL
in case of error
Tech category: BD_FS_TECH_EXFAT
-BD_FS_TECH_MODE_QUERY
.
[transfer full]
BDFSExfatInfo *
bd_fs_exfat_info_copy (BDFSExfatInfo *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_exfat_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device to create a new exfat fs on |
|
extra |
extra options for the creation (right now passed to the 'mkexfatfs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether a new exfat fs was successfully created on device
or not
Tech category: BD_FS_TECH_EXFAT
-BD_FS_TECH_MODE_MKFS
gboolean bd_fs_exfat_repair (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to repair |
|
extra |
extra options for the repair (right now passed to the 'exfatfsck' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether the exfat file system on the device
was successfully repaired
(if needed) or not (error is set in that case)
Tech category: BD_FS_TECH_EXFAT
-BD_FS_TECH_MODE_REPAIR
gboolean bd_fs_exfat_set_label (const gchar *device
,const gchar *label
,GError **error
);
device |
the device containing the file system to set label for |
|
label |
label to set |
|
error |
place to store error (if any). |
[out][optional] |
whether the label of exfat file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_EXFAT
-BD_FS_TECH_MODE_SET_LABEL
gboolean bd_fs_exfat_set_uuid (const gchar *device
,const gchar *uuid
,GError **error
);
device |
the device containing the file system to set uuid for |
|
uuid |
volume ID to set or |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the volume ID of exFAT file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_EXFAT
-BD_FS_TECH_MODE_SET_UUID
BDFSBtrfsInfo * bd_fs_btrfs_get_info (const gchar *mpoint
,GError **error
);
mpoint |
a mountpoint of the btrfs filesystem to get information about |
|
error |
place to store error (if any). |
[out][optional] |
information about the file system on device
or
NULL
in case of error
Note: This function WON'T WORK for multi device btrfs filesystems, for more complicated setups use the btrfs plugin instead.
Tech category: BD_FS_TECH_BTRFS
-BD_FS_TECH_MODE_QUERY
.
[transfer full]
BDFSBtrfsInfo *
bd_fs_btrfs_info_copy (BDFSBtrfsInfo *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_btrfs_mkfs (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device to create a new btrfs fs on |
|
extra |
extra options for the creation (right now passed to the 'mkfs.btrfs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether a new btrfs fs was successfully created on device
or not
Tech category: BD_FS_TECH_BTRFS
-BD_FS_TECH_MODE_MKFS
gboolean bd_fs_btrfs_check (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to check |
|
extra |
extra options for the check (right now passed to the 'btrfsck' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether the filesystem was successfully checked or not
Tech category: BD_FS_TECH_BTRFS
-BD_FS_TECH_MODE_CHECK
gboolean bd_fs_btrfs_repair (const gchar *device
,const BDExtraArg **extra
,GError **error
);
device |
the device containing the file system to repair |
|
extra |
extra options for the repair (right now passed to the 'btrfs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether the filesystem was successfully checked and repaired or not
Tech category: BD_FS_TECH_BTRFS
-BD_FS_TECH_MODE_REPAIR
gboolean bd_fs_btrfs_set_label (const gchar *mpoint
,const gchar *label
,GError **error
);
mpoint |
the mount point of the file system to set label for |
|
label |
label to set |
|
error |
place to store error (if any). |
[out][optional] |
whether the label of Btrfs file system on the mpoint
was
successfully set or not
Note: This function is intended to be used for btrfs filesystem on a single device, for more complicated setups use the btrfs plugin instead.
Tech category: BD_FS_TECH_BTRFS
-BD_FS_TECH_MODE_SET_LABEL
gboolean bd_fs_btrfs_set_uuid (const gchar *device
,const gchar *uuid
,GError **error
);
device |
the device containing the file system to set the UUID (serial number) for |
|
uuid |
UUID to set or |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the UUID of the Btrfs file system on the device
was
successfully set or not
Note: This function is intended to be used for btrfs filesystem on a single device, for more complicated setups use the btrfs plugin instead.
Tech category: BD_FS_TECH_BTRFS
-BD_FS_TECH_MODE_SET_UUID
gboolean bd_fs_btrfs_resize (const gchar *mpoint
,guint64 new_size
,const BDExtraArg **extra
,GError **error
);
mpoint |
a mountpoint of the to be resized btrfs filesystem |
|
new_size |
requested new size |
|
extra |
extra options for the volume resize (right now passed to the 'btrfs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether the mpoint
filesystem was successfully resized to new_size
or not
Note: This function WON'T WORK for multi device btrfs filesystems, for more complicated setups use the btrfs plugin instead.
Tech category: BD_BTRFS_TECH_FS
-BD_BTRFS_TECH_MODE_MODIFY
BDFSUdfInfo * bd_fs_udf_get_info (const gchar *device
,GError **error
);
device |
the device containing the file system to get info for |
|
error |
place to store error (if any). |
[out][optional] |
information about the file system on device
or
NULL
in case of error
Tech category: BD_FS_TECH_UDF
-BD_FS_TECH_MODE_QUERY
.
[transfer full]
BDFSUdfInfo *
bd_fs_udf_info_copy (BDFSUdfInfo *data
);
Creates a new copy of data
.
[skip]
gboolean bd_fs_udf_mkfs (const gchar *device
,const gchar *media_type
,gchar *revision
,guint64 block_size
,const BDExtraArg **extra
,GError **error
);
device |
the device to create a new UDF fs on |
|
media_type |
specify the media type or |
[nullable] |
revision |
UDF revision to use or |
[nullable] |
block_size |
block size in bytes or 0 for auto detection (device logical block size) |
|
extra |
extra options for the creation (right now passed to the 'mkudffs' utility). |
[nullable][array zero-terminated=1] |
error |
place to store error (if any). |
[out][optional] |
whether a new UDF fs was successfully created on device
or not
Tech category: BD_FS_TECH_UDF
-BD_FS_TECH_MODE_MKFS
gboolean bd_fs_udf_set_label (const gchar *device
,const gchar *label
,GError **error
);
Note: This sets both Volume Identifier and Logical Volume Identifier. Volume Identifier is truncated to 30 or 15 characters to accommodate to the different length limits of these labels.
device |
the device containing the file system to set label for |
|
label |
label to set |
|
error |
place to store error (if any). |
[out][optional] |
whether the label of UDF file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_UDF
-BD_FS_TECH_MODE_SET_LABEL
gboolean bd_fs_udf_check_label (const gchar *label
,GError **error
);
Note: This checks only whether label
adheres the length limits for Logical Volume Identifier,
not the stricter limits for Volume Identifier.
gboolean bd_fs_udf_set_uuid (const gchar *device
,const gchar *uuid
,GError **error
);
device |
the device containing the file system to set the UUID (serial number) for |
|
uuid |
UUID to set or |
[nullable] |
error |
place to store error (if any). |
[out][optional] |
whether the UUID of the UDF file system on the device
was
successfully set or not
Tech category: BD_FS_TECH_UDF
-BD_FS_TECH_MODE_SET_UUID
typedef struct { BDFSResizeFlags resize; BDFSMkfsOptionsFlags mkfs; BDFSFsckFlags fsck; BDFSConfigureFlags configure; BDFSFeatureFlags features; const gchar *partition_id; const gchar *partition_type; } BDFSFeatures;
BDFSResizeFlags |
supported resizes modes |
|
BDFSMkfsOptionsFlags |
supported options for mkfs |
|
BDFSFsckFlags |
support for fsck operations (check and repair) |
|
BDFSConfigureFlags |
support for changing properties of an existing filesystem |
|
BDFSFeatureFlags |
other supported features |
|
partition ID used for this filesystem on MSDOS partitions |
||
partition type/GUID used for this filesystem GPT partitions |
typedef struct { const gchar *label; const gchar *uuid; gboolean dry_run; gboolean no_discard; gboolean force; gboolean no_pt; guint8 reserve[32]; } BDFSMkfsOptions;
label of the filesystem |
||
uuid of the filesystem |
||
whether to run mkfs in dry run mode (no changes written to the device) |
||
whether to avoid discarding blocks at mkfs time |
||
whether to run mkfs with the |
||
whether to disable (protective) partition table creation during mkfs |
||
reserve for future expansion |
typedef struct { gchar *label; gchar *uuid; guint64 block_size; guint64 block_count; } BDFSXfsInfo;
typedef struct { gchar *label; gchar *uuid; guint64 cluster_size; guint64 cluster_count; guint64 free_cluster_count; } BDFSVfatInfo;
typedef struct { gchar *label; gchar *uuid; guint64 size; guint64 free_space; } BDFSNtfsInfo;
typedef struct { gchar *label; gchar *uuid; guint64 sector_size; guint64 sector_count; guint64 features; } BDFSF2FSInfo;
label of the filesystem |
||
uuid of the filesystem |
||
sector size used by the filesystem |
||
number of sectors in the filesystem |
||
features enabled for this filesystem, see BDFSF2FSFeature |
typedef struct { gchar *label; gchar *uuid; guint64 size; guint64 block_size; guint64 free_blocks; } BDFSNILFS2Info;
typedef struct { gchar *label; gchar *uuid; guint64 sector_size; guint64 sector_count; guint64 cluster_count; } BDFSExfatInfo;
typedef struct { gchar *label; gchar *uuid; guint64 size; guint64 free_space; } BDFSBtrfsInfo;
typedef struct { gchar *label; gchar *uuid; gchar *revision; gchar *lvid; gchar *vid; guint64 block_size; guint64 block_count; guint64 free_blocks; } BDFSUdfInfo;