pve-manager/PVE/API2/Ceph
Dominik Csapak 45d45a63cd ceph: make ceph osd create api more readable
The aim of this patch is to reorder/rework the code of the api call
so that it gets more readable

it adds comments of what/why something is done, removes
code duplication between db/wal checks/creation

There are two changes in behaviour:
* when a device is given more than once via the api,
  the user gets a parameter exception for the db or wal
  with the information that the explicit defined devices must be
  different

* we check the usage for db/wal before the worker, so that the user
  gets instant feedback if a device is already in use
  (this is more for api users than for gui users, since we do those
  checks there also)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-06-06 12:41:14 +02:00
..
FS.pm api: ceph: ensure calls get proxied to correct node 2019-03-28 14:16:49 +01:00
Makefile ceph: move Monitor API calls to API2/Ceph/MON.pm 2018-12-20 09:44:01 +01:00
MDS.pm ceph: factor out the service info generation 2019-06-04 14:57:10 +02:00
MGR.pm api: create mgr: also have id in path for create 2019-06-05 12:41:11 +02:00
MON.pm api: create mon: also have monid in path for create 2019-06-05 12:41:11 +02:00
OSD.pm ceph: make ceph osd create api more readable 2019-06-06 12:41:14 +02:00