Commit Graph

48 Commits

Author SHA1 Message Date
d57fb43d9b disks: fix warnings 2016-10-07 09:28:06 +02:00
dd902da78e merge get_smart_data/health
instead of parsing the output of smart in two places,
give get_smart_data a flag if we only want health

this fixes a bug (not on the bugtracker), where
an ssd with disabled smart had an empty string as health
in the gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-06 07:48:57 +02:00
16bf963b94 add return schema to smart API path 2016-10-04 10:34:47 +02:00
e3b02ffe6e disks: fix typo 2016-09-29 08:42:15 +02:00
acd3d91649 move SMART error handling into get_disks
because we never ever want to die in get_disks because of a
single disk, but the nodes/xyz/disks/smart API path is
allowed to fail if a disk device is unsupported by smartctl
or something else goes wrong.
2016-09-29 08:40:19 +02:00
409f8203e0 add api entries for disk management
adds a new class (intended to be used under nodes in pve-manager)
which adds the three api calls: list, smart and init

list being a general list of the available disk with infos
smart being a call to get the smart data from a given device
init being a call to write a gpt header to an unused disk

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-09-05 13:49:28 +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
668f6d9faf add lvmthinscan to CLI 2016-02-20 10:11:59 +01:00
d0ea89e564 prepare storage for lvmthin gui
this patch adds an lvmthin scan to the api, so that we can get a list
of thinpools for a specific vg via an api call

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-02-20 09:51:12 +01: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
37ba0aea5b volume_list: moved code from PVE::API2::Storage::Content
For better code reuse.
2015-10-01 06:50:19 +02:00
ba0cf557f4 pvesm list fix 2015-09-29 17:25:05 +02:00
f7621c0126 improve bash completions 2015-09-18 09:33:09 +02:00
2a2cf20aa9 remove storage access permissions after delete 2015-08-19 15:17:38 +02:00
402df80b12 added remove storage (exist) check 2015-08-19 15:14:29 +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
1ccae4490e zfspool: new format 'subvol' to handle filesystems inside datasets
We use this for containers.
2015-05-01 14:46:17 +02:00
584d97f646 implement zfsscan to list local zfs pools 2015-01-26 09:05:09 +01:00
e384c898d3 allow iso upload for glusterfs 2014-09-10 14:15:11 +02:00
5f25af2f93 avoid nested parameter exception 2013-09-04 13:43:59 +02:00
8e87d6eef0 auto-detect format for files with vmdk extension 2013-09-04 10:18:50 +02:00
a18f774079 return error if volume does not exists 2013-09-04 10:17:47 +02:00
3cf5e19edc API: add scan method for glusterfs 2013-08-13 10:06:03 +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
df6b79c892 fix permission check for backup file removal 2013-03-01 06:04:03 +01:00
b8744249a2 fix access rights
Try to use $rpcenv->check_volume_access() everywhere.
2013-02-28 10:15:44 +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
6d64e9e065 fix lvmscan 2012-07-25 15:50:23 +02:00
571abaa611 add newline to error message 2012-06-18 06:30:27 +02:00
1dc01b9f30 new plugin architecture 2012-05-23 08:00:13 +02:00
446073f681 allow to set option 'maxfiles' 2012-03-23 07:43:28 +01:00
b755bdb0f9 delete volume requires Datastore.Allocate 2012-02-22 12:08:54 +01: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
03f03009ba fix description 2011-11-03 09:33:27 +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
87191fbe8f add content type attribute 2011-10-31 11:45:16 +01:00
568de3d125 allow backup to local storage and code cleanups 2011-10-18 11:23:31 +02:00
883eeea67d add copy API example for stefan 2011-10-12 07:39:50 +02:00
dfe98e6437 Fix digest handling 2011-09-07 12:01:25 +02:00
b6cf0a6659 imported from svn 'pve-storage/pve2' 2011-08-23 07:43:03 +02:00