[pulseaudio-discuss] Making locking nicer for NFS
Thomas Bushnell, BSG
tbushnell at google.com
Thu Aug 25 10:36:31 PDT 2011
On Thu, Aug 25, 2011 at 10:30 AM, David Henningsson <
david.henningsson at canonical.com> wrote:
> On 08/21/2011 04:38 PM, Thomas Bushnell, BSG wrote:
>> Whoops. They need to repeat the read after obtaining the write lock and
>> only update the file if the contents are still bad in that case.
> Would a good handling of this be:
> 1) Open the cookie read-only
> 2) read the cookie
> 3) close file
> 4) if we have a correct cookie, do nothing more
> 5) if we have the wrong cookie, do the old handling unchanged: open with
> write lock, check the contents (again), and write if something is (still)
Yes, I think that's correct.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pulseaudio-discuss