Cc: Eduard - Gabriel Munteanu <eduard.munteanu@...>, Mathieu Desnoyers <compudj@...>, Tom Zanussi <tzanussi@...>, <akpm@...>, <linux-kernel@...>, <righi.andrea@...>
Hmm dunno, that is what blktrace also did but primarily for performance
reasons. It's tricky - Tom stated that he is working on a lib to
abstract this from applications. While that is handy for telling you
what to do, it also an annoyance that you HAVE to do it that way (it's
supposed to just be a "normal" fs, not with funky restrictions).
So perhaps provide both versions in-kernel and let the kernel user
device. For blktrace, we have one app and we know we can use the faster
variant since readers are affine. For more debug style exports or where
you don't know your consumer, use the safer variant (which should be the
default action).
--
Jens Axboe
--