[pve-devel] r5134 - pve-storage/pve2

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Sep 14 10:31:02 CEST 2010


Author: dietmar
Date: 2010-09-14 08:31:02 +0000 (Tue, 14 Sep 2010)
New Revision: 5134

Modified:
   pve-storage/pve2/ChangeLog
   pve-storage/pve2/Makefile
   pve-storage/pve2/pvesm
Log:
* pvesm: add/use 'verifyapi' command



Modified: pve-storage/pve2/ChangeLog
===================================================================
--- pve-storage/pve2/ChangeLog	2010-09-14 08:29:34 UTC (rev 5133)
+++ pve-storage/pve2/ChangeLog	2010-09-14 08:31:02 UTC (rev 5134)
@@ -1,5 +1,7 @@
 2010-09-14  Proxmox Support Team  <support at proxmox.com>
 
+	* pvesm: add/use 'verifyapi' command
+
 	* Storage.pm (storage_info): better caching - avoid timeout bug
 	with large number of VGs.
 

Modified: pve-storage/pve2/Makefile
===================================================================
--- pve-storage/pve2/Makefile	2010-09-14 08:29:34 UTC (rev 5133)
+++ pve-storage/pve2/Makefile	2010-09-14 08:31:02 UTC (rev 5134)
@@ -38,6 +38,7 @@
 	rm -rf debian
 	mkdir debian
 	make DESTDIR=${CURDIR}/debian install
+	perl -I. ./pvesm verifyapi 
 	install -d -m 0755 debian/DEBIAN
 	sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ <control.in >debian/DEBIAN/control
 	install -D -m 0644 copyright debian/${DOCDIR}/${PACKAGE}/copyright

Modified: pve-storage/pve2/pvesm
===================================================================
--- pve-storage/pve2/pvesm	2010-09-14 08:29:34 UTC (rev 5133)
+++ pve-storage/pve2/pvesm	2010-09-14 08:31:02 UTC (rev 5134)
@@ -226,6 +226,11 @@
 
 my $cmd = shift;
 
+if ($cmd eq 'verifyapi') {
+    PVE::RESTHandler::validate_method_schemas();
+    exit 0;
+}
+
 PVE::CLIHandler::handle_cmd($cmddef, "pvesm", $cmd, \@ARGV);
 
 exit 0;




More information about the pve-devel mailing list