Skip to contentSkip to conversation

master - dmsetup: Also install dmstats.

PATCH Alasdair Kergon 1 participant 1 message Aug 9, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=41001dbfdd54674ead6051d06a8b89701dce68c5
Commit:        41001dbfdd54674ead6051d06a8b89701dce68c5
Parent:        d62a8d2f1535468c75379b877844bdb7666c8c9e
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Mon Aug 10 00:35:15 2015 +0100
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Mon Aug 10 00:35:15 2015 +0100

dmsetup: Also install dmstats.

---
 spec/packages.inc |    2 ++
 tools/Makefile.in |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
spec/packages.inc +2 -0
index 2c0caa8..d781067 100644
@@ -398,7 +398,9 @@ for the kernel device-mapper.
 %defattr(-,root,root,-)
 %doc COPYING COPYING.LIB WHATS_NEW_DM VERSION_DM README INSTALL
 %attr(755,root,root) %{_sbindir}/dmsetup
+%{_sbindir}/dmstats
 %{_mandir}/man8/dmsetup.8.gz
+%{_mandir}/man8/dmstats.8.gz
 %if %{enable_udev}
 %doc udev/12-dm-permissions.rules
 %dir %{_udevbasedir}
tools/Makefile.in +2 -0
index cec74a9..d6e54f0 100644
@@ -204,9 +204,11 @@ install_tools_static: lvm.static
 
 install_dmsetup_dynamic: dmsetup
 	$(INSTALL_PROGRAM) -D $< $(sbindir)/$(<F)
+	$(LN_S) -f $(<F) $(sbindir)/dmstats
 
 install_dmsetup_static: dmsetup.static
 	$(INSTALL_PROGRAM) -D $< $(staticdir)/$(<F)
+	$(LN_S) -f $(<F) $(sbindir)/dmstats
 
 install_device-mapper: $(INSTALL_DMSETUP_TARGETS)