Laptop shock detection and harddisk protection
Quoted 7 lines · Tejun Heo
1. How should the shock interface look like? As we're gonna need userland daemon one way or the other, we can use the userland daemon to glue all the interfaces but it would be much better to have a unified interface. Although there seem to be several different variants, they don't differ all that much and creating a new interface every time is painful. I think we can get by with a sysfs interface with notification.
It should provide a connection to the corresponding device. Imagine an USB case having a sensor, being connected to a desktop system. You would want to exactly protect the enclosed USB device, and possibly non-protected USB devices, too, but not halt the internal disks.