Yeela Kaplan has posted comments on this change.
Change subject: Handle spaces in device names using lvm filter
......................................................................
Patch Set 1: (2 inline comments)
....................................................
File vdsm/storage/lvm.py
Line 132: devList.sort()
Line 133: devs = []
Line 134: for dev in devList:
Line 135: if dev.strip():
Line 136: devs.append('\\\\\\\\x20'.join(dev.strip().
Eduardo: Indeed.
Shu Ming: Due to filter rules by lvm in order to recognize a device name with a
space (a space in the device name is encoded in hexa to '\x20') we need the
filter to be with: '\\\\x20'.
Line 137: encode("string_escape").split()))
Line 138: filt = '|'.join(devs)
Line 139: if len(filt) > 0:
Line 140: filt = "'a%" + filt + "%', "
Line 133: devs = []
Line 134: for dev in devList:
Line 135: if dev.strip():
Line 136: devs.append('\\\\\\\\x20'.join(dev.strip().
Line 137: encode("string_escape").split()))
Does not break for trailing spaces due to dev.strip().
Fixed for consecutive spaces in next patch.
Line 138: filt = '|'.join(devs)
Line 139: if len(filt) > 0:
Line 140: filt = "'a%" + filt + "%', "
Line 141:
--
To view, visit http://gerrit.ovirt.org/9191
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1efb6dfd30c0999f14c413fff778213b247a178f
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Eduardo <[email protected]>
Gerrit-Reviewer: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Igor Lvovsky <[email protected]>
Gerrit-Reviewer: Shu Ming <[email protected]>
Gerrit-Reviewer: Yeela Kaplan <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches