5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2024-12-25 05:33:49 +03:00
Commit Graph

828 Commits

Author SHA1 Message Date
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
Dietmar Maurer
67799787db added libtool and dietlibc-dev to prerequisites 2011-09-29 13:33:45 +02:00
Dietmar Maurer
b2b9ba38e3 add vzctl to list of required packages 2011-09-29 13:18:10 +02:00
Dietmar Maurer
56d42b762d add hint to lvm.git
We compile our own lvm packages
2011-09-23 07:41:34 +02:00
Dietmar Maurer
5399d4224d Allow to use check_process_running() without $pstart parameter. 2011-09-15 06:56:07 +02:00
Dietmar Maurer
5157a3a246 implement a clean way to read /prod/[pid]/stat
Added the method check_process_running() to check if a process
is running.
2011-09-14 07:51:19 +02:00
Dietmar Maurer
8104dfe38b return user_hz from POSIX::_SC_CLK_TCK
and remove that jiffie code (which is totally wrong)
2011-09-12 10:50:13 +02:00
Dietmar Maurer
d232e4b61b add reference to fence-agents-pve.git 2011-08-30 10:48:43 +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
d405237d0c add .gitignore file, remove svn leftover 2011-08-24 09:47:54 +02:00
Dietmar Maurer
e1876d3357 remove Changelog - we no have git 2011-08-24 09:44:50 +02:00
Dietmar Maurer
7da024b1c9 update documentation (we now use git instead of svn) 2011-08-23 11:06:30 +02:00
Dietmar Maurer
e143e9d86b imported from svn 'pve-common/trunk' 2011-08-23 07:31:48 +02:00