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. --- src/simfs.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/simfs.c b/src/simfs.c index b77e1dc..35045a1 100644 --- a/src/simfs.c +++ b/src/simfs.c @@ -269,6 +269,8 @@ static gboolean sim_fs_op_read_block(gpointer user_data) int end_block; unsigned short read_bytes; + fs->op_source = 0; + start_block = op->offset / 256; end_block = (op->offset + (op->num_bytes - 1)) / 256; -- 1.7.1.86.g0e460.dirty _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono