Re: [PATCH 2/8] Basic framework for lock manager plugins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 30, 2010 at 10:20:38AM +0000, Daniel P. Berrange wrote:
> The AttachObject/DetachObject calls are made by libvirtd, whenever
> it is about todo something on behalf of the managed object holding
> the lock. eg when libvirtd does disk hotplug it will do
> 
>     $man = NewObject()
>     AttachObject($man, $QEMUPID);
>     AcquireResource($man, $newdiskpath);
>     DetachObject($man);
>     FreeObject($man)
> 
> So basically the AttachObject call is telling the lock manager
> plugin what $PID the following AcquireResource operation needs
> to be applied to. Chances are your DetachObject call will only
> need to be a no-op but I put the hook in just in case there's
> a need for it

OK, it seems a roundabout way of SetParameter($man, "pid", $QEMUPID),
but "just in case ..." seems to be the consistent approach here.

Dave

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]