libvirt/src/storage
Osier Yang d26b73ca2b storage: Skips backingStore of virtual snapshot lv
lvs outputs "[$lvname_vorigin]" for the virtual snapshot lv
(created with "--virtualsize"), and the original device pointed
by "$lvname_vorigin" is just for lvm internal use, one should
never use it.

Per lvm's nameing rules, "[" is not valid as part of the vg/lv name.
(man 8 lvm).

<quote>
VALID NAMES
The following characters are valid for VG and LV names: a-z A-Z 0-9 + _
. -

VG and LV names cannot begin with a hyphen.   There  are  also  various
reserved  names that are used internally by lvm that can not be used as
LV or VG names.  A VG cannot be called anything that exists in /dev/ at
the time of creation, nor can it be called '.' or '..'.  A LV cannot be
called '.' '..' 'snapshot' or 'pvmove'. The LV name may also  not  con‐
tain the strings '_mlog' or '_mimage'
</quote>

So we can skip the set the lv's backingStore by checking if the name
begins with a "[".
2011-11-21 11:26:54 +08:00
..
parthelper.c Fix parted sector size assumption 2011-09-01 10:46:31 +01:00
storage_backend_disk.c storage: forbid rebuilding existing disk storage pools 2011-11-14 18:19:40 +01:00
storage_backend_disk.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_fs.c storage: make previous leak less likely to regress 2011-10-24 19:42:49 -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 build: drop useless dirent.h includes 2011-11-11 14:12:37 -07:00
storage_backend_iscsi.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_backend_logical.c storage: Skips backingStore of virtual snapshot lv 2011-11-21 11:26:54 +08: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 build: drop useless dirent.h includes 2011-11-11 14:12:37 -07: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 storage: avoid null deref on qemu-img failure 2011-10-26 10:58:00 -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