[PATCH] Cache EF-PNN, EF-OPL sim files on disk.
andrzej zaborowski
balrogg at gmail.com
Sat Jul 18 04:32:38 PDT 2009
2009/7/18 Denis Kenzior <denkenz at gmail.com>:
> However, not all files can be updated by the user. Namely files with the 'ADM'
> for UPDATE access condition. The only way they can be changed is at a service
> center.
>
> What do you think of transparently caching only such files? This would include
> the ones we're really interested in caching anyway, namely EFspn, EFpnn,
> EFopl, EFust, etc.
True, I was going to add code or a TODO in ofono_sim_write() to
invalidate cache but it's a good point about updating outside ofono
control. I now added a parameter to ofono_sim_read() to indicate that
a file can be cached on disk, making it a little less transparent. In
previous version I had separate entry points for cached read.
>
> If we decide to do this, we should store them in /var/lib/ instead of
> /var/cache, since these files will be stored semi-permanently.
Ok, changed. There's also a standard path /var/state, I don't know if
it's better or worse.
I should note that the cached reads can change the callback order
because they will skip simop_q queue in sim.c.
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Cache-EF-PNN-EF-OPL-sim-files-on-disk.patch
Type: application/octet-stream
Size: 11124 bytes
Desc: not available
URL: <http://lists.ofono.org/pipermail/ofono/attachments/20090718/1c2d870c/attachment.obj>
More information about the ofono
mailing list