Push events for when virtual components are added and removed #34
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Let's say that Driver A virtually converts components from type A, to type B, and Driver B virtually converts components from type B to type C, and a component of type A (with id
abc) gets inserted into the computer.Driver A receives a real event going like this: [
component_added,abc,typeA]. It contructs its own proxy that behaves like a type B proxy, and makes a type B virtual component from it.Driver B, on the other hand, does not receive any event like [
component_added,abc,typeB]. It doesn't know that the virtual component has been created, so it doesn't convert the virtual component from type B to type C.A practical standpoint would have type A be
tape_drive, type B bedrive(unmanaged drive), and type C befilesystem(managed drive).There needs to be an event pushed when adding/removing a virtual component, so that inserting a component can be virtually converted to one type, then again converted to another.
It would also be nice for these events to use traditional
component_addedandcomponent_removedevents, but have something liketrueat the 4th argument to indicate that the component that has been added is virtual.Fixed in
b139e2da01