Hello! > You can use ideas from attached file. I eliminated all tell() call and > calculate position itself by adding current line length to some > variable. Patched patchfs list works more well, but file size are bit > smaller than truth. Copyout is ok. Applied. I agree that negative sizes would be much worse. -- Regards, Pavel Roskin