[Top] [All Lists]

Re: generating uevents by xfs

To: Krzysztof Bâaszkowski <kb@xxxxxxxxxxxxxxx>
Subject: Re: generating uevents by xfs
From: Andi Kleen <andi@xxxxxxxxxxxxxx>
Date: Wed, 29 Apr 2009 14:50:38 +0200
Cc: xfs@xxxxxxxxxxx
In-reply-to: <200904281818.32127.kb@xxxxxxxxxxxxxxx> (Krzysztof Bâaszkowski's message of "Tue, 28 Apr 2009 18:18:31 +0200")
References: <200904281818.32127.kb@xxxxxxxxxxxxxxx>
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (gnu/linux)
Krzysztof Bâaszkowski <kb@xxxxxxxxxxxxxxx> 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.


ak@xxxxxxxxxxxxxxx -- Speaking for myself only.

<Prev in Thread] Current Thread [Next in Thread>