[ARVADOS] created: b27fe91e18bec8df031e4c8bf87f4da293d7b733

git at public.curoverse.com git at public.curoverse.com
Fri Sep 26 10:54:26 EDT 2014


        at  b27fe91e18bec8df031e4c8bf87f4da293d7b733 (commit)


commit b27fe91e18bec8df031e4c8bf87f4da293d7b733
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Fri Sep 26 10:53:42 2014 -0400

    3871: Encode/decode file and directory names to UTF-8

diff --git a/services/fuse/arvados_fuse/__init__.py b/services/fuse/arvados_fuse/__init__.py
index e40b88c..e11d25f 100644
--- a/services/fuse/arvados_fuse/__init__.py
+++ b/services/fuse/arvados_fuse/__init__.py
@@ -785,6 +785,7 @@ class Operations(llfuse.Operations):
         return entry
 
     def lookup(self, parent_inode, name):
+        name = unicode(name, 'utf-8')
         _logger.debug("arv-mount lookup: parent_inode %i name %s",
                       parent_inode, name)
         inode = None
@@ -882,7 +883,7 @@ class Operations(llfuse.Operations):
         e = off
         while e < len(handle.entry):
             if handle.entry[e][1].inode in self.inodes:
-                yield (handle.entry[e][0], self.getattr(handle.entry[e][1].inode), e+1)
+                yield (handle.entry[e][0].encode('utf-8'), self.getattr(handle.entry[e][1].inode), e+1)
             e += 1
 
     def releasedir(self, fh):

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list