4b5b01192e
followup: try to be a bit more like systemd-escape
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2019-02-20 16:31:25 +01:00
fc31916384
followup comment that we do not escape completely like systemd
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2019-02-20 16:30:46 +01:00
43e04c681e
fix #2099 : escape systemd path names in mount unit
...
we only allow '-' '_' and '.' int storage-ids and names,
and we do not need to escape '_' and '.' (see man 5 systemd.unit)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2019-02-20 16:06:39 +01:00
4ec588fe92
allow snippets by default for new dir storages
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2019-01-31 11:04:29 +01:00
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