pve-manager/PVE/API2
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
..
Ceph ceph: make ceph osd create api more readable 2019-06-06 12:41:14 +02:00
Hardware api: move PCI from Scan to Hardware path 2018-11-22 14:20:09 +01:00
ACME.pm ACMEv2 order "ready" status update 2018-06-25 10:42:17 +02:00
ACMEAccount.pm pvenode: use print_api_result to print acme account information 2018-07-26 13:09:08 +02:00
APT.pm drop references to un-maintained sheepdog plugin 2019-06-04 17:45:38 +02:00
Backup.pm restrict vzdump cron options 2016-10-17 10:36:06 +02:00
Ceph.pm ceph: add missing link for 'restart' in ceph api 2019-06-04 14:55:13 +02:00
Certificates.pm add certificates API endpoints 2018-05-02 11:34:52 +02:00
Cluster.pm ceph: refactor broadcast_ceph_services and get_cluster_service 2019-06-04 14:56:24 +02:00
HAConfig.pm use new ha infrastructure 2015-04-03 08:36:59 +02:00
Hardware.pm api/hardware: fixup: add missing file 2018-11-22 15:05:52 +01:00
Makefile ceph: add MDS create/delete/list API 2018-11-23 13:33:12 +01:00
Network.pm add new parameters cidr(6) to the network api 2019-05-08 14:56:40 +00:00
NodeConfig.pm add node configuration file and API 2018-05-02 11:34:52 +02:00
Nodes.pm pvecfg: adapt version and release semantic 2019-05-26 16:11:43 +02:00
Pool.pm lxc added to read_pool 2015-07-22 13:30:23 +02:00
Replication.pm cleanup 2017-12-14 09:07:00 +01:00
ReplicationConfig.pm Fix create replication job 2017-06-28 14:20:09 +02:00
Scan.pm api: move PCI from Scan to Hardware path 2018-11-22 14:20:09 +01:00
Services.pm Fix #1386: track postfix daemon status via postfix@- 2017-05-29 14:52:24 +02:00
Subscription.pm cleanup: api/subscription: keep variable declarations closer to use 2019-01-31 10:54:50 +01:00
Tasks.pm task index: fix return schema annotations 2019-01-23 18:42:59 +01:00
VZDump.pm fix #1997: set taskid for single-guest backups 2019-01-03 09:17:38 +01:00