Re: [OpenWrt-Devel] [PATCH] procd: hotplug.json: allow passing hotplug events from all subsystems

2015-11-30 Thread Yousong Zhou
On 30 November 2015 at 17:50, John Crispin wrote: > > > On 30/11/2015 10:33, Jo-Philipp Wich wrote: >> Hi all, >> >> as an intermediate solution we could simply allow qemu specific events. >> >> I'm with John here that passing on uevents unfiltered is probably no >> good idea. >> >> ~ Jow > > yep,

Re: [OpenWrt-Devel] [PATCH] procd: hotplug.json: allow passing hotplug events from all subsystems

2015-11-30 Thread John Crispin
On 30/11/2015 10:33, Jo-Philipp Wich wrote: > Hi all, > > as an intermediate solution we could simply allow qemu specific events. > > I'm with John here that passing on uevents unfiltered is probably no > good idea. > > ~ Jow yep, hence my idea about includes we could ship a "include /etc/ho

Re: [OpenWrt-Devel] [PATCH] procd: hotplug.json: allow passing hotplug events from all subsystems

2015-11-30 Thread Jo-Philipp Wich
Hi all, as an intermediate solution we could simply allow qemu specific events. I'm with John here that passing on uevents unfiltered is probably no good idea. ~ Jow ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.o

Re: [OpenWrt-Devel] [PATCH] procd: hotplug.json: allow passing hotplug events from all subsystems

2015-11-29 Thread John Crispin
On 29/11/2015 05:10, Luiz Angelo Daros de Luca wrote: > John, > > How about generate the subsystem list from /etc/hotplug.d dirs. The list > could be loaded at startup and refreshed the same way hotplug.json is ( > which might be "never" as procd does not have an "init q"). > > Regards, > > Lui

Re: [OpenWrt-Devel] [PATCH] procd: hotplug.json: allow passing hotplug events from all subsystems

2015-11-28 Thread Luiz Angelo Daros de Luca
John, How about generate the subsystem list from /etc/hotplug.d dirs. The list could be loaded at startup and refreshed the same way hotplug.json is ( which might be "never" as procd does not have an "init q"). Regards, Luiz Em sáb, 28 de nov de 2015 21:14, John Crispin escreveu: > Hi Yousong

Re: [OpenWrt-Devel] [PATCH] procd: hotplug.json: allow passing hotplug events from all subsystems

2015-11-28 Thread John Crispin
Hi Yousong, On 28/11/2015 05:22, Yousong Zhou wrote: > There are time that programs need to be notified of events from > subsystems that are not enumerated in the .json definition, e.g. QEMU > guest agent by default requires /dev/virtio-ports/org.qemu.guest_agent.0 > which is a symlink to /dev/vpo

Re: [OpenWrt-Devel] [PATCH] procd: hotplug.json: allow passing hotplug events from all subsystems

2015-11-27 Thread Yousong Zhou
On 28 November 2015 at 12:22, Yousong Zhou wrote: > There are time that programs need to be notified of events from > subsystems that are not enumerated in the .json definition, e.g. QEMU > guest agent by default requires /dev/virtio-ports/org.qemu.guest_agent.0 > which is a symlink to /dev/vportM

[OpenWrt-Devel] [PATCH] procd: hotplug.json: allow passing hotplug events from all subsystems

2015-11-27 Thread Yousong Zhou
There are time that programs need to be notified of events from subsystems that are not enumerated in the .json definition, e.g. QEMU guest agent by default requires /dev/virtio-ports/org.qemu.guest_agent.0 which is a symlink to /dev/vportMpN from virtio-ports subsystem. Signed-off-by: Yousong Zho