El 4/03/16 a les 16:54, Roger Pau Monné ha escrit:
>
> Linux already has some code to do this checking, but this also involves 
> taking a lock in order to make sure there's only one hotplug script 
> performing this check at the same time.
>
> The Linux function that performs this checking is in:
>
> http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=tools/hotplug/Linux/block;h=2691b56951c9b82094471a141b9e0bed04abb929;hb=HEAD#l40
>
> And the caller is:
>
> http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=tools/hotplug/Linux/block;h=2691b56951c9b82094471a141b9e0bed04abb929;hb=HEAD#l275
>
> If you take a look, the call to check_device_sharing is protected with the 
> "block" lock.
>

   Thank you, today I wasn't unable to code, I hope I'll have some time
this afternoon.

   Btw, In coding sh style, I don't want to bring in bash and add
another dependency to the xen-tools port.

   Gustau
_______________________________________________
freebsd-xen@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"

Reply via email to