* src/storage_backend_logical.c: patch from David Lively fixing

small differences of behaviour for 'lvs' and 'vgs' on SLES
Daniel
This commit is contained in:
Daniel Veillard 2008-07-30 08:52:44 +00:00
parent a8f10951d0
commit c05cf3f3e1
3 changed files with 12 additions and 2 deletions

View File

@ -47,6 +47,7 @@ Patches have also been contributed by:
Kaitlin Rupert <kaitlin@linux.vnet.ibm.com>
Evgeniy Sokolov <evg@openvz.org>
John Levon <john.levon@sun.com>
David Lively <dlively@virtualiron.com>
[....send patches to get your name here....]

View File

@ -1,3 +1,8 @@
Wed Jul 30 10:51:12 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/storage_backend_logical.c: patch from David Lively fixing
small differences of behaviour for 'lvs' and 'vgs' on SLES
Wed Jul 30 10:45:41 CEST 2008 Daniel Veillard <veillard@redhat.com>
* qemud/qemud.c: patch from Guido Günther fixing the place where

View File

@ -200,9 +200,11 @@ virStorageBackendLogicalFindLVs(virConnectPtr conn,
* Pull out name & uuid, device, device extent start #, segment size, extent size.
*
* NB can be multiple rows per volume if they have many extents
*
* NB lvs from some distros (e.g. SLES10 SP2) outputs trailing ":" on each line
*/
const char *regexes[] = {
"^\\s*(\\S+):(\\S+):(\\S+)\\((\\S+)\\):(\\S+):(\\S+)\\s*$"
"^\\s*(\\S+):(\\S+):(\\S+)\\((\\S+)\\):(\\S+):([0-9]+):?\\s*$"
};
int vars[] = {
6
@ -351,9 +353,11 @@ virStorageBackendLogicalRefreshPool(virConnectPtr conn,
* 10603200512:4328521728
*
* Pull out size & free
*
* NB vgs from some distros (e.g. SLES10 SP2) outputs trailing ":" on each line
*/
const char *regexes[] = {
"^\\s*(\\S+):(\\S+)\\s*$"
"^\\s*(\\S+):([0-9]+):?\\s*$"
};
int vars[] = {
2