Richard,

I appreciate the reference. I am trying to replace a method based on the 
implementation you suggested since we discovered that the SQLite DB doesn't 
take up even a full 5 MB on our system so we are trying to reclaim the extra 
space on the flash chip for other features. 

Andrew Beal

Email: ab...@whoi.edu

-----Original Message-----
From: Richard Hipp [mailto:d...@sqlite.org] 
Sent: Monday, April 07, 2014 10:06 AM
To: General Discussion of SQLite Database
Subject: Re: [sqlite] SQLite VFS for Chan FatFS

On Mon, Apr 7, 2014 at 9:52 AM, Andrew Beal <ab...@whoi.edu> wrote:

> Hey All,
>
> Does anyone have an example of a VFS for use with Chan FatFS or Petit 
> FatFS?
>
> Ref: http://elm-chan.org/fsw/ff/00index_e.html
>
>
Just glaceing at the interface spec, it appears that Petit FatFS only allows a 
single file to be open at once. That isn't sufficient for SQLite (unless you 
specify PRAGMA journal_mode=OFF or journal_mode=MEMORY) so I don't think that 
will work for you.  But an interface to Chan FatFS seems easily doable.

But have you considered using the "test_onefile.c" VFS (
http://www.sqlite.org/src/artifact/0396f220561f3b4e) that writes directly to 
persistent media, without any intervening filesystem?  Would that VFS 
accomplish what you want?

--
D. Richard Hipp
d...@sqlite.org

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to