Sergey Gotliv has uploaded a new change for review.
Change subject: getFileList() filters files in case incensitive manner
......................................................................
getFileList() filters files in case incensitive manner
Currently Engine is using getIsoList() and getFloppyList() APIs to
retrieve the list of iso and floppy files respectively. Both these APIs
are working in case incensitive manner but don't provide file
statistics. Changing getFileList(), which is already providing full
information about files, to be case incensitive will make it adoption
easier.
Change-Id: I550827c7b4c7e11fe09e41745fcc9d91249c6c23
Signed-off-by: Sergey Gotliv <sgotliv(a)redhat.com>
---
M vdsm/storage/hsm.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/76/20476/1
diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index 4579763..e0423c4 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -2245,7 +2245,7 @@
dom = sdCache.produce(sdUUID=sdUUID)
if not dom.isISO or dom.getStorageType() != sd.NFS_DOMAIN:
raise se.GetFileListError(sdUUID)
- filesDict = dom.getFileList(pattern=pattern, caseSensitive=True)
+ filesDict = dom.getFileList(pattern=pattern, caseSensitive=False)
return {'files': filesDict}
@public
--
To view, visit
http://gerrit.ovirt.org/20476
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I550827c7b4c7e11fe09e41745fcc9d91249c6c23
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Sergey Gotliv <sgotliv(a)redhat.com>