summaryrefslogtreecommitdiffstats
path: root/tools/pvremove.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pvremove.c')
-rw-r--r--tools/pvremove.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pvremove.c b/tools/pvremove.c
index acf598d6..9912711c 100644
--- a/tools/pvremove.c
+++ b/tools/pvremove.c
@@ -25,9 +25,9 @@ const char _really_wipe[] =
static int pvremove_check(struct cmd_context *cmd, const char *name)
{
struct physical_volume *pv;
- struct list mdas;
+ struct dm_list mdas;
- list_init(&mdas);
+ dm_list_init(&mdas);
/* FIXME Check partition type is LVM unless --force is given */
@@ -47,7 +47,7 @@ static int pvremove_check(struct cmd_context *cmd, const char *name)
* means checking every VG by scanning every
* PV on the system.
*/
- if (is_orphan(pv) && !list_size(&mdas)) {
+ if (is_orphan(pv) && !dm_list_size(&mdas)) {
if (!scan_vgs_for_pvs(cmd)) {
log_error("Rescan for PVs without metadata areas "
"failed.");