Skip to contentSkip to conversation

master - dmsetup: obey --programid when deleting regions

PATCH Bryn Reeves 1 participant 1 message Oct 24, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=5eda3934885b23ce06f862a56b524ceaab3cb565
Commit:        5eda3934885b23ce06f862a56b524ceaab3cb565
Parent:        de78e8eae73cb155fdb906ef2b8ddc9ca1a918c4
Author:        Bryn M. Reeves <[email protected]>
AuthorDate:    Mon Oct 24 17:21:18 2016 +0100
Committer:     Bryn M. Reeves <[email protected]>
CommitterDate: Mon Oct 24 17:21:18 2016 +0100

dmsetup: obey --programid when deleting regions

---
 tools/dmsetup.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
tools/dmsetup.c +2 -0
index 9d357ec..ec64d24 100644
@@ -5278,6 +5278,8 @@ static int _stats_delete(CMD_ARGS)
 		name = argv[0];
 	}
 
+	if (_switches[PROGRAM_ID_ARG])
+		program_id = _string_args[PROGRAM_ID_ARG];
 	if (_switches[ALL_PROGRAMS_ARG])
 		program_id = DM_STATS_ALL_PROGRAMS;