Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2003 08:00:48 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        David Schultz <dschultz@uclink.Berkeley.EDU>
Cc:        Tomas Pluskal <plusik@pohoda.cz>, Terry Lambert <tlambert2@mindspring.com>, <freebsd-fs@FreeBSD.ORG>
Subject:   Re: seeking help to rewrite the msdos filesystem
Message-ID:  <20030113075546.R8938-100000@gamplex.bde.org>
In-Reply-To: <20030112154753.GA3284@HAL9000.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 12 Jan 2003, David Schultz wrote:

> Thus spake Tomas Pluskal <plusik@pohoda.cz>:
> > I have made a simple patch to enable clustering in msdosfs.
> > It is against 4-STABLE.
> [...]
> >  	if (ap->a_runp) {
> > -		/*
> > -		 * Sequential clusters should be counted here.
> > -		 */
> > -		*ap->a_runp = 0;
> > +		int nblk;
> > +
> > +		nblk = (dep->de_FileSize >> bshift) - (lblkno + 1);
>
> I'm not sure I understand what you're trying to do here.  Does
> this work with files that are fragmented?  You appear to be
> assuming that they are not.  Maybe you copied the code from the
> cd9660 filesystem, which does not permit external fragmentation.

ISTR suggesting looking at cd9660 for examples of how to do clustering.
Unfortunately, it is too simple here.  The corresponding code in ufs
and ext2fs is quite complicated.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message




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