turned compression off (not working) and tweaked some values trying to make file access more efficient
This commit is contained in:
parent
d0ac89b622
commit
0c76055222
5
main.py
5
main.py
@ -298,7 +298,7 @@ class IotaFS():
|
|||||||
self.putFile(self, file, new)
|
self.putFile(self, file, new)
|
||||||
|
|
||||||
class IotaFS_Fuse(LoggingMixIn, Operations):
|
class IotaFS_Fuse(LoggingMixIn, Operations):
|
||||||
def __init__(self, token, fileCompression=True):
|
def __init__(self, token, fileCompression=False):
|
||||||
self.fs = IotaFS(token, fileCompression=fileCompression)
|
self.fs = IotaFS(token, fileCompression=fileCompression)
|
||||||
|
|
||||||
def getSubtree(self, path):
|
def getSubtree(self, path):
|
||||||
@ -367,7 +367,8 @@ class IotaFS_Fuse(LoggingMixIn, Operations):
|
|||||||
st['st_mtime'] = 0 #last modified time in seconds
|
st['st_mtime'] = 0 #last modified time in seconds
|
||||||
st['st_ctime'] = 0 # very old file
|
st['st_ctime'] = 0 # very old file
|
||||||
# TODO: Actuall real value
|
# TODO: Actuall real value
|
||||||
block_size = 512
|
# I think, when I put it like this, we executes copies as one write and not multiple (which would be stupid with my implementation)
|
||||||
|
block_size = 1024*1024*1024
|
||||||
st['st_blocks'] = (int) ((st['st_size'] + block_size-1) / block_size)
|
st['st_blocks'] = (int) ((st['st_size'] + block_size-1) / block_size)
|
||||||
return st
|
return st
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user