>The only situation where S3QL creates an object that contains only zeros
>is if you created a file (inside the S3QL file system) that contains
>that many zeros.
I don’t create an object that contains only zeros.
In the beginning of transferred a file that size > max_object_size, S3QL
truncate an object that contains only zeros, and set dirty flag to True in
s3ql.block_cache.truncate() function.
This is only happened in the way that copy&paste a file that size is greater
than max_object_size from win7 by samba.
I want to avoid this problem by the way below, please help me to confirm that
is it OK? it will cause other problems or not?
class CacheEntry(object):
.....
- def truncate(self, size=None):
+ def truncate(self, size=None, dirty_flag=True):
- self.dirty = True
+ self.dirty = dirty_flag
self.fh.truncate(size)
.....
class Operations(llfuse.Operations):
.....
def setattr(self, id_, attr, fields, fh, ctx):
.....
try:
with self.cache.get(id_, last_block) as fh:
- fh.truncate(cutoff)
+ fh.truncate(cutoff,False)
except NoSuchObject as exc:
.....
--
You received this message because you are subscribed to the Google Groups
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.