libvirt/src/storage
Serge E. Hallyn 30f555c6a8 lvm storage backend: handle command_names=1 in lvm.conf
If the regexes supported (?:pvs)?, then we could handle this by
optionally matching but not returning the initial command name.  But it
doesn't.  So add a new char* argument to
virStorageBackendRunProgRegex().  If that argument is NULL then we act
as usual.  Otherwise, if the string at that argument is found at the
start of a returned line, we drop that before running the regex.

With this patch, virt-manager shows me lvs with command_names 1 or 0.

The definitions of PVS_BASE etc may want to be moved into the configure
scripts (though given how PVS is found, IIUC that could only happen if
pvs was a link to pvs_real), but in any case no sense dealing with that
until we're sure this is an ok way to handle it.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
2011-09-30 15:17:44 -06:00
..
parthelper.c Fix parted sector size assumption 2011-09-01 10:46:31 +01:00
storage_backend_disk.c storage: Ensure the device path exists before refreshing disk pool 2011-09-20 11:15:05 +08:00
storage_backend_disk.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_fs.c lvm storage backend: handle command_names=1 in lvm.conf 2011-09-30 15:17:44 -06:00
storage_backend_fs.h build: storage: Conditionaly compiled structure caused build fail on OSX 2011-09-16 21:03:50 +08:00
storage_backend_iscsi.c lvm storage backend: handle command_names=1 in lvm.conf 2011-09-30 15:17:44 -06:00
storage_backend_iscsi.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_logical.c lvm storage backend: handle command_names=1 in lvm.conf 2011-09-30 15:17:44 -06:00
storage_backend_logical.h Fix two out-of-date comments in LVM backend 2011-04-17 08:37:31 +02:00
storage_backend_mpath.c Avoid using "devname" as an identifier. 2011-09-16 20:49:04 +08:00
storage_backend_mpath.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_scsi.c build: rename files.h to virfile.h 2011-07-21 10:34:51 -06:00
storage_backend_scsi.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend.c lvm storage backend: handle command_names=1 in lvm.conf 2011-09-30 15:17:44 -06:00
storage_backend.h lvm storage backend: handle command_names=1 in lvm.conf 2011-09-30 15:17:44 -06:00
storage_driver.c storage: Do not break the whole vol lookup process in the middle 2011-09-27 08:38:12 +08:00
storage_driver.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00