andrinux / fusecompress

GNU General Public License v2.0
0 stars 0 forks source link

seek to end triggers decompression #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Some programs open a file and then seek to the end to determine the file
size. If you do that on a file who's size is not a multiple of the page
size, FUSE will do a read(!) on the last few bytes. There is no way to
determine whether this is a valid read or just FUSE being stupid, so we
have to decompress the entire file, which takes quite some time for, say,
DVD images...

(If you want to work around this in your program, use stat() instead, which
is probably a good idea anyway.)

Original issue reported on code.google.com by ulrich.h...@gmail.com on 31 Aug 2008 at 8:59