X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/348ef77de2aac95cdaff388da9602362ae269126..6d1c41d6fd83824669cd1a6d714ea6da1ae7ab4c:/services/fuse/arvados_fuse/fusedir.py diff --git a/services/fuse/arvados_fuse/fusedir.py b/services/fuse/arvados_fuse/fusedir.py index bea7ed18c4..8faf01cb6c 100644 --- a/services/fuse/arvados_fuse/fusedir.py +++ b/services/fuse/arvados_fuse/fusedir.py @@ -26,7 +26,7 @@ _logger = logging.getLogger('arvados.arvados_fuse') # Match any character which FUSE or Linux cannot accommodate as part # of a filename. (If present in a collection filename, they will # appear as underscores in the fuse mount.) -_disallowed_filename_characters = re.compile('[\x00/]') +_disallowed_filename_characters = re.compile(r'[\x00/]') class Directory(FreshBase): @@ -529,14 +529,11 @@ class CollectionDirectory(CollectionDirectoryBase): if uuid_pattern.match(self.collection_locator): coll_reader = arvados.collection.Collection( self.collection_locator, self.api, self.api.keep, - num_retries=self.num_retries, - get_threads=(self.api.keep.block_cache.cache_max // 64 * 1024 * 1024) ) + num_retries=self.num_retries) else: coll_reader = arvados.collection.CollectionReader( self.collection_locator, self.api, self.api.keep, - num_retries=self.num_retries, - get_threads=(self.api.keep.block_cache.cache_max // 64 * 1024 * 1024) - ) + num_retries=self.num_retries) new_collection_record = coll_reader.api_response() or {} # If the Collection only exists in Keep, there will be no API # response. Fill in the fields we need.