25a9583634
Add API and pvesm call for prune_backups
...
For the pvesm call use a wrapper and a --dry-run option to redirect
to the correct API call.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com >
2020-07-24 15:44:53 +02:00
7dd31e686c
Whitespace cleanup
...
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com >
2020-06-30 13:57:39 +02:00
481f6177a5
grammar fix: s/does not exists/does not exist/g
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2019-12-13 12:11:26 +01:00
0ce8cadd7f
use PVE::RRD for RRD data
...
refactored from PVE::Cluster. same code, same semantics, different file.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com >
2019-11-18 12:03:00 +01:00
4c69349140
fix #2216 : Allow .img files in 'iso' type storages
...
To maintain full (backwards) compatibility, leave the type name as
'iso' - this makes this patch work without changing every consumer of
storage APIs.
Note that currently these files can only be attached as a CDROM/DVD
drive, so USB-only images can be uploaded but might not work in VMs.
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com >
2019-09-03 07:09:28 +02:00
243f413ad2
followup: reword comment a bit
...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com >
2019-06-13 11:59:58 +02:00
5c0720d6c9
fix #1427 : Set file mode on uploaded templates/ISOs
...
simply chmod the temp file before copying to the "correct" permission
mode, where all users with access to the directory can read the file,
to mirror the behavior one gets for a apl_download call.
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com >
2019-06-13 11:55:18 +02:00
4af7713268
Status: Include command error in error message when storage activation fails
...
Signed-off-by: Christian Ebner <c.ebner@proxmox.com >
2019-04-11 08:04:32 +02:00
d347322a63
PVE::API2::Storage::Status::index - document return schema properties
...
And add property "used_fraction" - I want to use that for the CLI tool.
2018-08-07 13:24:27 +02:00
d68c7bca46
whitespace fixup
...
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com >
2018-05-14 08:35:22 +02:00
fee2cb61e3
Fix typo.
2018-05-14 08:10:19 +02:00
ee8c176d3a
Simplify image/template upload check.
...
All storage's witch are able to store images must have a path.
2018-05-14 08:10:19 +02:00
f6c03d367d
whitespace cleanup
...
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2017-11-14 13:23:52 +01:00
856c54bd75
add 'format' parameter to storage list call
...
we will use this for the gui to figure out if we have to show
a size selector, a file selector, which formats are there, etc.
we have to include this data even for not active storages, else
we cannot show the correct fields
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com >
2017-11-14 13:23:52 +01:00
030f6e1a97
Fix #1424 : allow tar.xz templates upload
2017-06-22 14:32:27 +02:00
38e1eb3d87
upload: whitelist filename chars instead of blacklisting
2016-06-09 18:14:55 +02:00
83d7192ff9
Add write_config, drop cfs_read_file
...
Use PVE::Storage::config() and the new
PVE::Storage::write_config() instead of cfs_read_file and
cfs_write_file with a hardcoded filename.
2016-03-30 10:42:12 +02:00
f3bd890d98
add missing completion hooks
2015-10-01 07:59:48 +02:00
98437f4c85
add bash completion for content type
2015-10-01 07:16:59 +02:00
53ec90e23e
upload API: safer filename handling
...
Replace possibly-dangerous characters in uploaded filenames
with underscores, this includes spaces, colons, commas,
equal signs and any byte >= 128. Previously only spaces were
turned into underscores.
Also shell_quote the destination for scp.
Use '--' for some shell commands for safety.
Use brackets around the scp destination for ipv6 support.
2015-08-18 16:23:53 +02:00
583c2802f8
storage status API: allow to filter multiple content types
2015-08-07 09:46:49 +02:00
e384c898d3
allow iso upload for glusterfs
2014-09-10 14:15:11 +02:00
12c2fe32e1
bump version to 3.0-6 and fix bug from previous commit
2013-05-14 11:26:23 +02:00
283608f330
extend storage list API with useful parameters for clone
...
Add ability to list shared storages availavlable on souce and target node.
2013-05-14 09:56:11 +02:00
d6c9dc34af
file upload: fix race condition
...
bump version to 2.3-6
2013-03-04 09:00:27 +01:00
45c2ee3526
PVE/API2/Storage/Status: remove hardcoded blowfish cipher PVE/Storage: remove hardcoded blowfish cipher
...
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag >
2012-10-31 14:05:40 +01:00
571abaa611
add newline to error message
2012-06-18 06:30:27 +02:00
0c1473f928
only list iscsi when enabled (content == images)
2012-02-15 09:33:12 +01:00
1f6610f386
fix upload permissions. Only allow iso/tmpl upload.
2012-02-06 10:10:55 +01:00
5f642f73b8
add permission checks
2012-01-26 09:25:39 +01:00
4ea5bca4e3
use correct prefix
2011-11-03 09:32:32 +01:00
7814e05f6f
implement file upload API
2011-11-03 09:22:53 +01:00
b6cf0a6659
imported from svn 'pve-storage/pve2'
2011-08-23 07:43:03 +02:00