To summarize a long thread I'd like to propose the following process.
Its based on GIO but handling fails better.
In pseudocode (sorry if it wraps in your mailer) since I'm not sure if
we want to implement it in GIO calls, C library calls or system calls.
See below.
To write a Geany buffer conten
2010/11/6 Dimitar Zhekov :
> On Sat, 6 Nov 2010 21:31:31 +1100
> Lex Trotman wrote:
>
>> On 6 November 2010 20:33, Dimitar Zhekov wrote:
>> >
>> > 1. Open the file for reading and writing.
>>
>> I'm not sure all non-local filesystems support read/write or they
>> support it via local caching whic
Le 06/11/2010 06:28, Lex Trotman a écrit :
> On 6 November 2010 13:30, Colomban Wendling
> wrote:
>> Le 06/11/2010 01:58, Lex Trotman a écrit :
>>> On 6 November 2010 10:43, Colomban Wendling
>>> wrote:
Le 04/11/2010 21:42, Dimitar Zhekov a écrit :
> On Thu, 4 Nov 2010 17:53:47 +
>
Le 06/11/2010 13:45, Dimitar Zhekov a écrit :
> On Sat, 6 Nov 2010 21:31:31 +1100
> Lex Trotman wrote:
>
>> On 6 November 2010 20:33, Dimitar Zhekov wrote:
>>
>>> If not anything else, we should use non-buffered I/O, with fsync(), and
>>> check the result of close() anyway.
>>
>> Yes.
>
> Attach
On Sat, 6 Nov 2010 21:31:31 +1100
Lex Trotman wrote:
> On 6 November 2010 20:33, Dimitar Zhekov wrote:
> >
> > 1. Open the file for reading and writing.
>
> I'm not sure all non-local filesystems support read/write or they
> support it via local caching which isn't safe until flushed to the
> r
On 6 November 2010 20:33, Dimitar Zhekov wrote:
> On Fri, 05 Nov 2010 23:08:57 +0100
> Colomban Wendling wrote:
>
>> Le 05/11/2010 21:33, Dimitar Zhekov a ecrit :
>> > On Fri, 05 Nov 2010 19:50:59 +0100
>> >
>> > 1. Open the file for reading and writing.
I'm not sure all non-local filesystems su
On Fri, 05 Nov 2010 23:08:57 +0100
Colomban Wendling wrote:
> Le 05/11/2010 21:33, Dimitar Zhekov a ecrit :
> > On Fri, 05 Nov 2010 19:50:59 +0100
> >
> > 1. Open the file for reading and writing.
> > 2. If the new data is longer, append the extra part only (thus claiming
> > the required disk s