Merge lp://staging/~xnox/whoopsie/stable-id-through-boot into lp://staging/whoopsie

Proposed by Dimitri John Ledkov
Status: Merged
Merged at revision: 634
Proposed branch: lp://staging/~xnox/whoopsie/stable-id-through-boot
Merge into: lp://staging/whoopsie
Diff against target: 187 lines (+94/-2)
4 files modified
src/identifier.c (+33/-1)
src/identifier.h (+4/-0)
src/tests/test_identifier.c (+53/-0)
src/whoopsie.c (+4/-1)
To merge this branch: bzr merge lp://staging/~xnox/whoopsie/stable-id-through-boot
Reviewer Review Type Date Requested Status
Brian Murray (community) Approve
John Lenton (community) Needs Fixing
Review via email: mp+229593@code.staging.launchpad.net
To post a comment you must log in.
Revision history for this message
John Lenton (chipaca) wrote :

A bug and a question, inline.

review: Needs Fixing
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Replied inline.

627. By Dimitri John Ledkov

Make whoopsie_identifier_generate() stable throughout the system boot.

That means, whilst whoopsied is running that api call will return the
current ID used by whoopsie itself, irrespective if the caller is root
or non-root, and additional MAC network interfaces or IMEI modems
appearing, and takes into consideration if custom system id was set.

628. By Dimitri John Ledkov

Drop unlink.

Revision history for this message
Brian Murray (brian-murray) wrote :

It seems to me that in whoopsie.c we could check to see if whoopsie_identifier is the same as the one in the existing WHOOPSIE_ID_PATH (if it exists) rather than writing it again. Otherwise, this looks good and I'll merge and upload it. Thanks!

review: Approve
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

did I change the cache path from /run to somewhere persistent? if not, do
update it. I recall discussing /var/lib/ or some such.
On 17 Sep 2014 20:48, "Brian Murray" <email address hidden> wrote:

> Review: Approve
>
> It seems to me that in whoopsie.c we could check to see if
> whoopsie_identifier is the same as the one in the existing WHOOPSIE_ID_PATH
> (if it exists) rather than writing it again. Otherwise, this looks good
> and I'll merge and upload it. Thanks!
> --
>
> https://code.launchpad.net/~xnox/whoopsie/stable-id-through-boot/+merge/229593
> You are the owner of lp:~xnox/whoopsie/stable-id-through-boot.
>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: