Ayal Baron has posted comments on this change.

Change subject: Handle spaces in device names using lvm filter
......................................................................


Patch Set 4: (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(dev.strip().encode("string_escape").
non-printable characters in a device name?
Line 137:                                     replace(' ', r'\\\\x20'))
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(dev.strip().encode("string_escape").
Line 137:                                     replace(' ', r'\\\\x20'))
need to check again if we can find a wayt to just replace backslashes
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: 4
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: Mark Wu <[email protected]>
Gerrit-Reviewer: Shu Ming <[email protected]>
Gerrit-Reviewer: Yeela Kaplan <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to