Dietmar Maurer
74d1b045bd
new function to setup tc rate limits.
2012-03-28 10:35:41 +02:00
Dietmar Maurer
b9436cda61
add vlan setup code to PVE::Network
2012-03-28 10:24:28 +02:00
Dietmar Maurer
4b6a5be973
remove exec permissions
2012-03-28 10:21:25 +02:00
Dietmar Maurer
7eb283fbd2
moved dir_glob_regex() and dir_glob_foreach() from PVE::Storage
2012-03-28 07:58:05 +02:00
Dietmar Maurer
66bda4e09d
return number of sockets in read_cpuinfo
2012-03-26 07:54:29 +02:00
Dietmar Maurer
568ba6a471
use Digest::SHA instead of Digest::SHA1
2012-03-20 11:21:38 +01:00
Dietmar Maurer
ed4e6e0c51
fix bug #116 , #103 : try to keep ordering in /etc/network/interfaces
2012-03-19 13:30:40 +01:00
Dietmar Maurer
34ebb22690
remove 'name' to the list of utf8 encoded parameters.
...
Revert previous change. Add dns-name format instead.
2012-03-13 06:56:31 +01:00
Dietmar Maurer
490aade412
add 'name' to the list of utf8 encoded parameters
2012-03-12 12:31:59 +01:00
Dietmar Maurer
c9dc864557
try to keep ordering in /etc/network/interfaces
2012-03-02 12:49:01 +01:00
Dietmar Maurer
adbc988db3
cleanup error message from usermod command
2012-03-01 12:43:15 +01:00
Dietmar Maurer
72ca652054
try to keep comments in /etc/network/interfaces
2012-03-01 09:52:12 +01:00
Dietmar Maurer
9934cd0bd1
add Swedish keymap
2012-02-27 09:47:07 +01:00
Dietmar Maurer
50f6a3fc19
increase version to 1.0-14 for RC1
2012-02-16 15:12:38 +01:00
Dietmar Maurer
05e787c503
moved format definition from pve-storage
2012-01-26 11:54:42 +01:00
Dietmar Maurer
3250f5c799
allow to pass undefined value to template_replace
2012-01-26 06:56:56 +01:00
Dietmar Maurer
7f0f0610ab
fix usage string
2012-01-24 06:49:29 +01:00
Dietmar Maurer
b18d17224b
support check and description property for permission
...
And revove old path/priv properties.
2012-01-23 11:32:34 +01:00
Dietmar Maurer
8c77914e75
new helper raise_perm_exc
2012-01-20 07:05:16 +01:00
Dietmar Maurer
815b2abaea
new helper decode_utf8_parameters()
...
Both CGI.pm and Getopt.pm does not decode utf8 strings, so we need
to do that manually.
2012-01-19 14:05:19 +01:00
Dietmar Maurer
ded47a6108
fix bug 77: only use cmd2string when necessary
2012-01-09 12:30:48 +01:00
Dietmar Maurer
910d57b0b0
new helper kvmkeymaplist()
2012-01-09 11:44:52 +01:00
Dietmar Maurer
0f0990f14c
split out run_with_timeout()
2011-12-15 11:25:45 +01:00
Dietmar Maurer
92ea5df863
use correct log function
2011-12-08 11:04:12 +01:00
Dietmar Maurer
643adc8235
implement AbstractMigrate.pm
2011-12-06 08:54:57 +01:00
Dietmar Maurer
4630cb951d
correctly call errfunc inside run_command
2011-12-02 10:28:44 +01:00
Dietmar Maurer
65e1d3fc9c
new helper cmd2string
2011-12-02 06:15:36 +01:00
Dietmar Maurer
a0f855e64c
add liblocale-po-perl to prerequisites
2011-11-29 06:14:43 +01:00
Dietmar Maurer
0ce82909f4
make cli argument parser more flexible
2011-11-23 08:37:27 +01:00
Dietmar Maurer
2de75075b0
update version to 1.0-7
2011-11-09 10:08:19 +01:00
Dietmar Maurer
804b104122
new helper dump_logfile
2011-11-08 08:10:41 +01:00
Dietmar Maurer
63ed950ad4
only set list_param if we pass args
2011-11-08 07:36:11 +01:00
Dietmar Maurer
2b8e0f12c6
fix bug #23 : add gid parameter to chown call
2011-10-27 11:13:23 +02:00
Dietmar Maurer
7514b23af4
use package libstring-shellquote-perl
2011-10-25 13:35:08 +02:00
Dietmar Maurer
e38bcd3597
use Text::ParseWords for split_args
2011-10-25 13:08:09 +02:00
Dietmar Maurer
f912566320
add split_args helper function
2011-10-25 12:18:41 +02:00
Dietmar Maurer
762e322386
add shellquote utility function
2011-10-25 11:36:28 +02:00
Dietmar Maurer
23dc9401bb
introduce '-alist' format
...
This new meta-format is used for list which need to be 0 terminated.
The default '-list' format is now always [,; ] terminated.
2011-10-25 08:36:28 +02:00
Dietmar Maurer
f38995ab14
fix stdin/sdout redirection
2011-10-19 07:29:41 +02:00
Dietmar Maurer
b749019d13
allow to pass single '-' as argument.
2011-10-19 06:22:30 +02:00
Dietmar Maurer
776fbfa8bd
add logfunc callback to run_command
...
logfunc() is called with stdout and stderr.
2011-10-14 10:48:57 +02:00
Dietmar Maurer
75ed54f129
fix regex for active worker file
...
Allow error messages with starting white space.
2011-10-14 10:02:51 +02:00
Dietmar Maurer
aab47b58d4
avoid warning when list_param is undefined
2011-10-14 08:56:55 +02:00
Dietmar Maurer
1d21344cf5
improve get_options (allow argument lists)
...
So far it was possiple to specific lists by using option multiple times.
vzdump --vmid 100 --vmid 101
or
vzdump -vmid 100,101
No we can pass the vm list as arguments (not options)
vzdump 100 101
2011-10-14 08:29:39 +02:00
Dietmar Maurer
1c50a24add
allow input/output redirection in run_command
...
Those changes are needed by new vzdump code.
2011-10-13 13:55:49 +02:00
Dietmar Maurer
710d2994af
overload cmp operator for PVE::Exception
...
So that we can use ($err eq "timeout") like expressions.
2011-10-13 11:14:30 +02:00
Dietmar Maurer
8ba7c72bd1
allow list format in getopts
2011-10-12 12:21:09 +02:00
Dietmar Maurer
d2b0374d48
do not merge comma separated lists with zero separated lists
2011-10-12 11:38:43 +02:00
Dietmar Maurer
2026f4b5b4
add helper for simple commands - handle_simple_cmd()
...
A simple command is a command without sub-command.
2011-10-12 10:27:56 +02:00
Dietmar Maurer
a413a515c5
add PVE::Tools::random_ether_addr()
2011-10-05 09:21:52 +02:00