add api entries for disk management

adds a new class (intended to be used under nodes in pve-manager)
which adds the three api calls: list, smart and init

list being a general list of the available disk with infos
smart being a call to get the smart data from a given device
init being a call to write a gpt header to an unused disk

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2016-08-23 12:20:46 +02:00
committed by Dietmar Maurer
parent cbba9b5b9c
commit 409f8203e0
2 changed files with 194 additions and 1 deletions

View File

@ -2,4 +2,5 @@
.PHONY: install
install:
make -C Storage install
install -D -m 0644 Disks.pm ${DESTDIR}${PERLDIR}/PVE/API2/Disks.pm
make -C Storage install