Hi, I'm using TFileStream to save files. It works without issues when writing to my filesystem, but hangs (does not return) when the path is a mounted NFS one.
I must add the user has write permissions on the mounted path, in fact before posting this I've tried creating a text file without using TFileStream and it worked without an issue, so I assume the problem is with TFileStream:
// This works:
AssignFile(f, '/mnt/data_vultr/documents/test.txt');
{$I-}
Rewrite(f);
{$I+}
if IOResult =0 then
begin
System.WriteLn(f, 'aaaa');
System.WriteLn(f, 'bbb');
end;
System.Close(f);
// this doesn't work
lFileStream := TFileStream.Create(lFile, fmCreate);
AMemStream.Position := 0;
lFileStream.CopyFrom(AMemStream,AMemStream.Size);The program is a CGI running on Ubuntu Server 14.04 x64. Lazarus 1.7 compiled from trunk on 2016-05-13 (SVN 52282M) FPC 3.1.1
Regards,
