pve-common.git
9 years agoupdate version to 1.0-7
Dietmar Maurer [Wed, 9 Nov 2011 09:08:19 +0000 (10:08 +0100)]
update version to 1.0-7

9 years agonew helper dump_logfile
Dietmar Maurer [Tue, 8 Nov 2011 06:37:12 +0000 (07:37 +0100)]
new helper dump_logfile

9 years agoonly set list_param if we pass args
Dietmar Maurer [Tue, 8 Nov 2011 06:36:11 +0000 (07:36 +0100)]
only set list_param if we pass args

9 years agofix bug #23: add gid parameter to chown call
Dietmar Maurer [Thu, 27 Oct 2011 09:13:23 +0000 (11:13 +0200)]
fix bug #23: add gid parameter to chown call

9 years agouse package libstring-shellquote-perl
Dietmar Maurer [Tue, 25 Oct 2011 11:35:08 +0000 (13:35 +0200)]
use package libstring-shellquote-perl

9 years agouse Text::ParseWords for split_args
Dietmar Maurer [Tue, 25 Oct 2011 11:08:09 +0000 (13:08 +0200)]
use Text::ParseWords for split_args

9 years agoadd split_args helper function
Dietmar Maurer [Tue, 25 Oct 2011 10:18:41 +0000 (12:18 +0200)]
add split_args helper function

9 years agoadd shellquote utility function
Dietmar Maurer [Tue, 25 Oct 2011 09:36:28 +0000 (11:36 +0200)]
add shellquote utility function

9 years agointroduce '-alist' format
Dietmar Maurer [Tue, 25 Oct 2011 06:36:28 +0000 (08:36 +0200)]
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.

9 years agofix stdin/sdout redirection
Dietmar Maurer [Wed, 19 Oct 2011 05:29:41 +0000 (07:29 +0200)]
fix stdin/sdout redirection

9 years agoallow to pass single '-' as argument.
Dietmar Maurer [Wed, 19 Oct 2011 04:22:30 +0000 (06:22 +0200)]
allow to pass single '-' as argument.

9 years agoadd logfunc callback to run_command
Dietmar Maurer [Fri, 14 Oct 2011 08:48:57 +0000 (10:48 +0200)]
add logfunc callback to run_command

logfunc() is called with stdout and stderr.

9 years agofix regex for active worker file
Dietmar Maurer [Fri, 14 Oct 2011 08:02:51 +0000 (10:02 +0200)]
fix regex for active worker file

Allow error messages with starting white space.

9 years agoavoid warning when list_param is undefined
Dietmar Maurer [Fri, 14 Oct 2011 06:56:55 +0000 (08:56 +0200)]
avoid warning when list_param is undefined

9 years agoimprove get_options (allow argument lists)
Dietmar Maurer [Fri, 14 Oct 2011 06:29:39 +0000 (08:29 +0200)]
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

9 years agoallow input/output redirection in run_command
Dietmar Maurer [Thu, 13 Oct 2011 11:55:49 +0000 (13:55 +0200)]
allow input/output redirection in run_command

Those changes are needed by new vzdump code.

9 years agooverload cmp operator for PVE::Exception
Dietmar Maurer [Thu, 13 Oct 2011 09:14:30 +0000 (11:14 +0200)]
overload cmp operator for PVE::Exception

So that we can use ($err eq "timeout") like expressions.

9 years agoallow list format in getopts
Dietmar Maurer [Wed, 12 Oct 2011 09:40:45 +0000 (11:40 +0200)]
allow list format in getopts

9 years agodo not merge comma separated lists with zero separated lists
Dietmar Maurer [Wed, 12 Oct 2011 09:38:43 +0000 (11:38 +0200)]
do not merge comma separated lists with zero separated lists

9 years agoadd helper for simple commands - handle_simple_cmd()
Dietmar Maurer [Wed, 12 Oct 2011 08:27:56 +0000 (10:27 +0200)]
add helper for simple commands - handle_simple_cmd()

A simple command is a command without sub-command.

9 years agoadd PVE::Tools::random_ether_addr()
Dietmar Maurer [Wed, 5 Oct 2011 07:21:52 +0000 (09:21 +0200)]
add PVE::Tools::random_ether_addr()

9 years agoadded libtool and dietlibc-dev to prerequisites
Dietmar Maurer [Thu, 29 Sep 2011 11:33:45 +0000 (13:33 +0200)]
added libtool and dietlibc-dev to prerequisites

9 years agoadd vzctl to list of required packages
Dietmar Maurer [Thu, 29 Sep 2011 11:18:10 +0000 (13:18 +0200)]
add vzctl to list of required packages

9 years agoadd hint to lvm.git
Dietmar Maurer [Fri, 23 Sep 2011 05:41:34 +0000 (07:41 +0200)]
add hint to lvm.git

We compile our own lvm packages

9 years agoAllow to use check_process_running() without $pstart parameter.
Dietmar Maurer [Thu, 15 Sep 2011 04:56:07 +0000 (06:56 +0200)]
Allow to use check_process_running() without $pstart parameter.

9 years agoimplement a clean way to read /prod/[pid]/stat
Dietmar Maurer [Wed, 14 Sep 2011 05:51:19 +0000 (07:51 +0200)]
implement a clean way to read /prod/[pid]/stat

Added the method check_process_running() to check if a process
is running.

9 years agoreturn user_hz from POSIX::_SC_CLK_TCK
Dietmar Maurer [Mon, 12 Sep 2011 08:50:13 +0000 (10:50 +0200)]
return user_hz from POSIX::_SC_CLK_TCK

and remove that jiffie code (which is totally wrong)

9 years agoadd reference to fence-agents-pve.git
Dietmar Maurer [Tue, 30 Aug 2011 08:48:43 +0000 (10:48 +0200)]
add reference to fence-agents-pve.git

9 years agoOverwite LC_ALL instead of LANG
Dietmar Maurer [Tue, 30 Aug 2011 05:26:51 +0000 (07:26 +0200)]
Overwite LC_ALL instead of LANG

This also works when user sets LC_ environment variables.

9 years agoadd .gitignore file, remove svn leftover
Dietmar Maurer [Wed, 24 Aug 2011 07:47:54 +0000 (09:47 +0200)]
add .gitignore file, remove svn leftover

9 years agoremove Changelog - we no have git
Dietmar Maurer [Wed, 24 Aug 2011 07:44:50 +0000 (09:44 +0200)]
remove Changelog - we no have git

9 years agoupdate documentation (we now use git instead of svn)
Dietmar Maurer [Tue, 23 Aug 2011 09:06:30 +0000 (11:06 +0200)]
update documentation (we now use git instead of svn)

9 years agoimported from svn 'pve-common/trunk'
Dietmar Maurer [Tue, 23 Aug 2011 05:31:48 +0000 (07:31 +0200)]
imported from svn 'pve-common/trunk'