1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Rename _stats_set_aux() argument

The aux_data argument of _stats_set_aux() is the user-defined data
to be stored with the stats region. Rename the argument to better
reflect this.
This commit is contained in:
Bryn M. Reeves 2023-09-25 16:13:53 +01:00 committed by Zdeněk Kabeláč
parent f0fd03b122
commit ac41deeeac

View File

@ -1882,7 +1882,7 @@ bad:
* generated from the current group table and included in the message.
*/
static int _stats_set_aux(struct dm_stats *dms,
uint64_t region_id, const char *aux_data)
uint64_t region_id, const char *user_data)
{
const char *group_tag = NULL;
struct dm_task *dmt = NULL;
@ -1897,11 +1897,10 @@ static int _stats_set_aux(struct dm_stats *dms,
goto bad;
}
}
if (dm_snprintf(msg, sizeof(msg), "@stats_set_aux " FMTu64 " %s%s%s ",
region_id, (group_tag) ? group_tag : "",
(group_tag) ? DMS_AUX_SEP : "",
(strlen(aux_data)) ? aux_data : "-") < 0) {
(strlen(user_data)) ? user_data : "-") < 0) {
log_error("Could not prepare @stats_set_aux message");
goto bad;
}