|
Rockbox mail archiveSubject: Re: recover lost recording fileRe: recover lost recording file
From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Fri, 08 Oct 2004 14:45:53 +0200 uwe.freese_at_gmx.de 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. Linus _______________________________________________ http://cool.haxx.se/mailman/listinfo/rockbox Received on 2004-10-08 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |