sysfs is dumb - that depends
sysfs is dumb - that depends
Posted Oct 18, 2009 1:37 UTC (Sun) by jageorge (guest, #61413)In reply to: sysfs is dumb by quotemstr
Parent article: Infrastructure unification in the block layer
The scriptability issue around my private staging tree proposal is easily addressable by using some sort of token (futex/mutex/semaphone) based approach to opening the staging directory instead of a purely PID based approach. Perhaps I'll try a kernel patch to illustrate what I mean ... if I can drum up some interest.
One way or the other private staging of atomic operations (whether ioctl() or some variation on my proposals) is essential for certain operations, and trying to avoid it _will_ result in race conditions many of which have security implications as well... now that I think about it token based private directories would be cool from a temporary directory perspective as well especially if the OS automatically reaped the result after the last token holder exited... so many cool implications... :-)
