summaryrefslogtreecommitdiffstats
path: root/src/simfs.c
AgeCommit message (Collapse)AuthorFilesLines
2011-03-11simfs: fix GLib-CRITICAL warningGuillaume Lucas1-12/+14
During modem release, when there is no SIM card, a GLib-CRITICAL issue occurs during the free of the sim fs context.
2011-02-10simfs: Fix leaking of the voicecall contextDenis Kenzior1-2/+9
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-07simfs: Add function to notify all file watchesDenis Kenzior1-2/+28
2011-02-07simfs: Add file changed watches to simfs contextsDenis Kenzior1-0/+39
2011-02-03simfs: implement ofono_sim_context apiAndrzej Zaborowski1-5/+95
2011-02-03simfs: Use cache for sim_fs_read_info requests too.Andrzej Zaborowski1-58/+82
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-02simfs: Add NULL checkAki Niemi1-0/+3
2011-01-29simfs: Return from sim_fs_op_check_cached on errorAndrzej Zaborowski1-1/+3
2011-01-29simfs: Reset op_source in simfs_read_blockAndrzej Zaborowski1-0/+2
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-12simfs: Add cache flushing functionsAndrzej Zaborowski1-17/+51
2010-12-12simfs: Add unknown sim phase checkJeevaka Badrappan1-1/+8
2010-11-29simfs: explicitly compare pointers to NULLLucas De Marchi1-14/+14
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-22simfs: coding style fixes - rule M6Jeevaka Badrappan1-1/+1
2010-10-24simfs: Fix issue with sim_fs_op_errorJeevaka Badrappan1-1/+4
2010-10-22simfs: Fix issue with check_cachedDenis Kenzior1-4/+4
The only_info logic was inverted, causing us to always read from the modem.
2010-10-22simfs: Use errno for simfs errorsDenis Kenzior1-12/+18
2010-10-22simfs: No need to set these variablesDenis Kenzior1-2/+0
2010-10-22simfs: retrieve only EF-info without EF-contentsPetteri Tikander1-3/+61
2010-10-19simfs: Don't cache if phase is unknownDenis Kenzior1-1/+4
2010-10-15simfs: Make compileDenis Kenzior1-1/+3
2010-10-13simfs: Also clean out image filesDenis Kenzior1-1/+33
When cleaning cache
2010-10-13simfs: Fix the number of bytes copiedDenis Kenzior1-4/+5
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-13simfs: Add some debug statementsDenis Kenzior1-0/+6
2010-10-13simfs: Move buffer back to the op structureDenis Kenzior1-16/+14
This was causing problems when multiple sim writes were being issued (and thus bug #8265).
2010-10-13simfs: Group lines logicallyDenis Kenzior1-3/+0
2010-10-13simfs: If buffer alloc fails, error outDenis Kenzior1-1/+5
2010-10-13simfs: Don't try to read image cache imsi is nullDenis Kenzior1-1/+3
2010-10-13simfs: Make image cache logic a bit easier to readDenis Kenzior1-5/+6
2010-10-13simfs: cache imagesKristen Carlson Accardi1-0/+62
2010-09-22simfs: Fix freeing a NULL queueDenis Kenzior1-2/+4
2010-09-09simfs: Add sim_fs_check_versionDenis Kenzior1-5/+56
Used to blow away older simfs versions
2010-09-09simfs: Simplify logicDenis Kenzior1-8/+7
2010-09-09sim: Break out sim file reading into simfsDenis Kenzior1-0/+721