summaryrefslogtreecommitdiffstats
path: root/src/simfs.c
AgeCommit message (Collapse)AuthorFilesLines
2012-11-23simfs: Handle optional EF pathsDenis Kenzior1-2/+10
2012-11-22simfs: Update to the new SIM apiDenis Kenzior1-4/+8
2011-11-27simfs: Call callback even if impl isn't providedGuillaume Zajac1-1/+3
2011-10-10core: Update copyright informationMarcel Holtmann1-1/+1
2011-05-11simfs: Fix error reported by valgrindDenis Kenzior1-9/+2
==20365== Invalid read of size 8 ==20365== at 0x4B3501: sim_fs_free (simfs.c:114) ==20365== by 0x493CEC: sim_remove (sim.c:2485) ==20365== by 0x4703D7: modem_change_state (modem.c:410) ==20365== by 0x470664: set_powered (modem.c:848) ==20365== by 0x4706BA: __ofono_modem_shutdown (modem.c:2137) ==20365== by 0x46F2C5: signal_cb (main.c:76) ==20365== by 0x52F555E: g_io_unix_dispatch (giounix.c:166) ==20365== by 0x52A0AAB: g_main_dispatch (gmain.c:2440) ==20365== by 0x52A203B: g_main_context_dispatch (gmain.c:3013) ==20365== by 0x52A2501: g_main_context_iterate (gmain.c:3091) ==20365== by 0x52A2C98: g_main_loop_run (gmain.c:3299) ==20365== by 0x46F0D3: main (main.c:243) ==20365== Address 0x63ff998 is 8 bytes inside a block of size 16 free'd ==20365== at 0x4C2612D: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==20365== by 0x52AA4A1: g_free (gmem.c:263) ==20365== by 0x52C433D: g_slice_free1 (gslice.c:907) ==20365== by 0x52C58D0: g_slist_free_1 (gslist.c:192) ==20365== by 0x52C5C5F: g_slist_remove (gslist.c:465) ==20365== by 0x4B342A: sim_fs_context_free (simfs.c:192) ==20365== by 0x4B3500: sim_fs_free (simfs.c:117) ==20365== by 0x493CEC: sim_remove (sim.c:2485) ==20365== by 0x4703D7: modem_change_state (modem.c:410) ==20365== by 0x470664: set_powered (modem.c:848) ==20365== by 0x4706BA: __ofono_modem_shutdown (modem.c:2137) ==20365== by 0x46F2C5: signal_cb (main.c:76)
2011-05-11simfs: Fix issue reported by valgrindDenis Kenzior1-0/+1
==20287== Invalid read of size 4 ==20287== at 0x52B5C6B: g_queue_peek_nth_link (gqueue.c:704) ==20287== by 0x52B5F57: g_queue_peek_nth (gqueue.c:848) ==20287== by 0x4B33ED: sim_fs_context_free (simfs.c:170) ==20287== by 0x4B34F8: sim_fs_free (simfs.c:116) ==20287== by 0x493CEC: sim_remove (sim.c:2485) ==20287== by 0x4703D7: modem_change_state (modem.c:410) ==20287== by 0x470664: set_powered (modem.c:848) ==20287== by 0x4706BA: __ofono_modem_shutdown (modem.c:2137) ==20287== by 0x46F2C5: signal_cb (main.c:76) ==20287== by 0x52F555E: g_io_unix_dispatch (giounix.c:166) ==20287== by 0x52A0AAB: g_main_dispatch (gmain.c:2440) ==20287== by 0x52A203B: g_main_context_dispatch (gmain.c:3013) ==20287== Address 0x63fae70 is 16 bytes inside a block of size 24 free'd ==20287== at 0x4C2612D: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==20287== by 0x52AA4A1: g_free (gmem.c:263) ==20287== by 0x52C433D: g_slice_free1 (gslice.c:907) ==20287== by 0x52B4E96: g_queue_free (gqueue.c:60) ==20287== by 0x4B34E0: sim_fs_free (simfs.c:107) ==20287== by 0x493CEC: sim_remove (sim.c:2485) ==20287== by 0x4703D7: modem_change_state (modem.c:410) ==20287== by 0x470664: set_powered (modem.c:848) ==20287== by 0x4706BA: __ofono_modem_shutdown (modem.c:2137) ==20287== by 0x46F2C5: signal_cb (main.c:76) ==20287== by 0x52F555E: g_io_unix_dispatch (giounix.c:166) ==20287== by 0x52A0AAB: g_main_dispatch (gmain.c:2440)
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