Thread (17 messages) 17 messages, 4 authors, 2009-10-29

Re: [PATCH] Update SDP storage records when a record is deleted.

From: Johan Hedberg <hidden>
Date: 2009-10-28 23:54:34

Hi,

On Wed, Oct 28, 2009, Jaikumar Ganesh wrote:
The SDP cache is  removed when the device is removed. In fact, you
fixed this a few days back.
Which commit are you referring to?
This is the scenario I am referring to:
a) Device is paired and SDP records fetched.
b) Device is unpaired - device cache records of SDP is freed
Ok, so at this point we don't have anything stored about the device,
neither on disk nor in runtime memory.
c) On Remote Device - some SDP records are deleted.
d) When the device is created again and the SDP records fetched,
profiles_removed is empty and so

        if (req->profiles_removed)
                device_remove_drivers(device, req->profiles_removed);

device_remove_drivers will not be called and hence SDP records will
never get deleted.
But what is there to delete if in step b) we already deleted everything?

Johan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help