Re: [PATCH 2/4] Prevent /sys/class/block/mapper!vg*-lv* lookups.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/20/2011 01:05 AM, David Cantrell wrote:
I was hitting this today.  The /dev/mapper/vg*-lv* names were getting
translated to /sys/class/block/mapper!vg*-lv*.
---

get_sysfs_path_by_name() will not work for the named aliases of device-mapper devices. There are no /syc/class/block/mapper/vg*-lv* files, there are only

/sys/class/block/dm-* files.

You can take a look at storage/formats/__init__.py at how we call get_sysfs_path_by_name(), we try to get the real device node from the dm name using dm_node_from_name() first.

There should be an assert in get_sysfs_path_by_name() stating that /dev/mapper/* parameters are not passed in.

Ales

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux