[fpc-pascal] TFileStream.SetSize sometimes fails
nc-gaertnma at netcologne.de
Fri Aug 14 09:32:44 CEST 2009
On Fri, 14 Aug 2009 01:09:27 +0200
Luca Olivetti <luca at ventoso.org> wrote:
> En/na Mattias Gaertner ha escrit:
> > Yes. The code worked pretty well for years on many systems. But
> > you know the story of the ext4 bug. I hope this is not something
> > like that.
> It was not a bug, and if you're doing it on ext4 (and probably xfs)
> it's possible that what you're seeing is a workaround to the problem
Sorry. I know, that it is not a bug from posix pov.
The unexpected behavior of ext4 only happens on system crash. So, I
doubt that this has to do with TFileStream.SetSize.
I was just wondering if there might be another posix compliant behavior
that let TFileStream.SetSize fail on some file systems. That's why I
mentioned the ext4 story.
More information about the fpc-pascal