dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: recover lost recording file
From: Linus Nielsen Feltzing (
Date: 2004-10-08 wrote:

> If Rockbox closes the file each time it writes the buffer into the
> file while recording, how much slower would that be? As far as I
> understand it, this problem with a lost recording wouldn't be possible
> anymore then. So how about changing this behaviour, or, if it's slower
> (more hdd uptime), add an option for that.

We did that back in 2003, but we replaced that with the fsync() function
instead, which does the same thing. Unless there is a bug in fsync(),
the recorded file should be up-to-date on disk at all times (except for
the RAM buffer contents of course).

I can't really understand why the file disappeared in this particular case.



Page was last modified "Jan 10 2012" The Rockbox Crew