Skip to contentSkip to conversation

stable-2.02 - dm: Fix compilation of dmsetup

PATCH Marian Csontos 1 participant 1 message Oct 22, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c65f3fd8dfaae6efd8529a846c6f2a9f604c440d
Commit:        c65f3fd8dfaae6efd8529a846c6f2a9f604c440d
Parent:        c24fa7b7b714871950e0366ca4c35d0e601786ff
Author:        Marian Csontos <[email protected]>
AuthorDate:    Mon Oct 21 16:31:53 2019 +0200
Committer:     Marian Csontos <[email protected]>
CommitterDate: Tue Oct 22 10:37:40 2019 +0200

dm: Fix compilation of dmsetup

Fix: 889c88e9dab33195efc4dc0400a4b0aaa3383948

---
 libdm/libdevmapper.h |    2 +-
 tools/dmsetup.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
libdm/libdevmapper.h +1 -1
index 81c67dc..18fe9f9 100644
@@ -123,7 +123,7 @@ enum {
 
 	DM_DEVICE_ARM_POLL,
 
-	DM_GET_TARGET_VERSION
+	DM_DEVICE_GET_TARGET_VERSION
 };
 
 /*
tools/dmsetup.c +1 -1
index dfa9e34..b5419ca 100644
@@ -2595,7 +2595,7 @@ static int _target_version(CMD_ARGS)
 	struct dm_task *dmt;
 	struct dm_versions *target;
 
-	if (!(dmt = dm_task_create(DM_GET_TARGET_VERSION)))
+	if (!(dmt = dm_task_create(DM_DEVICE_GET_TARGET_VERSION)))
 		return_0;
 
 	if (!dm_task_set_name(dmt, argv[0]))