public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: "Krzysztof Bâaszkowski" <kb@sysmikro.com.pl>
Cc: xfs@oss.sgi.com
Subject: Re: generating uevents by xfs
Date: Wed, 29 Apr 2009 14:50:38 +0200	[thread overview]
Message-ID: <87r5zbpqsh.fsf@basil.nowhere.org> (raw)
In-Reply-To: <200904281818.32127.kb@sysmikro.com.pl> (Krzysztof Bâaszkowski's message of "Tue, 28 Apr 2009 18:18:31 +0200")

Krzysztof Bâaszkowski <kb@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@linux.intel.com -- Speaking for myself only.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2009-04-29 12:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-28 16:18 generating uevents by xfs Krzysztof Błaszkowski
2009-04-29 12:50 ` Andi Kleen [this message]
2009-04-29 13:12   ` Krzysztof Błaszkowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r5zbpqsh.fsf@basil.nowhere.org \
    --to=andi@firstfloor.org \
    --cc=kb@sysmikro.com.pl \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox