andriybobyr / s3backer

FUSE-based single file backing store via Amazon S3
GNU General Public License v2.0
0 stars 0 forks source link

stats file doesn't seem to update #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It doesn't seem like the stats file updates when it should. On many occasions, 
I've looked at the stats file a few seconds, a few minutes, or even many 
minutes apart and found it to have exactly the same contents as it did before, 
even though there had been much s3backer activity since the last time I looked 
at it.

I noticed that it appears in the filesystem as a file rather than a device. I 
wonder if the kernel or fuse is caching its contents because it knows that 
nothing has written to the file since the last time it was read? If so, then 
perhaps it has to be made a device rather than a file so that it'll get reread 
every time it is opened?

Original issue reported on code.google.com by jikam...@gmail.com on 21 Oct 2010 at 8:13

GoogleCodeExporter commented 8 years ago
Please try the attached patch and see if this helps any.

Original comment by archie.c...@gmail.com on 22 Oct 2010 at 7:51

Attachments:

GoogleCodeExporter commented 8 years ago
I verified this seems to fix the problem. Let me know if you see the same.

Fixed in r442.

Original comment by archie.c...@gmail.com on 22 Oct 2010 at 7:59

GoogleCodeExporter commented 8 years ago

Original comment by archie.c...@gmail.com on 22 Oct 2010 at 8:03

GoogleCodeExporter commented 8 years ago
Yup, that seems to work, thanks.

Original comment by jikam...@gmail.com on 22 Oct 2010 at 8:10