mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-21 02:50:41 +03:00
If using persistent filter and we're refreshing filters (just like we do for pvcreate now after commit 54685c20fc9dfb155a2e5bc9d8cf5f0aad944305), we can't rely on getting the primary device of the partition from the cache as such device could be already filtered by persistent filter and we get a device cache lookup failure for such device. For example: $ lvm dumpconfig --type diff devices { obtain_device_list_from_udev=0 } $lsblk /dev/sda NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 128M 0 disk `-sda1 8:1 0 127M 0 part $cat /etc/lvm/cache/.cache | grep sda "/dev/sda1", $pvcreate /dev/sda1 dev_is_mpath: failed to get device for 8:1 Physical volume "/dev/sda1" successfully created The problematic part of the code called dev_cache_get_by_devt to get the device for the device number supplied. Then the code used dev_name(dev) to get the name which is then used in check whether there's any mpath on top of this dev... This patch uses sysfs to get the base name for the partition instead, hence avoiding the device cache which is a correct approach here.
This tree contains the LVM2 and device-mapper tools and libraries. For more information about LVM2 read the changelog in the WHATS_NEW file. Installation instructions are in INSTALL. There is no warranty - see COPYING and COPYING.LIB. Tarballs are available from: ftp://sources.redhat.com/pub/lvm2/ The source code is stored in git: http://git.fedorahosted.org/git/lvm2.git git clone git://git.fedorahosted.org/git/lvm2.git Mailing list for general discussion related to LVM2: linux-lvm@redhat.com Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm Mailing lists for LVM2 development, patches and commits: lvm-devel@redhat.com Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm lvm2-commits@lists.fedorahosted.org (Read-only archive of commits) Subscribe from https://fedorahosted.org/mailman/listinfo/lvm2-commits Mailing list for device-mapper development, including kernel patches and multipath-tools: dm-devel@redhat.com Subscribe from https://www.redhat.com/mailman/listinfo/dm-devel The source code repository used until 7th June 2012 is accessible here: http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/?cvsroot=lvm2.
Description
Languages
C
75.5%
Shell
18.7%
Python
2.9%
M4
1%
Makefile
0.8%
Other
1%