master - filters: drop extra slash from sysfs path
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=08d6d81cc24a3c3b780fe25ed49aefc9a9b61586 Commit: 08d6d81cc24a3c3b780fe25ed49aefc9a9b61586 Parent: 4c1f281b43175e69a73fcc59a9142fd374e8b70c Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Nov 21 17:50:12 2013 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Nov 22 20:53:31 2013 +0100
filters: drop extra slash from sysfs path
Sysfs filter was using '/sys//class/block' with double '//' inside. Remove this extra '/'.
Also simplify code around and use loop to try those paths.
--- WHATS_NEW | 1 + lib/filters/filter-sysfs.c | 109 +++++++++++++++++++++---------------------- 2 files changed, 54 insertions(+), 56 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.105 - ===================================== + Drop extra unneeded '/' when scanning sysfs directory. Fix undef value if skipped clustered VG ignored for toollib PV seg. (2.02.103) liblvm/python API Add ability to validate VG/LV names. liblvm/python API Add ability to create PV with arguments.
lib/filters/filter-sysfs.c +53 -56
117 lines not on this page · raw message