Add a facility for sending synthetic udev events
mulkieran opened this issue · 3 comments
mulkieran commented
The user running these will need root permissions. The value this adds is that the user need not know the details of the "/sys" directory.
mulkieran commented
Related to stratis-storage/project#50 since sending synthetic udev events might be what we need to trigger discovery of new device size.
mulkieran commented
We discussed this in meeting and some points emerged.
- We should put it in the top-level
debug
sub-menu. - We need a command name, e.g.,
uevent
. The arguments to the command are just the devnode and the event type:change
,add
, andremove
.
The benefit of the code will be that it will sort out where in sysfs to find the file to write to, so that the user doesn't have to.
mulkieran commented
Tentatively re-assigning.