On Sat 2018-02-24 23:45:56, Linus Walleij wrote: > This adds two new disk triggers for triggering on reads > and writes respectively, named "disk-read" and "disk-write". > > The use case comes from working on the D-Link DNS-313 NAS > box. This features an RGB LED for disk activity. with > these two triggers I can couple the green LED to read > activity and the red LED to write activity, which gives > the appropriate user feedback about what is happening > on the disk. When tested it gave exactly the feedback > desired. > > The in-kernel interface is simply changed to pass a bool > indicating if the activity is write activity and update > each trigger (and the composite "disk-activity" trigger) > depending on what is passed in. > > This requires an ACK from the libata/IDE maintainers. > > Cc: Tejun Heo <tj@xxxxxxxxxx> > Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx> > Cc: Jacek Anaszewski <jacek.anaszewski@xxxxxxxxx> Acked-by: Pavel Machek <pavel@xxxxxx> > Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Attachment:
signature.asc
Description: Digital signature