[pve-devel] [PATCH storage v2 0/2] add disk management

Dominik Csapak d.csapak at proxmox.com
Mon Jun 6 10:46:01 CEST 2016

this is the second version of the patch series

changes to v1:
 * instead of blacklisting some devices in /sys/block/*
   we whitelist only sda/vda/nvme/c0d0/etc.
   we can always add more later
 * check for lvm via 'pvs' instead of the holders dir
   (since thist would not be empty for any device mapper functionality)
 * use parse_proc_mounts instead of own function
 * generalize how we get the /dev/sdX path (for c0d0 it is a little different)
 * filter out iscsi devices with symlink regex (if it has hostX/sessionX, it is
   an iscsi device)
 * restructed smart data return values (easier for web gui)

we still have no idea where to put the functions in the gui,
so any suggestions are welcome

the structure would be

disk list
 -> ceph
    -> osd
    -> ...
 -> zfs
 -> lvm
 -> ?

so since ceph already has sub-items,
we cannot just replace the ceph tab, with a disk tab

Dominik Csapak (2):
  add Diskmanage Utilities
  add api entries for disk management

 PVE/API2/Disks.pm | 190 ++++++++++++++++++++++++++++
 PVE/API2/Makefile |   3 +-
 PVE/Diskmanage.pm | 372 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 PVE/Makefile      |   1 +
 4 files changed, 565 insertions(+), 1 deletion(-)
 create mode 100644 PVE/API2/Disks.pm
 create mode 100644 PVE/Diskmanage.pm


More information about the pve-devel mailing list