Dietmar Maurer
2f13cbb5a6
bump version to 3.0-10
...
new helper next_spice_port()
2013-12-09 13:18:40 +01:00
Dietmar Maurer
eb7047f674
avoid unnecessarry delay by using usleep
2013-12-09 13:16:05 +01:00
Dietmar Maurer
19cec2309d
fix upid parser for long uptimes
2013-11-08 08:15:01 +01:00
Dietmar Maurer
602ec0cd71
export regular expressions for IPv4 and IPv6 addresses
...
The regular expression in Regexp::IPv6 is very difficult to read, so
we simply define our own here.
2013-10-30 12:38:30 +01:00
Dietmar Maurer
5a5ca434b2
do not use 'intl' variant for en an gb keyboard layouts
...
Most users are confused and prefer standard keymap without dead keys.
2013-10-23 06:54:35 +02:00
Dietmar Maurer
c36f332e32
use warnings everywhere.
2013-10-01 13:19:38 +02:00
Dietmar Maurer
59b3f56336
fix bug #381 : use persistent reservation file for ports
2013-05-13 07:21:56 +02:00
Dietmar Maurer
493004a2b9
implement shared file locks
...
bump version to 3.0-5
2013-04-25 11:35:35 +02:00
Dietmar Maurer
cc9121d394
upid_read_status: scan 4096 bytes to extract status
...
Else we get 'unexpected status' if error message is longer than
1024 bytes (which happens quite often).
2013-03-15 10:18:54 +01:00
Dietmar Maurer
a417477c43
implement afterfork callback
2012-12-10 12:50:38 +01:00
Dietmar Maurer
b5d12b0845
fix bug #273 : retry flock if it fails with EINTR
2012-10-31 08:22:40 +01:00
Dietmar Maurer
e0cabd2caa
fix bug #264 : use option pipefail for shell commands
...
Normal unix shell pipe return the exits status of the last command.
If pipefail is enabled, the pipeline's return status is the value of
the last (rightmost) command to exit with a non-zero status, or zero
if all commands exit successfully.
2012-10-29 09:45:50 +01:00
Dietmar Maurer
ec6d95b45d
new helper wait_for_vnc_port()
2012-10-24 08:56:18 +02:00
Dietmar Maurer
88955a2e69
file_read_firstline: avoid warning with empty files
2012-10-02 08:05:33 +02:00
Dietmar Maurer
eb9e24df41
fix run_command: restore umask correctly
2012-09-26 13:18:19 +02:00
Dietmar Maurer
3702f038a2
use DNS compatible regex in upid parser
2012-04-20 08:33:21 +02:00
Dietmar Maurer
c10cc11237
add Turkish keyboard mappings
2012-04-11 08:35:47 +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
568ba6a471
use Digest::SHA instead of Digest::SHA1
2012-03-20 11:21:38 +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
adbc988db3
cleanup error message from usermod command
2012-03-01 12:43:15 +01:00
Dietmar Maurer
9934cd0bd1
add Swedish keymap
2012-02-27 09:47:07 +01:00
Dietmar Maurer
3250f5c799
allow to pass undefined value to template_replace
2012-01-26 06:56:56 +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
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
804b104122
new helper dump_logfile
2011-11-08 08:10:41 +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
f38995ab14
fix stdin/sdout redirection
2011-10-19 07:29:41 +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
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
d2b0374d48
do not merge comma separated lists with zero separated lists
2011-10-12 11:38:43 +02:00
Dietmar Maurer
a413a515c5
add PVE::Tools::random_ether_addr()
2011-10-05 09:21:52 +02:00
Dietmar Maurer
329351e200
Overwite LC_ALL instead of LANG
...
This also works when user sets LC_ environment variables.
2011-08-30 07:26:51 +02:00
Dietmar Maurer
e143e9d86b
imported from svn 'pve-common/trunk'
2011-08-23 07:31:48 +02:00