]> git.proxmox.com Git - qemu-server.git/commit
Create Drive.pm and move drive-related code there
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 2 Mar 2020 10:33:44 +0000 (11:33 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 7 Mar 2020 17:23:57 +0000 (18:23 +0100)
commite0fd2b2f8402086902fe5e38d4bbe152194bfccc
treee94224d5a9d666e8d7ad64c7c4467a4f06ba6cd3
parentad396d54e42b5b0faae64a1eb7b08f411ad9ef4a
Create Drive.pm and move drive-related code there

The initialization for the drive keys in $confdesc is changed
to be a single for-loop iterating over the keys of $drivedesc_hash and
the initialization of the unusedN keys is move to directly below it.

To avoid the need to change all the call sites, functions with more than
a few callers are exported from the submodule and imported into QemuServer.pm.

For callers of the now imported functions within QemuServer.pm, the prefix
PVE::QemuServer is dropped, because it is unnecessary and now even confusing.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/API2/Qemu.pm
PVE/CLI/qm.pm
PVE/QemuMigrate.pm
PVE/QemuServer.pm
PVE/QemuServer/Drive.pm [new file with mode: 0644]
PVE/QemuServer/Makefile