0370861cfd
diskmanage: rename check_unused to assert_disk_unused
...
to have a clear method name for this. check_XYZ suggests also that we
return true if the check was OK, but we don't.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2018-10-03 14:51:38 +02:00
9280153e10
rename check_available to assert_sid_unused
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2018-10-03 14:49:14 +02:00
4dcb16c0dc
fix #1929 : only check storage if user want to create one
...
this is useful if a user wants to create similar storage on each host
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2018-10-03 14:30:22 +02:00
76c1e57be7
refactor disk/storage checks for Disk API
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2018-10-03 14:30:22 +02:00
401b56fc54
fix #1912 : find the partition instead of guessing it
...
instead of using '$dev1' as partition,
get the information from /sys/block/$dev
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2018-09-14 11:24:42 +02:00
e39e8ee213
refactor diskmanagement lock_file calls
...
so that we only have one place where we reference the lockfile
and the timeout
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2018-08-08 12:01:02 +02:00
fdc863c705
fix descriptions of api calls
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2018-08-08 11:56:17 +02:00
fd87487b3a
fix typo
2018-08-02 12:44:30 +02:00
793d720cd2
add API for add Directory storage
...
creates/lists systemd mount units for /mnt/pve/.*
filetypes allowed are ext4 and xfs for now
mount with /dev/disk/by-uuid
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2018-08-02 12:28:27 +02:00