mirror of https://gitee.com/openkylin/libvirt.git
* 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:
parent
a8f10951d0
commit
c05cf3f3e1
1
AUTHORS
1
AUTHORS
|
@ -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....]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue