Version 2.02.27 -
================================
Turn _add_pv_to_vg() into external library function add_pv_to_vg().
- Add pv_read_path() external library function.
+ Add pv_by_path() external library function.
Tidy clvmd-openais of redundant bits, and improve an error report.
Cope with find_seg_by_le() failure in check_lv_segments().
Call dev_iter_destroy() if _process_all_devs() is interrupted by sigint.
/* attach each pv */
for (i = 0; i < pv_count; i++) {
- if (!(pv = pv_read_path(vg->fid->fmt->cmd, pv_names[i]))) {
+ if (!(pv = pv_by_path(vg->fid->fmt->cmd, pv_names[i]))) {
log_error("%s not identified as an existing "
"physical volume", pv_names[i]);
goto bad;
/**
- * pv_read_path - Given a device path return a PV handle if it is a PV
+ * pv_by_path - Given a device path return a PV handle if it is a PV
* @cmd - handle to the LVM command instance
* @pv_name - device path to read for the PV
*
* NULL - device path does not contain a valid PV
* non-NULL - PV handle corresponding to device path
*
+ * FIXME: merge with find_pv_by_name ?
*/
-pv_t *pv_read_path(struct cmd_context *cmd, const char *pv_name)
+pv_t *pv_by_path(struct cmd_context *cmd, const char *pv_name)
{
struct list mdas;
uint32_t vg_status(vg_t *vg);
-pv_t *pv_read_path(struct cmd_context *cmd, const char *pv_name);
+pv_t *pv_by_path(struct cmd_context *cmd, const char *pv_name);
int add_pv_to_vg(struct volume_group *vg, const char *pv_name,
struct physical_volume *pv);