Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Feb 2005 11:45:53 -0800 (PST)
From:      Yan Yu <yanyu_1997@yahoo.com>
To:        Robert Watson <rwatson@freebsd.org>, Yan Yu <yanyu@CS.UCLA.EDU>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: falloc()
Message-ID:  <20050206194553.33195.qmail@web40902.mail.yahoo.com>
In-Reply-To: <Pine.NEB.3.96L.1050206124427.55544A-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050206194553.33195.qmail>