Denis Kenzior
50c3d98ff3
simfs: Fix leaking of the voicecall context
...
When we're shutting down all atoms are removed and the voicecall context
does not have a chance to be freed. Make sure simfs frees it.
2011-02-10 00:27:01 -06:00
Denis Kenzior
b97399ce12
simfs: Add function to notify all file watches
2011-02-07 13:35:41 -06:00
Denis Kenzior
417b445eaf
simfs: Add file changed watches to simfs contexts
2011-02-07 12:25:46 -06:00
Andrzej Zaborowski
a7a0cb1ed0
simfs: implement ofono_sim_context api
2011-02-03 13:13:37 -06:00
Andrzej Zaborowski
0cde90ff8e
simfs: Use cache for sim_fs_read_info requests too.
...
There seems to be no reason that the fileinfo is cached for file
read or block read requests but not info_only requests, so move
code around to fix this. O_RDWR is changed to O_WRONLY for the
cache file because the file is not being read in case of cache miss.
2011-02-03 11:01:40 -06:00
Aki Niemi
6ed9fe85a5
simfs: Add NULL check
2011-02-02 11:03:21 +02:00
Andrzej Zaborowski
f2c73f0a52
simfs: Return from sim_fs_op_check_cached on error
2011-01-29 18:39:37 +01:00
Andrzej Zaborowski
882c0c2761
simfs: Reset op_source in simfs_read_block
...
If the block is not in cache or if this is the last block of a last
op in the queue, then fs->op_source might be left with the wrong
value.
2011-01-29 18:39:37 +01:00
Andrzej Zaborowski
2cec48fb1c
simfs: Add cache flushing functions
2011-01-12 14:07:09 -06:00
Jeevaka Badrappan
d06c03f099
simfs: Add unknown sim phase check
2010-12-12 04:41:27 -06:00
Lucas De Marchi
7484d799c9
simfs: explicitly compare pointers to NULL
...
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/ )
// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@
- !E
+ E == NULL
// </smpl>
2010-11-29 13:09:50 -06:00
Jeevaka Badrappan
b4353d15ea
simfs: coding style fixes - rule M6
2010-11-22 05:06:21 -06:00
Jeevaka Badrappan
9bebe654e3
simfs: Fix issue with sim_fs_op_error
2010-10-24 09:11:15 -05:00
Denis Kenzior
40904f655d
simfs: Fix issue with check_cached
...
The only_info logic was inverted, causing us to always read from the
modem.
2010-10-22 12:11:26 -05:00
Denis Kenzior
71255c49fb
simfs: Use errno for simfs errors
2010-10-22 11:45:39 -05:00
Denis Kenzior
6ce608b01d
simfs: No need to set these variables
2010-10-22 11:42:40 -05:00
Petteri Tikander
d74e0b5ece
simfs: retrieve only EF-info without EF-contents
2010-10-22 11:13:46 -05:00
Denis Kenzior
cfb3cd9647
simfs: Don't cache if phase is unknown
2010-10-19 14:07:41 -05:00
Denis Kenzior
aa42d954ed
simfs: Make compile
2010-10-15 06:26:28 -05:00
Denis Kenzior
e828bc767c
simfs: Also clean out image files
...
When cleaning cache
2010-10-13 05:04:47 -05:00
Denis Kenzior
bd8c7e92bb
simfs: Fix the number of bytes copied
...
In block reading operations we read too much when the number of bytes to
read is smaller than the size of the file.
2010-10-13 05:04:47 -05:00
Denis Kenzior
e755292874
simfs: Add some debug statements
2010-10-13 05:04:47 -05:00
Denis Kenzior
9ed8beba77
simfs: Move buffer back to the op structure
...
This was causing problems when multiple sim writes were being issued
(and thus bug #8265 ).
2010-10-13 05:04:46 -05:00
Denis Kenzior
38fad92882
simfs: Group lines logically
2010-10-13 05:04:46 -05:00
Denis Kenzior
096634e798
simfs: If buffer alloc fails, error out
2010-10-13 05:04:46 -05:00
Denis Kenzior
f4c66f67df
simfs: Don't try to read image cache imsi is null
2010-10-13 05:04:46 -05:00
Denis Kenzior
413c200dfb
simfs: Make image cache logic a bit easier to read
2010-10-13 05:04:46 -05:00
Kristen Carlson Accardi
19fcae699c
simfs: cache images
2010-10-13 05:04:46 -05:00
Denis Kenzior
1bdf68e133
simfs: Fix freeing a NULL queue
2010-09-22 22:39:29 -05:00
Denis Kenzior
997269a773
simfs: Add sim_fs_check_version
...
Used to blow away older simfs versions
2010-09-09 08:50:29 -05:00
Denis Kenzior
fc1e3a7da4
simfs: Simplify logic
2010-09-09 08:50:28 -05:00
Denis Kenzior
5754eaf7e9
sim: Break out sim file reading into simfs
2010-09-09 08:50:28 -05:00