Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lib/plugin_apis/crypto.api
Original file line number Diff line number Diff line change
Expand Up @@ -855,8 +855,8 @@ BDCryptoKeyslotContext* bd_crypto_keyslot_context_new_passphrase (const guint8 *
/**
* bd_crypto_keyslot_context_new_keyfile:
* @keyfile: a key file for the new context
* @keyfile_offset: number of bytes to read from @keyfile or 0 for unlimited
* @key_size: number of bytes to skip at start of @keyfile
* @keyfile_offset: number of bytes to skip at start of @keyfile
* @key_size: number of bytes to read from @keyfile or 0 for unlimited
* @error: (out) (optional): place to store error (if any)
*
* Returns (transfer full): new %BDCryptoKeyslotContext initialized by key file or
Expand Down Expand Up @@ -1299,7 +1299,7 @@ gboolean bd_crypto_keyring_add_key (const gchar *key_desc, const guint8 *key_dat
* To achieve this, we calculate the chi square value of the first
* 512 Bytes and treat devices with a chi square value between 136
* and 426 as candidates for being encrypted.
* For the reasoning, see: https://tails.boum.org/blueprint/veracrypt/
* For the reasoning, see: https://gitlab.tails.boum.org/tails/blueprints/-/wikis/veracrypt/#detecting-veracrypt-volumes
*
* Returns: %TRUE if the given @device seems to be encrypted or %FALSE if not or
* failed to determine (the @error) is populated with the error in such
Expand Down
3 changes: 2 additions & 1 deletion src/lib/plugin_apis/dm.api
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ gchar* bd_dm_get_subsystem_from_name (const gchar *device_name, GError **error);
* @error: (out) (optional): place to store error (if any)
*
* Returns: whether the given @map_name exists (and is live if @live_only is
* %TRUE (and is active if @active_only is %TRUE)).
* %TRUE (and is active if @active_only is %TRUE)). If %FALSE is returned,
* @error indicates whether error appeared (non-%NULL) or not (%NULL).
*
* Tech category: %BD_DM_TECH_MAP-%BD_DM_TECH_MODE_QUERY
*/
Expand Down
2 changes: 2 additions & 0 deletions src/lib/plugin_apis/fs.api
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,7 @@ gboolean bd_fs_unfreeze (const gchar *mountpoint, GError **error);
* uid (gid), if you specify one of
* these, the function will run in
* a child process with real user
* and/or group ID set to these values.
* @error: (out) (optional): place to store error (if any)
*
* Returns: whether @spec was successfully unmounted or not
Expand All @@ -942,6 +943,7 @@ gboolean bd_fs_unmount (const gchar *spec, gboolean lazy, gboolean force, const
* uid (gid), if you specify one of
* these, the function will run in
* a child process with real user
* and/or group ID set to these values.
* @error: (out) (optional): place to store error (if any)
*
* Returns: whether @device (or @mountpoint) was successfully mounted or not
Expand Down
3 changes: 2 additions & 1 deletion src/lib/plugin_apis/loop.api
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ BDLoopInfo* bd_loop_info (const gchar *loop, GError **error);
* @file: path of the backing file to get loop name for
* @error: (out) (optional): place to store error (if any)
*
* Returns: (transfer full): name of the loop device associated with the given @file
* Returns: (transfer full): name of the loop device associated with the given
* @file or %NULL if failed to determine
*
* Tech category: %BD_LOOP_TECH_LOOP-%BD_LOOP_TECH_MODE_QUERY
*/
Expand Down
4 changes: 2 additions & 2 deletions src/lib/plugin_apis/mdraid.api
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ BDMDDetailData* bd_md_detail (const gchar *raid_spec, GError **error);
* @uuid: UUID to canonicalize
* @error: (out) (optional): place to store error (if any)
*
* Returns: (transfer full): canonicalized form of @uuid
* Returns: (transfer full): canonicalized form of @uuid or %NULL in case of error
*
* This function expects a UUID in the form that mdadm returns. The change is as
* follows: 3386ff85:f5012621:4a435f06:1eb47236 -> 3386ff85-f501-2621-4a43-5f061eb47236
Expand All @@ -430,7 +430,7 @@ gchar* bd_md_canonicalize_uuid (const gchar *uuid, GError **error);
* @uuid: UUID to transform into format used by MD RAID
* @error: (out) (optional): place to store error (if any)
*
* Returns: (transfer full): transformed form of @uuid
* Returns: (transfer full): transformed form of @uuid or %NULL in case of error
*
* This function expects a UUID in the canonical (traditional format) and
* returns a UUID in the format used by MD RAID and is thus reverse to
Expand Down
11 changes: 6 additions & 5 deletions src/lib/plugin_apis/nvdimm.api
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,11 @@ BDNVDIMMNamespaceInfo* bd_nvdimm_namespace_info (const gchar *namespace, const B
/**
* bd_nvdimm_list_namespaces:
* @bus: (nullable): return only namespaces on given bus (specified by name),
* %NULL may be specified to return namespaces from all buses
* @region: (nullable): return only namespaces on given region (specified by regionX name or region id),
* %NULL may be specified to return namespaces from all buses
* @region: (nullable): return only namespaces on given region (specified by 'regionX' name),
* %NULL may be specified to return namespaces from all regions
* @idle: whether to list idle (not enabled) namespaces too
* @extra: (nullable) (array zero-terminated=1): extra options for the creation (right now
* passed to the 'ndctl' utility)
* @extra: (nullable) (array zero-terminated=1): extra options (currently unused)
* @error: (out) (optional): place to store error (if any)
*
* Returns: (array zero-terminated=1): information about the namespaces on @bus and @region or
Expand All @@ -234,14 +233,16 @@ BDNVDIMMNamespaceInfo** bd_nvdimm_list_namespaces (const gchar *bus, const gchar
/**
* bd_nvdimm_namespace_reconfigure:
* @namespace: name of the namespace to reconfigure
* @mode: mode type to set (memory/sector/raw/dax)
* @mode: mode type to set (raw/sector/memory/dax/fsdax/devdax)
* @force: whether to use force to reconfigure an active namespace
* @error: (out) (optional): place to store error if any
* @extra: (nullable) (array zero-terminated=1): extra options for the creation (right now
* passed to the 'ndctl' utility)
*
* Returns: whether @namespace was successfully reconfigured or not
*
* Tech category: %BD_NVDIMM_TECH_NAMESPACE-%BD_NVDIMM_TECH_MODE_RECONFIGURE
*
* Deprecated: 3.1: NVDIMM plugin will be removed in the next major release
*/
gboolean bd_nvdimm_namespace_reconfigure (const gchar* namespace, BDNVDIMMNamespaceMode mode, gboolean force, const BDExtraArg **extra, GError** error);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/plugin_apis/nvme.api
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ gboolean bd_nvme_format (const gchar *device, guint16 lba_data_size, guint16 met
* The sanitize operation is set to run under the Allow Unrestricted Sanitize Exit
* mode.
*
* Returns: %TRUE if the format command finished successfully, %FALSE otherwise with @error set.
* Returns: %TRUE if the sanitize command was successfully submitted, %FALSE otherwise with @error set.
*
* Tech category: %BD_NVME_TECH_NVME-%BD_NVME_TECH_MODE_MANAGE
*/
Expand Down
2 changes: 1 addition & 1 deletion src/lib/plugin_apis/part.api
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ gboolean bd_part_set_part_id (const gchar *disk, const gchar *part, const gchar
*
* Returns: whether the @uuid type was successfully set for @part or not
*
* Tech category: %BD_PART_TECH_MODE_MODIFY_PART + the tech according to the partition table type
* Tech category: %BD_PART_TECH_GPT-%BD_PART_TECH_MODE_MODIFY_PART
*/
gboolean bd_part_set_part_uuid (const gchar *disk, const gchar *part, const gchar *uuid, GError **error);

Expand Down
18 changes: 9 additions & 9 deletions src/lib/plugin_apis/s390.api
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ gboolean bd_s390_dasd_format (const gchar *dasd, const BDExtraArg **extra, GErro

/**
* bd_s390_dasd_needs_format:
* @dasd: dasd to check, whether it needs dasdfmt run on it
* @dasd: dasd to check, given as device number
* @error: (out) (optional): place to store error (if any)
*
* Returns: whether a dasd needs dasdfmt run against it
Expand All @@ -64,7 +64,7 @@ gboolean bd_s390_dasd_needs_format (const gchar *dasd, GError **error);

/**
* bd_s390_dasd_online:
* @dasd: dasd to switch online
* @dasd: dasd to switch online, given as device number
* @error: (out) (optional): place to store error (if any)
*
* Returns: whether a dasd was successfully switched online
Expand Down Expand Up @@ -130,9 +130,9 @@ gchar* bd_s390_zfcp_sanitize_lun_input (const gchar *lun, GError **error);

/**
* bd_s390_zfcp_online:
* @devno: a zFCP device number
* @wwpn: a zFCP WWPN identifier
* @lun: a zFCP LUN identifier
* @devno: zfcp device number
* @wwpn: zfcp WWPN (World Wide Port Number)
* @lun: zfcp LUN (Logical Unit Number)
* @error: (out) (optional): place to store error (if any)
*
* Returns: whether a zFCP device was successfully switched online
Expand All @@ -143,12 +143,12 @@ gboolean bd_s390_zfcp_online (const gchar *devno, const gchar *wwpn, const gchar

/**
* bd_s390_zfcp_scsi_offline:
* @devno: a zFCP device number
* @wwpn: a zFCP WWPN identifier
* @lun: a zFCP LUN identifier
* @devno: zfcp device number
* @wwpn: zfcp WWPN (World Wide Port Number)
* @lun: zfcp LUN (Logical Unit Number)
* @error: (out) (optional): place to store error (if any)
*
* Returns: whether a LUN was successfully removed from associated WWPN
* Returns: whether a LUN was successfully removed from its associated WWPN
*
* This function looks through /proc/scsi/scsi and manually removes LUNs from
* associated WWPNs. zFCP devices are SCSI devices accessible over FCP protocol.
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/btrfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ gboolean bd_btrfs_delete_subvolume (const gchar *mountpoint, const gchar *name,
* @error: (out) (optional): place to store error (if any)
*
* Returns: ID of the @mountpoint volume's default subvolume. If 0,
* @error) may be set to indicate error
* @error may be set to indicate error
*
* Tech category: %BD_BTRFS_TECH_SUBVOL-%BD_BTRFS_TECH_MODE_QUERY
*/
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -3185,7 +3185,7 @@ gboolean bd_crypto_keyring_add_key (const gchar *key_desc, const guint8 *key_dat
* To achieve this, we calculate the chi square value of the first
* 512 Bytes and treat devices with a chi square value between 136
* and 426 as candidates for being encrypted.
* For the reasoning, see: https://tails.boum.org/blueprint/veracrypt/#detection
* For the reasoning, see: https://gitlab.tails.boum.org/tails/blueprints/-/wikis/veracrypt/#detecting-veracrypt-volumes
*
* Returns: %TRUE if the given @device seems to be encrypted or %FALSE if not or
* failed to determine (the @error) is populated with the error in such
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ gboolean bd_dm_remove (const gchar *map_name, GError **error) {
* @error: (out) (optional): place to store error (if any)
*
* Returns: map name of the map providing the @dm_node device or %NULL
* (@error) contains the error in such cases)
* (@error) contains the error in such cases
*
* Tech category: %BD_DM_TECH_MAP-%BD_DM_TECH_MODE_QUERY
*/
Expand Down Expand Up @@ -208,7 +208,7 @@ gchar* bd_dm_name_from_node (const gchar *dm_node, GError **error) {
* @error: (out) (optional): place to store error (if any)
*
* Returns: DM node name for the @map_name map or %NULL (@error) contains
* the error in such cases)
* the error in such cases
*
* Tech category: %BD_DM_TECH_MAP-%BD_DM_TECH_MODE_QUERY
*/
Expand Down Expand Up @@ -306,7 +306,7 @@ gchar* bd_dm_get_subsystem_from_name (const gchar *device_name, GError **error)
*
* Returns: whether the given @map_name exists (and is live if @live_only is
* %TRUE (and is active if @active_only is %TRUE)). If %FALSE is returned,
* @error) indicates whether error appeared (non-%NULL) or not (%NULL).
* @error indicates whether error appeared (non-%NULL) or not (%NULL).
*
* Tech category: %BD_DM_TECH_MAP-%BD_DM_TECH_MODE_QUERY
*/
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/fs/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,11 +634,12 @@ static gboolean run_as_user (MountFunc func, MountArgs *args, uid_t run_as_uid,
* uid (gid), if you specify one of
* these, the function will run in
* a child process with real user
* and/or group ID set to these values.
* @error: (out) (optional): place to store error (if any)
*
* Returns: whether @spec was successfully unmounted or not
*
* Tech category: %BD_FS_TECH_GENERIC (no mode, ignored)
* 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) {
uid_t run_as_uid = -1;
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/lvm/lvm-dbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -3836,7 +3836,7 @@ gboolean bd_lvm_vdo_enable_deduplication (const gchar *vg_name, const gchar *poo
}

/**
* bd_lvm_vdo_enable_deduplication:
* bd_lvm_vdo_disable_deduplication:
* @vg_name: name of the VG containing the to-be-changed VDO pool LV
* @pool_name: name of the VDO pool LV to disable deduplication on
* @extra: (nullable) (array zero-terminated=1): extra options for the VDO change
Expand All @@ -3854,7 +3854,7 @@ gboolean bd_lvm_vdo_disable_deduplication (const gchar *vg_name, const gchar *po
/**
* bd_lvm_vdo_info:
* @vg_name: name of the VG that contains the LV to get information about
* @pool_name: name of the VDO pool LV to get information about
* @lv_name: name of the LV to get information about
* @error: (out) (optional): place to store error (if any)
*
* Returns: (transfer full): information about the @vg_name/@lv_name LV or %NULL in case
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/lvm/lvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2755,7 +2755,7 @@ gboolean bd_lvm_vdo_enable_deduplication (const gchar *vg_name, const gchar *poo
}

/**
* bd_lvm_vdo_enable_deduplication:
* bd_lvm_vdo_disable_deduplication:
* @vg_name: name of the VG containing the to-be-changed VDO pool LV
* @pool_name: name of the VDO pool LV to disable deduplication on
* @extra: (nullable) (array zero-terminated=1): extra options for the VDO change
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/nvdimm.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ BDNVDIMMNamespaceInfo** bd_nvdimm_list_namespaces (const gchar *bus_name, const
/**
* bd_nvdimm_namespace_reconfigure:
* @namespace: name of the namespace to reconfigure
* @mode: mode type to set
* @mode: mode type to set (raw/sector/memory/dax/fsdax/devdax)
* @force: whether to use force to reconfigure an active namespace
* @error: (out) (optional): place to store error if any
* @extra: (nullable) (array zero-terminated=1): extra options for the creation (right now
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/nvme/nvme-op.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ gboolean bd_nvme_format (const gchar *device, guint16 lba_data_size, guint16 met
* The sanitize operation is set to run under the Allow Unrestricted Sanitize Exit
* mode.
*
* Returns: %TRUE if the format command finished successfully, %FALSE otherwise with @error set.
* Returns: %TRUE if the sanitize command was successfully submitted, %FALSE otherwise with @error set.
*
* Tech category: %BD_NVME_TECH_NVME-%BD_NVME_TECH_MODE_MANAGE
*/
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/part.c
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,7 @@ static gboolean set_part_type (struct fdisk_context *cxt, gint part_num, const g
*
* Returns: whether the name was successfully set or not
*
* Tech category: %BD_PART_TECH_MODE_MODIFY_PART + the tech according to the partition table type
* Tech category: %BD_PART_TECH_GPT-%BD_PART_TECH_MODE_MODIFY_PART
*/
gboolean bd_part_set_part_name (const gchar *disk, const gchar *part, const gchar *name, GError **error) {
struct fdisk_context *cxt = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ gboolean bd_s390_zfcp_online (const gchar *devno, const gchar *wwpn, const gchar
* I/O config, but WWPN and LUN configuration is done at the OS level, hence
* this function becomes necessary when switching the device offline. This
* particular sequence of actions is for some reason unnecessary when switching
* the device offline. Chalk it up to s390x being s390x.
* the device online. Chalk it up to s390x being s390x.
*
* Tech category: %BD_S390_TECH_ZFCP-%BD_S390_TECH_MODE_MODIFY
*/
Expand Down
Loading