From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 6 19:45:54 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 035E516A4CF for ; Sun, 6 Feb 2005 19:45:54 +0000 (GMT) Received: from web40902.mail.yahoo.com (web40902.mail.yahoo.com [66.218.78.199]) by mx1.FreeBSD.org (Postfix) with SMTP id A5EBC43D39 for ; Sun, 6 Feb 2005 19:45:53 +0000 (GMT) (envelope-from yanyu_1997@yahoo.com) Received: (qmail 33197 invoked by uid 60001); 6 Feb 2005 19:45:53 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Be5adDbqeFj9rZu7M6xAmCPvAbrYtQEm6y4RC8xO7syEEh0Dj+iAmaJKczg+31n66eEQiXz60InXxYm04KN9QKiheITxwQgB0vZ20DCjIFlzw7+3eO68OI2iC1gbQZdKJVKazm9CpXQbW/XUT2H9efBE2cpI6a50crODFIplRh0= ; Message-ID: <20050206194553.33195.qmail@web40902.mail.yahoo.com> Received: from [24.127.104.185] by web40902.mail.yahoo.com via HTTP; Sun, 06 Feb 2005 11:45:53 PST Date: Sun, 6 Feb 2005 11:45:53 -0800 (PST) From: Yan Yu To: Robert Watson , Yan Yu In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Mon, 07 Feb 2005 13:26:22 +0000 cc: freebsd-hackers@freebsd.org Subject: Re: falloc() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 19:45:54 -0000 hi, THANKS FOR the pointer! > falloc() isn't considered a "pluggable" kernel API, > that is to say, we've > not engineered FreeBSD with the intent that it be > replaced at run-time. > If you don't mind my asking, what motivates you to > replace falloc()? i would like to add more checks (e.g., resource usage restrictions) before a file is being created, e.g., the upper limit of the total number of file descriptors that can be created by a single user (the same uid). THe reason I did not replace fopen() is that: there are many places (besides fopen) will create a new file (vnode). a quick checked shows that _falloc_ is called by many places.. does this make sense, or i should make change in some other place? THanks! yan __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail