generating uevents by xfs

Andi Kleen andi at firstfloor.org
Wed Apr 29 07:50:38 CDT 2009


Krzysztof Bâaszkowski <kb at sysmikro.com.pl> writes:

> Hello,
>
> once upon i was asked to think about such facility for notifying userspace 
> when some mount point is nearly full at some level let's say e.g. 90% 
> (threshold should be configurable).
>
> here is a solution designed by me and i would like to see comments on this 
> idea and solution.

It doesn't seem to be very useful to poll in kernel for this. When you're
in kernel you could just hook into the respective functions that handle
disk allocation directly. Polling can be as well done in user space only,
so it doesn't make too much sense to put polling code into the kernel.

-Andi


-- 
ak at linux.intel.com -- Speaking for myself only.




More information about the xfs mailing list