Commit Graph

26 Commits

Author SHA1 Message Date
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