http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/ufs/ffs/ffs_alloc.c

you may want to investigate revision 1.62.

* Luigi Rizzo <[EMAIL PROTECTED]> [000212 03:19] wrote:
> Hi,
> I have a question related to ufs block allocation.
> This problem arises when building picobsd floppy on /dev/fd0
> (ufs with 512/4096 fragments/blocks).
> 
> With 3.4, i can easily fill up a disk to 100% occupation.
> 
> With -current (20000127), i often fail to write a file (say 53KB)
> on disk even though there _is_ room (say 55KB), and if i split the file
> in multiple parts i can write on that disk even more bytes
> than the original file size.
> 
> It looks like there is some change related to the use of file
> system fragments, the feeling i have is that there is
> something like
> 
>     "if you need to write a full block, don't look for
>     fragments but for a full block'.
> 
> Does the above sound reasonable, and if so, would it be difficult
> to change the behaviour to make use of fragments if there is
> no better option ?
> 
>       cheers
>       luigi
> -----------------------------------+-------------------------------------
>   Luigi RIZZO, [EMAIL PROTECTED]  . Dip. di Ing. dell'Informazione
>   http://www.iet.unipi.it/~luigi/  . Universita` di Pisa
>   TEL/FAX: +39-050-568.533/522     . via Diotisalvi 2, 56126 PISA (Italy)
>   Mobile   +39-347-0373137
> -----------------------------------+-------------------------------------
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of the message

-- 
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to