mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
e7bde8d319
https://bugzilla.redhat.com/show_bug.cgi?id=1265694 Commit id '020135dc' didn't quite get the algorithm correct when a device mapper source ended with a non numeric value (e.g. ends with an alphabet value). This patch modifies the 'part_separator' logic to add the "p" separator to the attempted target path name only when specified as part_separator='yes'. For a source name that already ends with a number, the logic doesn't change as the part separator would need to be there. For a source name that ends with something other than a number, this allows the possibility that a "p" separator can be added. The default for one of these source devices is to not add the separator. The key for device mapper and the need for a partition separator "p" is the presence of a number in the last character of the device name link in /dev/mapper. A name such as "/dev/mapper/mpatha1" would generate a "/dev/mapper/mpatha1p1" partition, while "/dev/mapper/mpatha" would generate partition "/dev/mapper/mpatha1". Similarly for a device mapper entry not using friendly names or an alias, a device such as "/dev/mapper/3600a0b80005b10ca00005ad656fd8d93" would generate a paritition "/dev/mapper/3600a0b80005b10ca00005ad656fd8d93p1", while a device such as "/dev/mapper/3600a0b80005b10ca00005e115729093f" would generate a partition "/dev/mapper/3600a0b80005b10ca00005e115729093f1". The long number is the WWID of the device. It's also possible to assign an alias for a device mapper entry, that alias follows the same rules with respect to ending with a number or not when adding a "p" to create the target device path. |
||
---|---|---|
.. | ||
api_extension | ||
devhelp | ||
html | ||
internals | ||
schemas | ||
32favicon.png | ||
404.html.in | ||
acl.html.in | ||
aclpolkit.html.in | ||
api_extension.html.in | ||
api.html.in | ||
apibuild.py | ||
apps.html.in | ||
archdomain.html.in | ||
architecture.fig | ||
architecture.gif | ||
architecture.html.in | ||
archnetwork.html.in | ||
archnode.html.in | ||
archstorage.html.in | ||
auditlog.html.in | ||
auth.html.in | ||
bindings.html.in | ||
bugs.html.in | ||
cgroups.html.in | ||
compiling.html.in | ||
contact.html.in | ||
csharp.html.in | ||
deployment.html.in | ||
devguide.html.in | ||
docs.html.in | ||
downloads.html.in | ||
drivers.html.in | ||
drvbhyve.html.in | ||
drvesx.html.in | ||
drvhyperv.html.in | ||
drvlxc.html.in | ||
drvopenvz.html.in | ||
drvphyp.html.in | ||
drvqemu.html.in | ||
drvremote.html.in | ||
drvtest.html.in | ||
drvuml.html.in | ||
drvvbox.html.in | ||
drvvirtuozzo.html.in | ||
drvvmware.html.in | ||
drvxen.html.in | ||
errors.html.in | ||
firewall.html.in | ||
format.html.in | ||
formatcaps.html.in | ||
formatdomain.html.in | ||
formatdomaincaps.html.in | ||
formatnetwork.html.in | ||
formatnode.html.in | ||
formatnwfilter.html.in | ||
formatsecret.html.in | ||
formatsnapshot.html.in | ||
formatstorage.html.in | ||
formatstorageencryption.html.in | ||
genaclperms.pl | ||
generic.css | ||
goals.html.in | ||
governance.html.in | ||
hacking1.xsl | ||
hacking2.xsl | ||
hacking.html.in | ||
hooks.html.in | ||
hvsupport.pl | ||
index.html.in | ||
index.py | ||
internals.html.in | ||
intro.html.in | ||
java.html.in | ||
library.xen | ||
libvirt-daemon-arch.fig | ||
libvirt-daemon-arch.png | ||
libvirt-driver-arch.fig | ||
libvirt-driver-arch.png | ||
libvirt-header-bg.png | ||
libvirt-header-logo.png | ||
libvirt-net-logical.fig | ||
libvirt-net-logical.png | ||
libvirt-net-physical.fig | ||
libvirt-net-physical.png | ||
libvirt-object-model.fig | ||
libvirt-object-model.png | ||
libvirt-virConnect-example.fig | ||
libvirt-virConnect-example.png | ||
libvirt.css | ||
libvirtLogo404.png | ||
libvirtLogo.png | ||
locking-lockd.html.in | ||
locking-sanlock.html.in | ||
locking.html.in | ||
logging.html.in | ||
madeWith.png | ||
main.css | ||
Makefile.am | ||
migration-managed-direct.fig | ||
migration-managed-direct.png | ||
migration-managed-p2p.fig | ||
migration-managed-p2p.png | ||
migration-native.fig | ||
migration-native.png | ||
migration-tunnel.fig | ||
migration-tunnel.png | ||
migration-unmanaged-direct.fig | ||
migration-unmanaged-direct.png | ||
migration.html.in | ||
newapi.xsl | ||
news-2005.html.in | ||
news-2006.html.in | ||
news-2007.html.in | ||
news-2008.html.in | ||
news-2009.html.in | ||
news-2010.html.in | ||
news-2011.html.in | ||
news-2012.html.in | ||
news-2013.html.in | ||
news-2014.html.in | ||
news-2015.html.in | ||
news.html.in | ||
news.xsl | ||
node.fig | ||
node.gif | ||
nss.html.in | ||
page.xsl | ||
pending.html.in | ||
php.html.in | ||
python.html.in | ||
relatedlinks.html.in | ||
remote.html.in | ||
search.php.code.in | ||
search.php.in | ||
secureusage.html.in | ||
securityprocess.html.in | ||
site.xsl | ||
sitemap.html.in | ||
storage.html.in | ||
structures.fig | ||
subsite.xsl | ||
testapi.html.in | ||
testsuites.html.in | ||
testtck.html.in | ||
todo.cfg-example | ||
todo.pl | ||
uri.html.in | ||
virshcmdref.html.in | ||
windows.html.in | ||
wrapstring.xsl |