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

Rockbox mail archive

Subject: disk write testing

disk write testing

From: Greg Haerr <>
Date: Fri, 8 Nov 2002 07:51:54 -0700

    I've got a buffer-cached version of the fat32 disk working,
caching for the time being only data sectors (currently it's just
modified file.c, not fat.c for testing) I hadn't quite realized what a great
job Linus did optimizing the routines for extremely fast
sequential reading and writing, and my original design didn't
handle that...

Anyways, another question: currently, the creat() call
does an open(...,O_WRONLY), lseeks are disallowed,
and the fat chain is truncated at close time past the
last cluster written. Do we want to make a distinction for
the new write code so that creat() and open(...,O_WRONLY)
act differently, that is, open(...,O_WRONLY) allows
seeking and appending to end-of-file? This would allow logfiles,
etc to be written, which can't be handled now.


Received on 2002-11-08

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy