Re: question on ext2fs_get_free_blocks() in e2fsprogs

Andreas Dilger <[email protected]> Thu, 24 Aug 2006 17:02:52 -0600
Newsgroups gmane.comp.file-systems.ext2.devel
Message-ID <[email protected]>
On Aug 24, 2006  17:28 -0500, Eric Sandeen wrote:
> So I guess I need to work out what the -intended- functionality is, and 
> then try to fix up the code so it works as intended.  :)
> 
> It would seem reasonable to me if it behaved as follows, and I think 
> this is the intent:
> 
> * If neither start nor finish is specified, search the whole filesystem
>    starting at the beginning.
> * If only start is specified, but not finish, start is a hint only;
>    search the whole filesystem, starting at "start", wrapping if needed.
> * If start and finish are both specified, the range is mandatory.
>    Return ALLOC_FAIL if requested blocks are not available in the range.
> 
> Further, I'd probably set the semantics to say that if start and finish 
> are both specified, then that means that the number of requested blocks 
> must be available between start & finish, inclusive, or ALLOC_FAIL is 
> returned.

This is what I'd think the behaviour _should_ be, but you need some
input from Ted.

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642