All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/3] sms: store pending tx pdus on disk
Date: Wed, 08 Dec 2010 05:01:22 -0600	[thread overview]
Message-ID: <4CFF6582.6000300@gmail.com> (raw)
In-Reply-To: <20101207145758.26059ea5@kcaccard-MOBL3>

[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]

On 12/07/2010 04:57 PM, Kristen Carlson Accardi wrote:
> On Mon, 06 Dec 2010 20:38:58 -0600
> Denis Kenzior <denkenz@gmail.com> wrote:
> 
> <snip>
> 
>>> +	/*
>>> +	 * file name is: imsi/order in tx_queue-uuid/order of pdus
>>> +	 */
>>> +	if (write_file(buf, len, SMS_BACKUP_MODE,
>>> +				SMS_TX_BACKUP_PATH_FILE, imsi, id, uuid,
>>> +				seq) != len)
>>> +		return FALSE;
>>> +
>>
>> And where are you taking care of storing the other needed information?
>> e.g. the tx_queue entry flags, retry count, etc?
> 
> I can easily add the flags and retry count.  As far as the "etc"
> that you mention, the only other information I see would be
> entry->cb and entry->data, which I was thinking might have to
> get lost.  I am not sure how to persist that information on
> disk - do you have any suggestions?

There's really no way to persist these, so losing them is fine for now.
 The only entity who makes use of the callback is the stk atom, and
those sms messages should not be serialized to disk.  e.g. we should not
try to persist messages that do not have at least the
OFONO_SMS_SUBMIT_FLAG_EXPOSE_DBUS set.

Regards,
-Denis

  reply	other threads:[~2010-12-08 11:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-24 22:53 [PATCH 0/3] Persist TX SMS messages Kristen Carlson Accardi
2010-11-24 22:53 ` [PATCH 1/3] sms: store pending tx pdus on disk Kristen Carlson Accardi
2010-12-07  2:38   ` Denis Kenzior
2010-12-07 22:57     ` Kristen Carlson Accardi
2010-12-08 11:01       ` Denis Kenzior [this message]
2010-12-11  0:16     ` [PATCH 1/3 v2] " Kristen Carlson Accardi
2010-12-07 13:26   ` [PATCH 1/3] " Aki Niemi
2010-11-24 22:53 ` [PATCH 2/3] sms: delete sent sms messages from backup Kristen Carlson Accardi
2010-12-07  2:31   ` Denis Kenzior
2010-12-11  0:16     ` [PATCH 2/3 v2] " Kristen Carlson Accardi
2010-11-24 22:53 ` [PATCH 3/3] sms: restore pending tx " Kristen Carlson Accardi
2010-12-07  2:43   ` Denis Kenzior
2010-12-11  0:17     ` [PATCH 3/3 v2] " Kristen Carlson Accardi
  -- strict thread matches above, loose matches on Subject: below --
2011-01-25 12:47 [PATCH 0/3] Persist TX SMS messages Lucas De Marchi
2011-01-25 12:47 ` [PATCH 1/3] sms: store pending tx pdus on disk Lucas De Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CFF6582.6000300@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.