file.read() doesn't read the whole file
tjreedy at udel.edu
Fri Mar 20 20:30:14 CET 2009
Sreejith K wrote:
> I'm using the above codes in a pthon-fuse's file class's read
> function. The offset and length are 0 and 4096 respectively for my
> test inputs. When I open a file and read the 4096 bytes from offset,
> only a few lines are printed, not the whole file. Actually the file is
> only a few bytes. But when I tried reading from the Interactive mode
> of python it gave the whole file.
> Is there any problem using read() method in fuse-python ?
> Also statements like break and continue behaves weirdly in fuse
> functions. Any help is appreciated....
I had never heard of fuse until today. I get the impression that
working with fuse is not the same as working with the stock os
filesystem, so you might have mentioned this from the beginning;-). I
suggest you direct these questions to python-fuse and fuse-python folk.
More information about the Python-list