#define _lockd_send(req_name, args...) \
_lockd_send_with_pvs(req_name, NULL, ##args)
-static int _lockd_retrive_vg_pv_num(struct volume_group *vg)
+static int _lockd_retrieve_vg_pv_num(struct volume_group *vg)
{
struct pv_list *pvl;
int num = 0;
lock_pvs->num = 0;
}
-static void _lockd_retrive_vg_pv_list(struct volume_group *vg,
+static void _lockd_retrieve_vg_pv_list(struct volume_group *vg,
struct lvmlockd_pvs *lock_pvs)
{
struct pv_list *pvl;
memset(lock_pvs, 0x0, sizeof(*lock_pvs));
- pv_num = _lockd_retrive_vg_pv_num(vg);
+ pv_num = _lockd_retrieve_vg_pv_num(vg);
if (!pv_num) {
log_error("Fail to any PVs for VG %s", vg->name);
return;
}
}
-static int _lockd_retrive_lv_pv_num(struct volume_group *vg,
+static int _lockd_retrieve_lv_pv_num(struct volume_group *vg,
const char *lv_name)
{
struct logical_volume *lv = find_lv(vg, lv_name);
return num;
}
-static void _lockd_retrive_lv_pv_list(struct volume_group *vg,
+static void _lockd_retrieve_lv_pv_list(struct volume_group *vg,
const char *lv_name,
struct lvmlockd_pvs *lock_pvs)
{
if (!lv)
return;
- pv_num = _lockd_retrive_lv_pv_num(vg, lv_name);
+ pv_num = _lockd_retrieve_lv_pv_num(vg, lv_name);
if (!pv_num) {
/*
* Fixup for 'lvcreate --type error -L1 -n $lv1 $vg', in this
*/
log_error("Fail to find any PVs for %s/%s, try to find PVs from VG instead",
vg->name, lv_name);
- _lockd_retrive_vg_pv_list(vg, lock_pvs);
+ _lockd_retrieve_vg_pv_list(vg, lock_pvs);
return;
}
* to send SCSI commands for idm locking scheme.
*/
if (!strcmp(vg->lock_type, "idm")) {
- _lockd_retrive_vg_pv_list(vg, &lock_pvs);
+ _lockd_retrieve_vg_pv_list(vg, &lock_pvs);
reply = _lockd_send_with_pvs("start_vg",
&lock_pvs,
"pid = " FMTd64, (int64_t) getpid(),
/* Pass PV list for IDM lock type */
if (!strcmp(vg->lock_type, "idm")) {
- _lockd_retrive_lv_pv_list(vg, lv_name, &lock_pvs);
+ _lockd_retrieve_lv_pv_list(vg, lv_name, &lock_pvs);
if (!_lockd_request(cmd, "lock_lv",
vg->name, vg->lock_type, vg->lock_args,
lv_name, lv_uuid, lock_args, mode, opts,